-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Python: use the shared regex pack #11247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…cations being used slightly differently in the shared pack)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a very minor typo.
You write that the dropped result is due to locations. I can see that a result in a nested location is retained. Is that what is going on, some stronger canonicalisation?
It looks like we are getting better alert messages? I remember we turned off prefix computation for Python for a period due to performance issues, perhaps it was never fully turned on again...in any case, the evaluation looks fine.
Unrelated to this PR: Is the construction in PolynimoalReDoS.ql
, where we filter the sources to be PolynomialBackTrackingTerm
s after the dataflow computation a little silly? Should the constraint be part of the definition of Sink
instead?
I would call it some slightly better canonicalisation. You can add more terms to the I'll make the canonicalisation even more robust. |
I seem to remember us fixing the root cause of that a while ago.
Yes. |
Thanks for finding the precise code :-)
That is how I remember it also.
The diff (of the
Absolutely, that belongs in a fix of its own. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran the tests in a Codespace to make sure everything could compile and find each other. I have no further issues. The QLdoc failure is annoying, is it because there is no longer a public import, so it gets confused about where the comment should be? In any case, the check looks to be in the wrong..
I tried to add a public module in the files to see if that made the errors go away, but that didn't happen. |
the commits should explain what's happening
Evaluation looks fine.
I'm pretty sure the QLDoc check failure is spurious, but I don't know that happens.
I've tried to add all the QLDoc I could in those files, and I've even tried to add extra modules into the file (just to have something to attach a QLDoc too), but it keeps failing.