summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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>
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>
Anas Nashif [Sat, 11 May 2013 05:49:28 +0000 (01:49 -0400)]
Set license using %license
Anas Nashif [Tue, 16 Oct 2012 15:33:53 +0000 (08:33 -0700)]
add packaging files
Anas Nashif [Tue, 16 Oct 2012 15:32:58 +0000 (08:32 -0700)]
Imported Upstream version 2.7