[PATCH 0/2] Re: [PATCH] libcpp: Implement -Wbidirectional for CVE-2021-42574 [PR103026]

2021-11-02 Thread David Malcolm via Gcc-patches
On Mon, 2021-11-01 at 12:36 -0400, Marek Polacek via Gcc-patches wrote: > From a link below: > "An issue was discovered in the Bidirectional Algorithm in the > Unicode > Specification through 14.0. It permits the visual reordering of > characters via control sequences, which can be used to craft so

Re: [PATCH] libcpp: Implement -Wbidirectional for CVE-2021-42574 [PR103026]

2021-11-01 Thread Joseph Myers
On Mon, 1 Nov 2021, Marek Polacek via Gcc-patches wrote: > + /* We've read a bidi char, update the current vector as necessary. */ > + void on_char (kind k, bool ucn_p) > + { > +switch (k) > + { > + case kind::LRE: > + case kind::RLE: > + case kind::LRO: > + case k