[CVE-2016-9842] Avoid shifts of negative values inflateMark(). 74/256474/1 accepted/tizen_6.0_base accepted/tizen_6.0_base_tool tizen_6.0_base accepted/tizen/6.0/base/20230713.143102 accepted/tizen/6.0/base/tool/20210409.094459 submit/tizen_6.0_base/20210405.073145
authorJinWang An <jinwang.an@samsung.com>
Mon, 5 Apr 2021 06:52:49 +0000 (15:52 +0900)
committerJinWang An <jinwang.an@samsung.com>
Mon, 5 Apr 2021 06:52:49 +0000 (15:52 +0900)
commit15c27a062edd2b6eb9a6fa858e5d50e348e584bd
treeb6b6e7486268561ef040ab11b7f065454e6d9480
parent66a9cedc1ffed1c24be7128cd1ba8bf691f220f8
[CVE-2016-9842] Avoid shifts of negative values inflateMark().

The C standard says that bit shifts of negative integers is
undefined.  This casts to unsigned values to assure a known
result.

Change-Id: I217ff9e4407b0627838fc84fd81413098cac0931
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
compat/zlib/inflate.c