<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_external_one-true-awk, branch android11-dev</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/'/>
<entry>
<title>Fix hwasan global overflow. (#76)</title>
<updated>2020-02-29T02:10:28+00:00</updated>
<author>
<name>enh-google</name>
<email>53129816+enh-google@users.noreply.github.com</email>
</author>
<published>2020-02-28T11:18:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=73af097db58528a3b8b9b69af035786eb3724ae3'/>
<id>73af097db58528a3b8b9b69af035786eb3724ae3</id>
<content type='text'>
* Fix hwasan global overflow.

Crash found with https://source.android.com/devices/tech/debug/hwasan
but also detectable by regular ASan. Here's an ASan crash:

==215690==ERROR: AddressSanitizer: global-buffer-overflow on address
  0x55d90f8da140 at pc 0x55d90f8b7503 bp 0x7ffd3dae6100 sp 0x7ffd3dae60f8
  READ of size 4 at 0x55d90f8da140 thread T0
    #0 0x55d90f8b7502 in word /tmp/awk/lex.c:496
    #1 0x55d90f8b939f in yylex /tmp/awk/lex.c:191
    #2 0x55d90f894ab9 in yyparse /tmp/awk/awkgram.tab.c:2366
    #3 0x55d90f89edc2 in main /tmp/awk/main.c:216
    #4 0x7ff263a78bba in __libc_start_main ../csu/libc-start.c:308
    #5 0x55d90f8945a9 in _start (/tmp/awk/a.out+0x115a9)

0x55d90f8da141 is located 0 bytes to the right of global variable
'infunc' defined in 'awkgram.y:35:6' (0x55d90f8da140) of size 1

SUMMARY: AddressSanitizer: global-buffer-overflow /tmp/awk/lex.c:496 in word
Shadow bytes around the buggy address:
  0x0abba1f133d0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f133e0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f133f0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f13400: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x0abba1f13410: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
=&gt;0x0abba1f13420: 04 f9 f9 f9 f9 f9 f9 f9[01]f9 f9 f9 f9 f9 f9 f9
  0x0abba1f13430: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f13440: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x0abba1f13450: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x0abba1f13460: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x0abba1f13470: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9

And here's the stack trace from hwasan:

  Stack Trace:
  RELADDR           FUNCTION         FILE:LINE
  00000000000168d4  word             external/one-true-awk/lex.c:496:18
  000000000002d1ec  yyparse          y.tab.c:2460:16
  000000000001c82c  main             external/one-true-awk/main.c:179:2
  00000000000b41a0  __libc_init      bionic/libc/bionic/libc_init_dynamic.cpp:151:8

As it says, we're doing a 4-byte read from a 1-byte global.

`infunc` is declared as an int but defined as a bool.

Signed-off-by: Evgenii Stepanov &lt;eugenis@google.com&gt;

* Add ASan cflags to makefile.

They're not used by default, but this way they're easily to hand next
time they're wanted.

Bug: http://b/150168534
Test: treehugger
(cherry picked from commit 7b245a02668dcb9f9677b36f5745cfd07cc216bd)
Change-Id: I1302532f27970b3e73df6536238c2777798bd102
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix hwasan global overflow.

Crash found with https://source.android.com/devices/tech/debug/hwasan
but also detectable by regular ASan. Here's an ASan crash:

==215690==ERROR: AddressSanitizer: global-buffer-overflow on address
  0x55d90f8da140 at pc 0x55d90f8b7503 bp 0x7ffd3dae6100 sp 0x7ffd3dae60f8
  READ of size 4 at 0x55d90f8da140 thread T0
    #0 0x55d90f8b7502 in word /tmp/awk/lex.c:496
    #1 0x55d90f8b939f in yylex /tmp/awk/lex.c:191
    #2 0x55d90f894ab9 in yyparse /tmp/awk/awkgram.tab.c:2366
    #3 0x55d90f89edc2 in main /tmp/awk/main.c:216
    #4 0x7ff263a78bba in __libc_start_main ../csu/libc-start.c:308
    #5 0x55d90f8945a9 in _start (/tmp/awk/a.out+0x115a9)

0x55d90f8da141 is located 0 bytes to the right of global variable
'infunc' defined in 'awkgram.y:35:6' (0x55d90f8da140) of size 1

SUMMARY: AddressSanitizer: global-buffer-overflow /tmp/awk/lex.c:496 in word
Shadow bytes around the buggy address:
  0x0abba1f133d0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f133e0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f133f0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f13400: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x0abba1f13410: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
=&gt;0x0abba1f13420: 04 f9 f9 f9 f9 f9 f9 f9[01]f9 f9 f9 f9 f9 f9 f9
  0x0abba1f13430: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
  0x0abba1f13440: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x0abba1f13450: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x0abba1f13460: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x0abba1f13470: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9

And here's the stack trace from hwasan:

  Stack Trace:
  RELADDR           FUNCTION         FILE:LINE
  00000000000168d4  word             external/one-true-awk/lex.c:496:18
  000000000002d1ec  yyparse          y.tab.c:2460:16
  000000000001c82c  main             external/one-true-awk/main.c:179:2
  00000000000b41a0  __libc_init      bionic/libc/bionic/libc_init_dynamic.cpp:151:8

As it says, we're doing a 4-byte read from a 1-byte global.

`infunc` is declared as an int but defined as a bool.

Signed-off-by: Evgenii Stepanov &lt;eugenis@google.com&gt;

* Add ASan cflags to makefile.

They're not used by default, but this way they're easily to hand next
time they're wanted.

Bug: http://b/150168534
Test: treehugger
(cherry picked from commit 7b245a02668dcb9f9677b36f5745cfd07cc216bd)
Change-Id: I1302532f27970b3e73df6536238c2777798bd102
</pre>
</div>
</content>
</entry>
<entry>
<title>Upgrade one-true-awk to e9c99065fd31253a4db4a6bce673decd143f7a3e am: 69b38a7b2d am: b449b2550c am: a8dca89194</title>
<updated>2020-02-10T22:54:57+00:00</updated>
<author>
<name>Automerger Merge Worker</name>
<email>android-build-automerger-merge-worker@system.gserviceaccount.com</email>
</author>
<published>2020-02-10T22:54:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=a400023b12be6761be6ce6b14c8da0d80e60ecee'/>
<id>a400023b12be6761be6ce6b14c8da0d80e60ecee</id>
<content type='text'>
Change-Id: I03638f7dfb56f76f3ff8ddd3e614deed18cd7daf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I03638f7dfb56f76f3ff8ddd3e614deed18cd7daf
</pre>
</div>
</content>
</entry>
<entry>
<title>Upgrade one-true-awk to e9c99065fd31253a4db4a6bce673decd143f7a3e am: 69b38a7b2d am: b449b2550c</title>
<updated>2020-02-10T22:39:22+00:00</updated>
<author>
<name>Automerger Merge Worker</name>
<email>android-build-automerger-merge-worker@system.gserviceaccount.com</email>
</author>
<published>2020-02-10T22:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=a8dca891946079f3c23c8ad53bfd144ac57625c3'/>
<id>a8dca891946079f3c23c8ad53bfd144ac57625c3</id>
<content type='text'>
Change-Id: I8a9bb47900a36c47d9347beb0613b822632dfd9b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I8a9bb47900a36c47d9347beb0613b822632dfd9b
</pre>
</div>
</content>
</entry>
<entry>
<title>Upgrade one-true-awk to e9c99065fd31253a4db4a6bce673decd143f7a3e am: 69b38a7b2d</title>
<updated>2020-02-10T22:26:22+00:00</updated>
<author>
<name>Automerger Merge Worker</name>
<email>android-build-automerger-merge-worker@system.gserviceaccount.com</email>
</author>
<published>2020-02-10T22:26:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=b449b2550cc5d6f06ebd063bb94b943a02cb1cb0'/>
<id>b449b2550cc5d6f06ebd063bb94b943a02cb1cb0</id>
<content type='text'>
Change-Id: Ibbe36fd1dd5cb5cd3f4a1d890794788a00ac7975
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ibbe36fd1dd5cb5cd3f4a1d890794788a00ac7975
</pre>
</div>
</content>
</entry>
<entry>
<title>Upgrade one-true-awk to e9c99065fd31253a4db4a6bce673decd143f7a3e</title>
<updated>2020-02-10T20:16:48+00:00</updated>
<author>
<name>Haibo Huang</name>
<email>hhb@google.com</email>
</author>
<published>2020-02-08T04:33:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=69b38a7b2d0138fe1cd8275389148ab8da472fef'/>
<id>69b38a7b2d0138fe1cd8275389148ab8da472fef</id>
<content type='text'>
Test: None
Change-Id: I1deb6d8c9e61f129ee3cfe324eea796a5dc7b0c8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test: None
Change-Id: I1deb6d8c9e61f129ee3cfe324eea796a5dc7b0c8
</pre>
</div>
</content>
</entry>
<entry>
<title>Update README.md PR instructions.</title>
<updated>2020-02-07T07:32:41+00:00</updated>
<author>
<name>Arnold D. Robbins</name>
<email>arnold@skeeve.com</email>
</author>
<published>2020-02-07T07:32:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=e9c99065fd31253a4db4a6bce673decd143f7a3e'/>
<id>e9c99065fd31253a4db4a6bce673decd143f7a3e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore zoulas fixes, stage 3.</title>
<updated>2020-02-06T20:38:30+00:00</updated>
<author>
<name>Arnold D. Robbins</name>
<email>arnold@skeeve.com</email>
</author>
<published>2020-02-06T20:38:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=e6fe674b404151c66440fd76bca7708cf3a2fe37'/>
<id>e6fe674b404151c66440fd76bca7708cf3a2fe37</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore zoulas fixes, stages 2.</title>
<updated>2020-02-06T20:32:55+00:00</updated>
<author>
<name>Arnold D. Robbins</name>
<email>arnold@skeeve.com</email>
</author>
<published>2020-02-06T20:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=cd552112a7c9d4d8892190fef4b45c646d43ad5d'/>
<id>cd552112a7c9d4d8892190fef4b45c646d43ad5d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore zoulas fixes, step 1.</title>
<updated>2020-02-06T20:27:31+00:00</updated>
<author>
<name>Arnold D. Robbins</name>
<email>arnold@skeeve.com</email>
</author>
<published>2020-02-06T20:27:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=5068d20ef6ec53686488f1e48bd99e35e98efa40'/>
<id>5068d20ef6ec53686488f1e48bd99e35e98efa40</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert zoulas changes until we can keep tests passing.</title>
<updated>2020-02-06T20:08:20+00:00</updated>
<author>
<name>Arnold D. Robbins</name>
<email>arnold@skeeve.com</email>
</author>
<published>2020-02-06T20:08:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_one-true-awk/commit/?id=d7a7e4d1479ac90299401df3d5de513d1190b39f'/>
<id>d7a7e4d1479ac90299401df3d5de513d1190b39f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
