diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-07-28 18:51:30 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-07-28 19:01:48 +0200 |
commit | be95a4fe2951374676efc9454ffee8638faaf68d (patch) | |
tree | a06712b16c6e990cf4cb1e500b99dcccac9686e3 /THANKS | |
parent | 6accee7716294afd2e0a9b644935274c5ae6bdb0 (diff) | |
download | bison-be95a4fe2951374676efc9454ffee8638faaf68d.tar.gz |
scanner: don't crash on strings containing a NUL byte
We crash if the input contains a string containing a NUL byte.
Reported by Suhwan Song.
https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html
* src/flex-scanner.h (STRING_FREE): Avoid accidental use of
last_string.
* src/scan-gram.l: Don't call STRING_FREE without calling
STRING_FINISH first.
* tests/input.at (Invalid inputs): Check that case.
Diffstat (limited to 'THANKS')
-rw-r--r-- | THANKS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -185,6 +185,7 @@ Simon Sobisch simonsobisch@web.de Stefano Lattarini stefano.lattarini@gmail.com Stephen Cameron stephenmcameron@gmail.com Steve Murphy murf@parsetree.com +Suhwan Song prada960808@gmail.com Sum Wu sum@geekhouse.org Théophile Ranquet theophile.ranquet@gmail.com Thiru Ramakrishnan thiru.ramakrishnan@gmail.com |