C++: Escape any $ - specifically in $@ - coming from error messages#19144
C++: Escape any $ - specifically in $@ - coming from error messages#19144jketema merged 2 commits intogithub:mainfrom
$ - specifically in $@ - coming from error messages#19144Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (2)
- cpp/ql/src/Diagnostics/ExtractionWarnings.ql: Language not supported
- cpp/ql/src/Diagnostics/Internal/ExtractionErrors.ql: Language not supported
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
redsun82
left a comment
There was a problem hiding this comment.
LGTM!
I wonder if we will see this giving us problems in other instances. Do we have other diagnostics printed out in queries that could cause similar problems?
getFile() could also very theoretically contain a $, but I guess having filenames with $ is fishing for problems 😅
Possibly, but I don't see any other way of fixing this than on a case-by -case basis.
Yeah. The critically broken pattern is |
No description provided.