search for: src_len

Displaying 20 results from an estimated 51 matches for "src_len".

2007 Mar 19
9
[BUG?] ip ru flush && RTNETLINK answers: Numerical result out of range
After an: # ip ru flush I loose all my ip rules but the priority 0 one. root@sarasvati:~# ip ru 0: from all lookup 255 root@sarasvati:~# Ok with that, but now i''m not able to insert any new rule. This leads to a total loose of conectivity. root@sarasvati:~# ip ru add from all table default RTNETLINK answers: Numerical result out of range root@sarasvati:~# ip ru add from all
2011 Nov 11
0
[PATCH 9/9] Decompressors: check input size in unlzo.c
...hecksum */ + if (end - parse < l + 4) + return 0; parse += l + 4; *skip = parse - input; @@ -107,7 +129,8 @@ STATIC int INIT unlzo(u8 *input, unsigne u8 *output, unsigned int *posp, void (*error) (const char *x)) { - u8 skip = 0, r = 0; + u8 r = 0; + int skip = 0; u32 src_len, dst_len; size_t tmp; u8 *in_buf, *in_buf_save, *out_buf; @@ -149,19 +172,25 @@ STATIC int INIT unlzo(u8 *input, unsigne if (fill) fill(in_buf, lzo1x_worst_compress(LZO_BLOCK_SIZE)); - if (!parse_header(input, &skip)) { + if (!parse_header(input, &skip, in_len)) { error("...
2019 Apr 10
1
[PATCH v2 2/3] drm: switch drm_fb_xrgb8888_to_rgb565_dstclip to accept __iomem dst
..., */ void drm_fb_xrgb8888_to_rgb565(void *dst, void *vaddr, struct drm_framebuffer *fb, - struct drm_rect *clip, bool swap) + struct drm_rect *clip, bool swab) { - unsigned int src_offset = (clip->y1 * fb->pitches[0]) - + (clip->x1 * sizeof(u32)); - size_t src_len = (clip->x2 - clip->x1) * sizeof(u32); - size_t dst_len = (clip->x2 - clip->x1) * sizeof(u16); + size_t linepixels = clip->x2 - clip->x1; + size_t src_len = linepixels * sizeof(u32); + size_t dst_len = linepixels * sizeof(u16); + unsigned y, lines = clip->y2 - clip->y1; + vo...
2013 Sep 23
28
[PATCH 0/2] add LZ4 kernel decompression support
Linux 3.11 added respective support, so I think we should follow suit. 1: xen: add LZ4 decompression support 2: libxc: add LZ4 decompression support Signed-off-by: Jan Beulich <jbeulich@suse.com>
2019 Apr 10
1
[PATCH v2 3/3] drm: switch drm_fb_xrgb8888_to_rgb888_dstclip to accept __iomem dst
..., unsigned int dst_pitch, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip) { - unsigned int src_offset = (clip->y1 * fb->pitches[0]) - + (clip->x1 * sizeof(u32)); - unsigned int dst_offset = (clip->y1 * dst_pitch) - + (clip->x1 * 3); - size_t src_len = (clip->x2 - clip->x1) * sizeof(u32); + size_t linepixels = clip->x2 - clip->x1; + size_t dst_len = linepixels * 3; + unsigned y, lines = clip->y2 - clip->y1; + void *dbuf; - drm_fb_xrgb8888_to_rgb888_lines(dst + dst_offset, dst_pitch, - vaddr + src_offset, fb->pitches[0...
2003 May 29
4
Samba+CUPS+Drivers autodownload
...t with this change will not report NT_STATUS_UNSUCCESSFUL when you execute "adddriver" subcommand of rpcclient. The other bug prevents rpcclient's "enumdrivers" subcommands from completing and can be fixed by changing the line #943 in lib/util_unistr.c so that it reads: src_len = ( src == NULL ? 0 : strlen_w(src)*2+2 ); instead of just src_len = strlen_w(src)*2+2; So that you may find that part easily, here are the 7 lines surrounding and including the offending line: 940 dest_len=MAXUNI-3; 941 942 if (flags & STR_TERMINATE) 943...
2019 Oct 21
0
[PATCH RFC 1/3] kcov: remote coverage support
...> + > +} > + > +static void kcov_move_area(enum kcov_mode mode, void *dst_area, > + unsigned int dst_area_size, void *src_area) > +{ > + u64 word_size = sizeof(unsigned long); > + u64 count_size, entry_size; > + u64 dst_len, src_len; > + void *dst_entries, *src_entries; > + u64 dst_occupied, dst_free, bytes_to_move, entries_moved; > + > + kcov_debug("%px %u <= %px %lu\n", > + dst_area, dst_area_size, src_area, *(unsigned long *)src_area); > + > + switch (m...
2020 Jun 16
0
[PATCH 5.4 088/134] crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()
...ivers/crypto/virtio/virtio_crypto_algs.c +++ b/drivers/crypto/virtio/virtio_crypto_algs.c @@ -410,6 +410,7 @@ __virtio_crypto_ablkcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, goto free; } + dst_len = min_t(unsigned int, req->nbytes, dst_len); pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", req->nbytes, dst_len); -- 2.25.1
2020 Jun 16
0
[PATCH 5.7 093/163] crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()
...ile changed, 1 insertion(+) --- a/drivers/crypto/virtio/virtio_crypto_algs.c +++ b/drivers/crypto/virtio/virtio_crypto_algs.c @@ -402,6 +402,7 @@ __virtio_crypto_skcipher_do_req(struct v goto free; } + dst_len = min_t(unsigned int, req->cryptlen, dst_len); pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", req->cryptlen, dst_len);
2020 Jun 16
0
[PATCH 5.6 098/161] crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()
...ile changed, 1 insertion(+) --- a/drivers/crypto/virtio/virtio_crypto_algs.c +++ b/drivers/crypto/virtio/virtio_crypto_algs.c @@ -402,6 +402,7 @@ __virtio_crypto_skcipher_do_req(struct v goto free; } + dst_len = min_t(unsigned int, req->cryptlen, dst_len); pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", req->cryptlen, dst_len);
2020 Jun 19
0
[PATCH 4.14 051/190] crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()
...ivers/crypto/virtio/virtio_crypto_algs.c +++ b/drivers/crypto/virtio/virtio_crypto_algs.c @@ -411,6 +411,7 @@ __virtio_crypto_ablkcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, goto free; } + dst_len = min_t(unsigned int, req->nbytes, dst_len); pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", req->nbytes, dst_len); -- 2.25.1
2020 Jun 19
0
[PATCH 4.19 066/267] crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()
...ivers/crypto/virtio/virtio_crypto_algs.c +++ b/drivers/crypto/virtio/virtio_crypto_algs.c @@ -424,6 +424,7 @@ __virtio_crypto_ablkcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, goto free; } + dst_len = min_t(unsigned int, req->nbytes, dst_len); pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", req->nbytes, dst_len); -- 2.25.1
2001 Dec 27
0
bugs?
...B_FILE_NAME \"passdb.tdb\" and on my previouse message i wrote about strange records in log file: [2001/12/28 10:12:09, 0] lib/charcnv.c:convert_string(144) Required 12, available 11 i\'m find that in lib/charcnv.c in function push_ascii that if set flag STR_TERMINATE, when src_len increase: if (flags & STR_TERMINATE) { src_len++; } but dest_len not increase. i\'m try fix it, but that not enouth :( records in log files now less, but it exist :(
2020 Jun 15
0
Patch "crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()" has been added to the 5.7-stable tree
...ile changed, 1 insertion(+) --- a/drivers/crypto/virtio/virtio_crypto_algs.c +++ b/drivers/crypto/virtio/virtio_crypto_algs.c @@ -402,6 +402,7 @@ __virtio_crypto_skcipher_do_req(struct v goto free; } + dst_len = min_t(unsigned int, req->cryptlen, dst_len); pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", req->cryptlen, dst_len); Patches currently in stable-queue which might be from longpeng2 at huawei.com are queue-5.7/crypto-virtio-fix-src-dst-scatterlist-calculation-in-__virtio_crypto_skcipher_do_req.patch queue-5.7/crypto-virtio-fix-dest-length-calculation...
2020 Jun 15
0
Patch "crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()" has been added to the 5.6-stable tree
...ile changed, 1 insertion(+) --- a/drivers/crypto/virtio/virtio_crypto_algs.c +++ b/drivers/crypto/virtio/virtio_crypto_algs.c @@ -402,6 +402,7 @@ __virtio_crypto_skcipher_do_req(struct v goto free; } + dst_len = min_t(unsigned int, req->cryptlen, dst_len); pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", req->cryptlen, dst_len); Patches currently in stable-queue which might be from longpeng2 at huawei.com are queue-5.6/crypto-virtio-fix-src-dst-scatterlist-calculation-in-__virtio_crypto_skcipher_do_req.patch queue-5.6/crypto-virtio-fix-dest-length-calculation...
2003 Apr 05
1
Samba 2.2.8 SEGV in rpcclient getdriver on Solaris 7
Hello I was trying to figure out how to add printer drivers manually for downloading to Windows 2000 clients and I came accross this problem. (The printer drivers were installed some time ago using an earlier version of samba 2.2.x). $ dbx /usr/local/samba/bin/rpcclient (dbx) run xxxxxxx -U yyyyyyy Running: rpcclient xxxxxxx -U yyyyyyy (process id 4735) Password: rpcclient $> enumprinters
2019 Oct 14
0
[PATCH 03/25] crypto: virtio - switch to skcipher API
...to_le32(req->nbytes); + cpu_to_le32(req->cryptlen); dst_len = virtio_crypto_alg_sg_nents_length(req->dst); if (unlikely(dst_len > U32_MAX)) { @@ -406,9 +407,9 @@ __virtio_crypto_ablkcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, } pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", - req->nbytes, dst_len); + req->cryptlen, dst_len); - if (unlikely(req->nbytes + dst_len + ivsize + + if (unlikely(req->cryptlen + dst_len + ivsize + sizeof(vc_req->status) > vcrypto->max_size)) { pr_err("virtio_crypto: The length is...
2019 Oct 24
0
[PATCH v2 03/27] crypto: virtio - switch to skcipher API
...to_le32(req->nbytes); + cpu_to_le32(req->cryptlen); dst_len = virtio_crypto_alg_sg_nents_length(req->dst); if (unlikely(dst_len > U32_MAX)) { @@ -406,9 +407,9 @@ __virtio_crypto_ablkcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, } pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", - req->nbytes, dst_len); + req->cryptlen, dst_len); - if (unlikely(req->nbytes + dst_len + ivsize + + if (unlikely(req->cryptlen + dst_len + ivsize + sizeof(vc_req->status) > vcrypto->max_size)) { pr_err("virtio_crypto: The length is...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...gt;nbytes); > + > + dst_len = virtio_crypto_alg_sg_nents_length(req->dst); > + if (unlikely(dst_len > U32_MAX)) { > + pr_err("virtio_crypto: The dst_len is beyond U32_MAX\n"); > + err = -EINVAL; > + goto free; > + } > + > + pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", > + req->nbytes, dst_len); > + > + if (unlikely(req->nbytes + dst_len + AES_BLOCK_SIZE + > + sizeof(vc_req->status) > vcrypto->max_size)) { > + pr_err("virtio_crypto: The length is too big\n"); > + err = -EINVAL; > + go...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...gt;nbytes); > + > + dst_len = virtio_crypto_alg_sg_nents_length(req->dst); > + if (unlikely(dst_len > U32_MAX)) { > + pr_err("virtio_crypto: The dst_len is beyond U32_MAX\n"); > + err = -EINVAL; > + goto free; > + } > + > + pr_debug("virtio_crypto: src_len: %u, dst_len: %llu\n", > + req->nbytes, dst_len); > + > + if (unlikely(req->nbytes + dst_len + AES_BLOCK_SIZE + > + sizeof(vc_req->status) > vcrypto->max_size)) { > + pr_err("virtio_crypto: The length is too big\n"); > + err = -EINVAL; > + go...