platform/upstream/augeas.git
3 years ago[CVE-2018-17942] vasnprintf: Fix heap memory overrun bug. 47/253647/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified sandbox/backup/augeas_1.12.0_20240220 tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.223931 accepted/tizen/7.0/unified/20221110.060114 accepted/tizen/7.0/unified/hotfix/20221116.110621 accepted/tizen/8.0/unified/20231005.094636 accepted/tizen/unified/20210217.030914 submit/tizen/20210216.061138 submit/tizen_6.5/20211028.163301 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
Bruno Haible [Sun, 23 Sep 2018 12:13:52 +0000 (14:13 +0200)]
[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.
* tests/test-vasnprintf.c (test_function): Add another test.

Change-Id: I84a150d122b8e74d8ba135f5423a727ece94ece9
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
3 years ago[CVE-2017-7476] time_rz: fix heap buffer overflow vulnerability 37/253637/1
Pádraig Brady [Mon, 24 Apr 2017 08:43:36 +0000 (01:43 -0700)]
[CVE-2017-7476] time_rz: fix heap buffer overflow vulnerability

This issue has been assigned CVE-2017-7476 and was
detected with American Fuzzy Lop 2.41b run on the
coreutils date(1) program with ASAN enabled.

  ERROR: AddressSanitizer: heap-buffer-overflow on address 0x...
  WRITE of size 8 at 0x60d00000cff8 thread T0
  #1 0x443020 in extend_abbrs lib/time_rz.c:88
  #2 0x443356 in save_abbr lib/time_rz.c:155
  #3 0x44393f in localtime_rz lib/time_rz.c:290
  #4 0x41e4fe in parse_datetime2 lib/parse-datetime.y:1798

A minimized reproducer is the following 120 byte TZ value,
which goes beyond the value of ABBR_SIZE_MIN (119) on x86_64.
Extend the aa...b portion to overwrite more of the heap.

  date -d $(printf 'TZ="aaa%020daaaaaab%089d"')

localtime_rz and mktime_z were affected since commit 4bc76593.
parse_datetime was affected since commit 4e6e16b3f.

* lib/time_rz.c (save_abbr): Rearrange the calculation determining
whether there is enough buffer space available.  The rearrangement
ensures we're only dealing with positive numbers, thus avoiding
the problematic promotion of signed to unsigned causing an invalid
comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
the start of the buffer.
* tests/test-parse-datetime.c (main): Add a test case written by
Paul Eggert, which overwrites enough of the heap so that
standard glibc will fail with "free(): invalid pointer"
without the patch applied.
Reported and analyzed at https://bugzilla.redhat.com/1444774

Change-Id: Id185d8f252f2050e2c894cb07e04d9cc9f551f6f
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
5 years agoResolve timing issue of parallel build 10/210510/1 accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_6.0 tizen_6.0_hotfix accepted/tizen/5.5/unified/20191031.005208 accepted/tizen/5.5/unified/mobile/hotfix/20201027.063647 accepted/tizen/6.0/unified/20201030.104641 accepted/tizen/6.0/unified/hotfix/20201103.000745 accepted/tizen/unified/20190723.053643 submit/tizen/20190722.080617 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 tizen_5.5.m2_release tizen_6.0.m2_release
Hyunjee Kim [Mon, 22 Jul 2019 04:50:56 +0000 (13:50 +0900)]
Resolve timing issue of parallel build

Change-Id: I4fbc922bdc6164597c205d168030880acf1bbde0
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
5 years agoBump to augeas 1.12.0 accepted/tizen/unified/20190703.110707 submit/tizen/20190703.010851
DongHun Kwak [Wed, 3 Jul 2019 01:07:01 +0000 (10:07 +0900)]
Bump to augeas 1.12.0

Change-Id: Ied5c864caf941811732883ae2253eef0fefcd0fc
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
5 years agoImported Upstream version 1.12.0 upstream/1.12.0
DongHun Kwak [Wed, 3 Jul 2019 00:21:33 +0000 (09:21 +0900)]
Imported Upstream version 1.12.0

5 years agoImported Upstream version 1.11.0 upstream/1.11.0
DongHun Kwak [Wed, 3 Jul 2019 00:21:19 +0000 (09:21 +0900)]
Imported Upstream version 1.11.0

6 years agoImported Upstream version 1.10.1 19/175119/1 upstream/1.10.1
jinwang.an [Fri, 6 Apr 2018 04:04:39 +0000 (13:04 +0900)]
Imported Upstream version 1.10.1

Change-Id: If6e444a746ef6b37fe35cecb0d1dc9d67ea9682d

7 years agoImported Upstream version 1.9.0 37/156137/1 upstream/1.9.0
DongHun Kwak [Tue, 17 Oct 2017 08:10:04 +0000 (17:10 +0900)]
Imported Upstream version 1.9.0

Change-Id: I38cb9b349bca43fb33639c94e8d605ebc602d1c0
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
7 years agoImported Upstream version 1.8.1 36/156136/1
DongHun Kwak [Tue, 17 Oct 2017 08:09:42 +0000 (17:09 +0900)]
Imported Upstream version 1.8.1

Change-Id: I03853b10dfe1e474bc32669e7a8948e3bf71605d
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
7 years agoImported Upstream version 1.8.0 35/156135/1
DongHun Kwak [Tue, 17 Oct 2017 08:09:21 +0000 (17:09 +0900)]
Imported Upstream version 1.8.0

Change-Id: I90f0364b08be0538976d5e9ba371dce73b17c0cb
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
7 years agoImported Upstream version 1.7.0 93/130593/1 upstream/1.7.0
DongHun Kwak [Tue, 23 May 2017 04:52:53 +0000 (13:52 +0900)]
Imported Upstream version 1.7.0

Change-Id: If4151f27ba94a08fd056c1227019a1f25cb1e66f
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
8 years agoImported Upstream version 1.6.0 37/91137/1 upstream/1.6.0
DongHun Kwak [Thu, 6 Oct 2016 04:47:13 +0000 (13:47 +0900)]
Imported Upstream version 1.6.0

Change-Id: Ib488a1803305cd67ce55b116ebba415d68c0e787
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
8 years agoImported Upstream version 1.5.0 36/91136/1 upstream/1.5.0
DongHun Kwak [Thu, 6 Oct 2016 04:46:51 +0000 (13:46 +0900)]
Imported Upstream version 1.5.0

Change-Id: I5683db92e912e2db33dddf08e5eba677b5d0c2d0
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
8 years agoImported Upstream version 1.4.0 36/57836/1
DongHun Kwak [Mon, 25 Jan 2016 06:51:51 +0000 (15:51 +0900)]
Imported Upstream version 1.4.0

Change-Id: I09444341afcfd4b048fab7a7a41c226a07c904cf
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
9 years agoImported Upstream version 1.3.0 upstream/1.3.0
Chanho Park [Tue, 6 Jan 2015 02:17:11 +0000 (11:17 +0900)]
Imported Upstream version 1.3.0

11 years agoImported Upstream version 0.10.0 upstream/0.10.0
Anas Nashif [Tue, 30 Oct 2012 02:50:38 +0000 (19:50 -0700)]
Imported Upstream version 0.10.0