Make it more clear to auditors that security-critical regexp can't match strings with newlines#4
Make it more clear to auditors that security-critical regexp can't match strings with newlines#4defuse wants to merge 1 commit intoadityapk00:masterfrom defuse:fix-regexp
Conversation
|
Although the suggested change is okay, my experiments show this is not a problem. The Golang https://play.golang.org/p/NrgjszRg-9g As you can see, the pattern doesn't match ( https://play.golang.org/p/edqhoeeVqon As you can see if you run this program, the pattern now matches. Here is that program, in case the above playground link stops working: Because our code doesn't specify the multi-line flag, I think the pattern matching as written (with |
…tch strings with newlines
|
Thanks @LarryRuane! I think it's worth using |
|
@defuse, sorry, I forgot about this. Do you still think it's worth doing? If so, you could reopen it and I could quickly merge it. |
No description provided.