[Pkg-rust-maintainers] Bug#925544: Bug#925544: ripgrep: Exits immediately without warning if it encounters a NUL byte inside the file to be searched, might exit with wrong exit code depending on the position of the match

Sylvestre Ledru sylvestre at debian.org
Tue Mar 26 17:24:05 GMT 2019


severity 925544 normal
thanks

Hello,

Lowering the severity as rg remains functionnal in the huge majority of the cases.
And has a workaround and I can't reproduce.

Le 26/03/2019 à 18:12, Axel Beckert a écrit :
> Package: ripgrep
> Version: 0.10.0-2
> Severity: important
> Tags: upstream
> 
> Hi,
> 
> with several GB via STDIN, rg as well as rg -F immediately exited
> without any output while fgrep found many hits until it issued the
> warning "Binary file (standard input) matches".
> 

I cannot reproduce the issue on my system
cat aeh.txt | fgrep a
doesn't show the warning
(french locale)


and both
cat aeh.txt | rg -a a
cat aeh.txt | rg a
returns the same thing


afaik, with the correct file:
% cat -v aeh.txt
a
M-CM-$

a


BTW, don't hesitate to report this directly upstream as it doesn't seem to be a packaging issue.

Thanks
S



More information about the Pkg-rust-maintainers mailing list