search for: exit_2

Displaying 4 results from an estimated 4 matches for "exit_2".

Did you mean: exit2
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 9/9] Decompressors: check input size in unlzo.c
...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("invalid header"); goto exit_2; } in_buf += skip; + in_len -= skip; if (posp) *posp = skip; for (;;) { /* read uncompressed block size */ + if (in_len < 4) { + error("file corrupted"); + goto exit_2; + } dst_len = get_unaligned_be32(in_buf); in_buf += 4; + in_len -= 4; /* exit if...
2011 Nov 11
0
[PATCH 5/9] Decompressors: check for read errors in unlzma.c
...TATIC 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.xensource.com/xen-devel
2014 Nov 21
4
Bug#767295: [PATCH for-4.5 v2] libxc: don't leak buffer containing the uncompressed PV kernel
...c/xc_dom_decompress_lz4.c >> @@ -103,6 +103,11 @@ int xc_try_lz4_decode( >> >> if (size == 0) >> { >> + if ( xc_dom_register_external(dom, output, out_len) ) >> + { >> + msg = "Error registering stream output"; >> + goto exit_2; >> + } >> *blob = output; >> *psize = out_len; >> return 0; >> -- >> 1.7.10.4 >>