Open pcarrier opened 8 years ago
Note that this does not happen under OSX. I suspect node-oniguruma handles Unicode differently somehow.
node-oniguruma
To reproduce:
breaks.js
breaks.rb
0x27 0xc3 0xbc 0x27
J8O8Jw==
'ü'
highlights
Please note that for server-side uses of highlights and whenever user-provided data is highlighted (eg through marky-markdown), this is a security issue as it allows DoS.
marky-markdown
Note that this does not happen under OSX. I suspect
node-oniguruma
handles Unicode differently somehow.To reproduce:
breaks.js
orbreaks.rb
(for example), with the bytes0x27 0xc3 0xbc 0x27
(base64J8O8Jw==
), which looks like'ü'
.highlights
command line utility on it. It never returns and its memory usage grows over time.