Re: [PATCH] Fix out of bounds array access in the preprocessor (PR preprocessor/92919)

2019-12-14 Thread Jason Merrill
On 12/14/19 3:09 AM, Jakub Jelinek wrote: Hi! wide_str_to_charconst function relies on the string passed to it having at least two wide characters, the one we are looking for and the terminating NUL. The empty wide character literal like L'' or u'' or U'' is handled earlier and will not reach t

[PATCH] Fix out of bounds array access in the preprocessor (PR preprocessor/92919)

2019-12-14 Thread Jakub Jelinek
Hi! wide_str_to_charconst function relies on the string passed to it having at least two wide characters, the one we are looking for and the terminating NUL. The empty wide character literal like L'' or u'' or U'' is handled earlier and will not reach this function, but unfortunately for const ch