diff options
| author | Paul Taysom <taysom@chromium.org> | 2013-06-20 07:28:45 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:13 +0200 |
| commit | 3852eb8985f994c0013643893121080a8adf816c (patch) | |
| tree | e34b0b6e5df5a5ae0b924b093d7a84fd8a1adff3 /include/linux/platform_data | |
| parent | 808470257ec4db6bf061a7db98d961db891d637b (diff) | |
lib: zlib_inflage: fixed potential buffer overflow
smatch error from arm build:
arch/arm/boot/compressed/../../../../lib/zlib_inflate/inftrees.c:240 zlib_inflate_table() error: buffer overflow 'count' 16 <= 16
Because min is later assigned to len in zlib_inflate_table, by switching the tests
around, min always stays in bounds.
BUG=chromium:237705
TEST=FEATURES=test emerge-$B chromeos-kernel-next
Signed-off-by: Paul Taysom <taysom@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/59426
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
