diff options
author | Mark Wielaard <mark@klomp.org> | 2021-08-07 17:32:41 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-08-08 14:57:25 +0200 |
commit | 007e6ecefb0b43d0b9e7bf85f75ec050b5c520e5 (patch) | |
tree | 2b6a956ccd18a9c4671d38c78bb6b29bdcde5a54 /gcc/gcov-io.h | |
parent | 41e3fb5d2018690243a38c79a60fcc32eb73b013 (diff) | |
download | gcc-007e6ecefb0b43d0b9e7bf85f75ec050b5c520e5.zip gcc-007e6ecefb0b43d0b9e7bf85f75ec050b5c520e5.tar.gz gcc-007e6ecefb0b43d0b9e7bf85f75ec050b5c520e5.tar.bz2 |
lex: accept zero codepoints in strings
Zero characters (codepoints) are acceptable in strings. The current
Lexer::parse_string skipped such zero codepoints by accidents. The
zero codepoint was also used as error/skip indicator, but that is only
true if the third argument of utf8_escape_pair is true (yes, it is
called pair, but is a triple).
Add a testcase that checks the (sub)strings are separated by zero
chars. Since we cannot slice strings yet this uses extern "C"
functions, printf and memchr.
Diffstat (limited to 'gcc/gcov-io.h')
0 files changed, 0 insertions, 0 deletions