9
0
Fork 0
barebox/lib
Holger Schurig 9d6df51542 lz4: fix another possible overrun
Note: this is the same as 4148c1f67abf823099b2d7db6851e4aea407f5ee in
linux-git.

There is one other possible overrun in the lz4 code as implemented by
Linux at this point in time (which differs from the upstream lz4
codebase, but will get synced at in a future kernel release.)  As
pointed out by Don, we also need to check the overflow in the data
itself.

While we are at it, replace the odd error return value with just a
"simple" -1 value as the return value is never used for anything other
than a basic "did this work or not" check.

Reported-by: "Don A. Bailey" <donb@securitymouse.com>
Reported-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Holger Schurig <holgerschurig@gmail.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-02 08:19:45 +02:00
..
bootstrap mount: support filesystem options passed via -o 2014-02-10 09:02:21 +01:00
gui gui: IMAGE_RENDERER does not depend on VIDEO 2014-06-05 10:18:34 +02:00
lz4 lz4: fix another possible overrun 2014-07-02 08:19:45 +02:00
lzo lzo: properly check for overruns 2014-07-02 08:19:45 +02:00
zlib_inflate Unused files removed 2012-06-30 22:09:49 +02:00
Kconfig Merge branch 'for-next/mtd' 2013-08-05 12:49:58 +02:00
Makefile lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
bch.c lib: add BCH encoding/decoding 2012-01-02 12:34:58 +01:00
bitrev.c lib: add bitrev utility 2012-01-02 12:34:58 +01:00
bzlib_private.h svn_rev_639 2007-07-05 18:02:12 +02:00
copy_file.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
ctype.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
decompress_bunzip2.c misc: upper-case some abbreviations 2014-06-02 09:07:12 +02:00
decompress_inflate.c Add deflate_decompress function 2013-08-07 08:44:48 +02:00
decompress_unlz4.c pbl: add lz4 support 2013-07-22 09:15:32 +02:00
decompress_unlzo.c lzo: Remove unused variable 2014-04-23 14:00:25 +02:00
display_options.c treewide: fix signedness mixups in printf format specifiers 2014-04-23 09:05:51 +02:00
div64.c svn_rev_639 2007-07-05 18:02:12 +02:00
find_next_bit.c U-Boot-V2:Bitops: asm-generic bitops 2008-08-15 08:47:49 +02:00
fnmatch.c fnmatch:sparse fixes 2010-10-21 22:21:22 +02:00
getopt.c getopt: change optstring to const char* 2013-02-11 20:57:34 +01:00
glob.c glob: fix GLOB_SORT 2012-08-03 08:29:38 +02:00
kfifo.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
libbb.c lib: libbb: f should never be NULL 2014-02-10 08:49:55 +01:00
libgen.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
libmtd.c mtd: Update internal API to support 64-bit device size 2014-03-12 21:26:37 +01:00
libscan.c libubi: Use global mtd_all_ff function 2013-03-04 10:54:46 +01:00
libubigen.c lib: libubigen math compile error fix 2014-01-06 10:58:00 +01:00
make_directory.c Make errno a positive value 2012-05-14 08:35:54 +02:00
math.c lib: math: Return NULL pointer 2014-02-24 08:59:04 +01:00
misc.c lib: misc: add 'iB' suffixes to strtoull_suffix 2012-12-19 10:30:56 +01:00
notifier.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
parameter.c param: Add support for long long read only dev param 2014-06-13 06:27:34 +02:00
process_escape_sequence.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
qsort.c qsort: Fix wrong check 2012-08-03 08:28:18 +02:00
random.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
rbtree.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
readkey.c input: Add BB_ prefix to KEY_ defines 2014-02-17 08:23:37 +01:00
readline.c input: Add BB_ prefix to KEY_ defines 2014-02-17 08:23:37 +01:00
readline_simple.c remove undefined WATCHDOG_RESET 2011-12-19 14:38:21 +01:00
recursive_action.c rm: implement -r 2012-11-29 20:21:29 +01:00
show_progress.c lib: fix whitespace, drop blank lines at EOF 2014-01-06 09:24:22 +01:00
stmp-device.c ARM: MXS: introduce stmp device support 2013-07-23 16:25:13 +02:00
string.c string.c: Fix include 2014-03-29 06:49:47 +01:00
stringlist.c stringlist: fix division by zero 2012-08-29 09:10:13 +02:00
uncompress.c lib: Add support for LZ4-compressed kernel 2013-07-16 08:24:30 +02:00
unlink-recursive.c unlink_recursive: return negative error value 2014-04-09 09:36:34 +02:00
vsprintf.c vsprintf: fix formatting 2014-05-22 08:11:43 +02:00
xfuncs.c string: Add (x)memdup 2013-11-27 10:42:54 +01:00
xymodem.c xymodem.c: fix compiler warning 2012-11-26 08:56:25 +01:00