Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix handling of binary files when using ripgrep scanner #19403
This PR is a follow-up of #19348
By pure chance I've found an issue when handling files that have lines with binary content while testing the
The main problem is found when a file has lines with non-UTF characters it returns a base64 representation of that line in the json output (to not break the JSON formatting). There's more information about it here.
Before this PR, we were not handling this scenario and the parser miserably failed