Skip to content

Conversation

@MathiasVP
Copy link
Collaborator

@MathiasVP MathiasVP commented Dec 18, 2025

The TaintedPathQuery.qll has a history of incorrect merge conflict resolution, and yesterday I contributed to that history when trying to resolve conflicts for our 2.23.8 upgrade 😂 Here's a brief history lesson:

image image
  • Upon trying to fix that in 6a1f66b I did an incorrect resolution:
image

And at this point all my changes from #237 had basically been accidentially conflict resolved away 😅

Lesson learned! Merge conflict resolution is hard, and I should have upstreamed the changes ASAP to avoid stuff like this going forward.

As a small "bonus" I also discovered that the logic I added in 4dfa886 was not sound and I have reverted that in fa9f02a (and updated the tests to reflect this).

MathiasVP and others added 3 commits December 18, 2025 11:53
GOOD since it didnt normalize the path after the
concat. The logic added in 4dfa886
was flawed since `Path.Combine(x, y)` is not a normalized
path even when `x` is normalized (since `y` may contain
`..` segments).
@dilanbhalla dilanbhalla merged commit 626127b into main Dec 18, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants