unicode-rs / unicode-normalization

Unicode Normalization forms according to UAX#15 rules
https://unicode-rs.github.io/unicode-normalization
Other
158 stars 40 forks source link

Correctly reset streamsafe iterator #62

Closed Manishearth closed 3 years ago

Manishearth commented 3 years ago

The attached test was failing otherwise, (credit @sunfishcode). We basically did not take into account the decomposition width of the next character when buffering after a combining grapheme joiner.

We should probably add fuzz targets for this stuff using cargo-fuzz.

Manishearth commented 3 years ago

Merging since this could be a security issue, feel free to review ex post facto.