[PATCH] libcpp: Implement -Wbidi-chars for CVE-2021-42574 [PR103026]

Stephan Bergmann sbergman@redhat.com
Fri Jan 14 14:52:31 GMT 2022


On 14/01/2022 14:28, Marek Polacek wrote:
> On Fri, Jan 14, 2022 at 10:23:16AM +0100, Stephan Bergmann wrote:
>> On 30/11/2021 16:27, Marek Polacek wrote:
>>> I guess we were concerned with programs that generate other programs.
>>> Maybe UCNs should be ignored by default.  There's still time to adjust
>>> the behavior.
>>
>> Is there any update on this?  Shall I file a bug?  As-is, -Wbidi-chars is
>> unusable for building LibreOffice and (esp. in combination with
>> <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431> "C++ preprocessor
>> ignores #pragma GCC diagnostic") has to be explicitly disabled globally.
> 
> No update, it wasn't clear to me what the action should be here.
> 
> Please do file a bug.  I think I'll just have to adjust the warning to ignore
> UCNs.

<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104030> "-Wbidi-chars 
should not warn about UCNs"



More information about the Gcc-patches mailing list