search for: in_buf_sav

Displaying 1 result from an estimated 1 matches for "in_buf_sav".

Did you mean: in_buf_save
2011 Nov 11
0
[PATCH 9/9] Decompressors: check input size in unlzo.c
...urn 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("invalid header"); goto exit_2; } in_bu...