[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#521257: Use of uninitialized value in bitwise or (|) at /usr/share/lintian/lib/Lintian/Command.pm line 308.



Raphael Geissert <atomo64+debian@gmail.com> writes:

> I found a difference on the results of the file-info parsing:
> 
> diff --git a/t1 b/t2
> index 14783a7..1e3fbb1 100644
> --- a/t1
> +++ b/t2
> @@ -648,4 +648,4 @@ unit_tests/urls.nocomment.ref^@
>  unit_tests/urls.notags.ref^@
>  unit_tests/valgrind.supp^@
>  unit_tests/valgrind_tests.sh^@
> -unit_tests/virusaction-test.sh^@
> +unit_tests/virusaction-test.s^@
> 
> The former is from my machine, the latter is from the provided index.

Where is this generated at?  A nul followed by a newline is strange.  Or
was this just from debugging code?

> Although there's definitely a bug in how the index is generated, I found
> another bug, in file-info: chop was being used instead of chomp;
> attached mbox corrects that (and should probably workaround the index
> file generation bug).

chomp is better coding style, but it should be exactly equivalent here
since the index is newline-terminated records.  Am I missing something?

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: