Skip to content

Conversation

@aibaars
Copy link
Contributor

@aibaars aibaars commented Mar 18, 2022

No description provided.

@aibaars aibaars requested a review from a team as a code owner March 18, 2022 15:32
RegExpTerm getParsedRegExp(StrConst re) { result.getRegex() = re and result.isRootTerm() }

/**
* A node whose value may flow to a position where it is interpreted
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tausbn You asked for this class to me moved to another location. Could you tell me the preferred place?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would just create a file in lib/semmle/python/dataflow/new called Regex.qll, and import it appropriately. Would that be okay?

@aibaars aibaars added the no-change-note-required This PR does not need a change note label Mar 18, 2022
Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

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

This looks good to me now, although there are a bunch of QL warnings.
Really nice to see this sharing!

@aibaars aibaars force-pushed the incomplete-hostname-python branch from 30dd1c0 to 41bd644 Compare March 21, 2022 14:28
@aibaars aibaars force-pushed the incomplete-hostname-python branch from 41bd644 to 79cd7bf Compare March 21, 2022 14:57
@aibaars
Copy link
Contributor Author

aibaars commented Mar 21, 2022

@yoff @tausbn I addressed your comments and fixed the QL warnings.

Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

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

LGTM

@yoff yoff merged commit 47e062c into github:main Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants