platform/upstream/patch.git
4 years ago[CVE-2016-10713] Fix out-of-bounds access to lines in a patch accepted/tizen_6.5_base accepted/tizen_6.5_base_tool backup/patch-2.7-20220120 tizen_6.5_base accepted/tizen/6.5/base/20230714.002619 accepted/tizen/6.5/base/tool/20211027.120430 accepted/tizen/6.5/base/tool/20220530.211717 accepted/tizen/base/tool/20210324.043643 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.201001 submit/tizen_6.5_base/20220526.031900 submit/tizen_base/20210317.042922 tizen_6.5.m2_release
JinWang An [Mon, 22 Feb 2021 09:47:06 +0000 (18:47 +0900)]
[CVE-2016-10713] Fix out-of-bounds access to lines in a patch

This bug can trigger with malformed patches.
* src/pch.c (pch_write_line): Avoid out-of-bounds access to
p_line[line][p_len[line] - 1] when p_len[line] is 0.

Change-Id: I9e82bc52555b7de139535280fe96d1a31d196176
Signed-off-by: JinWang An <jinwang.an@samsung.com>
4 years ago[CVE-2010-4651] Do not let a malicious patch create files above current directory
JinWang An [Tue, 23 Feb 2021 12:17:49 +0000 (21:17 +0900)]
[CVE-2010-4651] Do not let a malicious patch create files above current directory

This addresses CVE-2010-4651, reported by Jakub Wilk.
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-4651
* src/util.c (strip_leading_slashes): Reject absolute file names
and file names containing a component of "..".
* tests/bad-filenames: New file.  Test for this.
* tests/Makefile.am (TESTS): Add it.
Improvements by Andreas Gruenbacher.

Change-Id: I2f85671214a71c84461b1b2c805c7f48f3b3f922
Signed-off-by: JinWang An <jinwang.an@samsung.com>
4 years ago[CVE-2014-9637] Fail when out of memory in set_hunkmax()
JinWang An [Mon, 22 Feb 2021 06:17:10 +0000 (15:17 +0900)]
[CVE-2014-9637] Fail when out of memory in set_hunkmax()

src/pch.c (another_hunk): Call set_hunkmax() from here to make sure it is
called even when falling back from plan A to plan B.
(open_patch_file): No need to call set_hunkmax() anymore.
src/pch.c (set_hunkmax): Fail when out of memory. Make static.
src/pch.h: Remove set_hunkmax() prototype.

Change-Id: Ibbab473998ef297844787b033cca52f8a7b4e86d
Signed-off-by: JinWang An <jinwang.an@samsung.com>
4 years ago[CVE-2018-17942] vasnprintf: Fix heap memory overrun bug.
JinWang An [Mon, 22 Feb 2021 05:16:21 +0000 (14:16 +0900)]
[CVE-2018-17942] vasnprintf: Fix heap memory overrun bug.

Reported by Ben Pfaff <blp@cs.stanford.edu> in
<https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.

* lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
memory.

Change-Id: Ib18ee4fcfb4f8f7fbbd16b206479a7b370c6416d
Signed-off-by: JinWang An <jinwang.an@samsung.com>
12 years agoSet license using %license accepted/tizen/ivi/genivi accepted/tizen/ivi/stable accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0.m2_base accepted/tizen_3.0_base accepted/tizen_3.0_ivi accepted/tizen_4.0_base accepted/tizen_5.0_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix accepted/tizen_6.0_base accepted/tizen_6.0_base_tool accepted/tizen_6.0_base_tool_hotfix accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2_base tizen_3.0_base tizen_3.0_ivi tizen_4.0_base tizen_4.0_tv tizen_5.0_base tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv tizen_6.0_base tizen_6.0_base_hotfix tizen_ivi_genivi accepted/tizen/20130520.100329 accepted/tizen/20130912.153437 accepted/tizen/20130912.190816 accepted/tizen/20130912.195102 accepted/tizen/3.0.m2/base/20170104.081911 accepted/tizen/3.0/base/20161028.103043 accepted/tizen/4.0/base/20170811.092742 accepted/tizen/4.0/base/20170828.221115 accepted/tizen/5.0/base/20181101.090459 accepted/tizen/5.5/base/20191030.082447 accepted/tizen/5.5/base/mobile/hotfix/20201023.084617 accepted/tizen/5.5/base/wearable/hotfix/20201023.081001 accepted/tizen/6.0/base/20201029.111210 accepted/tizen/6.0/base/20230713.142956 accepted/tizen/6.0/base/tool/20201029.112403 accepted/tizen/6.0/base/tool/20220530.211608 accepted/tizen/6.0/base/tool/hotfix/20201030.125140 accepted/tizen/6.0/base/tool/hotfix/20201102.090558 accepted/tizen/base/20151223.052228 accepted/tizen/base/tool/20210308.002502 accepted/tizen/ivi/genivi/20140131.034602 ivi_oct_m2 submit/tizen/20130511.054931 submit/tizen/20130514.161219 submit/tizen/20130517.023609 submit/tizen/20130912.090521 submit/tizen_3.0.m2_base/20170104.073748 submit/tizen_3.0_base/20161028.062323 submit/tizen_4.0_base/20170811.071500 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_5.0_base/20181101.000001 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_6.0_base/20201029.184801 submit/tizen_6.0_base/20220526.031914 submit/tizen_6.0_base_hotfix/20201030.192501 submit/tizen_6.0_base_hotfix/20201102.162701 submit/tizen_base/20151223.111112 submit/tizen_base/20210308.001500 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_ivi_genivi/20140131.030823 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release
Anas Nashif [Sat, 11 May 2013 05:49:28 +0000 (01:49 -0400)]
Set license using %license

12 years agoadd packaging files accepted/tizen/20130503.225859 accepted/trunk/20130325.213324 submit/tizen/20130503.230854 submit/tizen/20130509.182745 submit/trunk/20130325.083703
Anas Nashif [Tue, 16 Oct 2012 15:33:53 +0000 (08:33 -0700)]
add packaging files

12 years agoImported Upstream version 2.7 upstream/2.7
Anas Nashif [Tue, 16 Oct 2012 15:32:58 +0000 (08:32 -0700)]
Imported Upstream version 2.7