n4o847 / seccamp-redos

A tool for detecting ReDoS vulnerabilities based on automata theory.
https://n4o847.github.io/seccamp-redos/
7 stars 4 forks source link

文字の扱いを修正 #27

Closed n4o847 closed 3 years ago

n4o847 commented 3 years ago

文字としてエスケープされているものを集めてしまっていたのでそこを直したものです。( #26 で問題になった)

他にさほど影響はしないはずです。

n4o847 commented 3 years ago

node.raw が正規表現上の表現をそのまま切り取ったものなので、 /\t/ とかが "\\t" になっちゃってたんですね

/\s/ とかで作られたやつでは普通に "\t" が入るので、今までだと /\s\t/"\t""\\t" が入ることになってしまっていました(これは普通にバグ……)

n4o847 commented 3 years ago

マージしちゃいますね