Displaying 3 results from an estimated 3 matches for "posp".
Did you mean:
pos
2011 Nov 11
0
[PATCH 9/9] Decompressors: check input size in unlzo.c
...INIT parse_header(u8 *input,
l = *parse++;
/* don''t care about the file name, and skip checksum */
+ 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));...
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>
2011 Nov 11
0
[PATCH 5/9] Decompressors: check for read errors in unlzma.c
...<lasse.collin@tukaani.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/common/unlzma.c
+++ b/xen/common/unlzma.c
@@ -625,6 +625,8 @@ STATIC int INIT unlzma(unsigned char *bu
if (cst.rep0 == 0)
break;
}
+ if (rc.buffer_size <= 0)
+ goto exit_3;
}
if (posp)
@@ -632,6 +634,7 @@ STATIC int INIT unlzma(unsigned char *bu
if (wr.flush)
wr.flush(wr.buffer, wr.buffer_pos);
ret = 0;
+exit_3:
large_free(p);
exit_2:
if (!output)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xe...