Skip to content

ReDoS: Spelling nfautils#10799

Merged
erik-krogh merged 6 commits intogithub:mainfrom
jsoref:spelling-nfautils
Oct 12, 2022
Merged

ReDoS: Spelling nfautils#10799
erik-krogh merged 6 commits intogithub:mainfrom
jsoref:spelling-nfautils

Conversation

@jsoref
Copy link
Copy Markdown
Contributor

@jsoref jsoref commented Oct 12, 2022

This is a follow-up to #10743

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
@jsoref jsoref requested review from a team as code owners October 12, 2022 19:03
@jsoref jsoref changed the title Spelling nfautils ReDoS: Spelling nfautils Oct 12, 2022
@erik-krogh erik-krogh self-requested a review October 12, 2022 19:08
@erik-krogh erik-krogh added the no-change-note-required This PR does not need a change note label Oct 12, 2022
*/
class EmptyPositiveSubPatttern extends RegExpSubPattern {
EmptyPositiveSubPatttern() {
class EmptyPositiveSubPattern extends RegExpSubPattern {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add this above? (In all copies of NfaUtils.qll).

/** DEPRECATED: Use `EmptyPositiveSubPattern` instead. */
deprecated class EmptyPositiveSubPatttern = EmptyPositiveSubPattern;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it seems the code formatter check is failing.
Either autoformat using VSCode, or do codeql query format -i.

Comment on lines -62 to +63
class EmptyPositiveSubPatttern extends RegExpSubPattern {
EmptyPositiveSubPatttern() {
class EmptyPositiveSubPattern extends RegExpSubPattern {
EmptyPositiveSubPattern() {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-Patttern
+Pattern

Comment on lines 337 to +340
}

private string lowercaseLetter() { result = "abdcefghijklmnopqrstuvwxyz".charAt(_) }
private string lowercaseLetter() { result = "abcdefghijklmnopqrstuvwxyz".charAt(_) }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-abdc
+abcd

@jsoref jsoref force-pushed the spelling-nfautils branch from 250428c to a2b0cf2 Compare October 12, 2022 19:15
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
@jsoref jsoref force-pushed the spelling-nfautils branch from a2b0cf2 to 09c8a98 Compare October 12, 2022 19:20
@erik-krogh erik-krogh merged commit 10aab81 into github:main Oct 12, 2022
@jsoref jsoref deleted the spelling-nfautils branch October 12, 2022 21:10
@jsoref jsoref mentioned this pull request Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants