Closed JohnConnorRF closed 3 years ago
I will take a look into this first thing tomorrow morning. Thank you for bringing it to our attention.
I found the source of the bug and the fix has just been merged into master. Thank you very much @JohnConnorRF for reporting this.
Thanks for the prompt response. You’re support for this project is so helpful.
Hey guys,
I found a strange bug. Under certain conditions re-running yara_validator_cli.py with inplace modification adds unnecessary whitespace to a file
I've been using cccs-yara to help validate a repo of yara rules. As part of that workflow, the rules end up being checked pretty consistently with the flags -i -v for in place changes to be made. Rerunning the validation can add up to kilobytes of whitespace to a file.
A test yara rule which triggers the bug can be seen below:
Note there is whitespace added longer than the usual tabs between $s1 and $s2.