Re: -fsanitize=memory
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: -fsanitize=memory
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2019年11月22日 08:24:10 -0300
> MemorySanitizer: use-of-uninitialized-value /home/mpech/lua-5.3.5/src/liolib.c:490:58 in read_line
Here is the line in question:
while (i < LUAL_BUFFERSIZE && (c = l_getc(f)) != EOF && c != '\n')
The tool seems to think that c is uninitialized, which is clearly
wrong given this line just before the loop:
int c = '0円';
What am I missing?