Re: [sqlite] gnu gcc address sanitizer finds stack-use-after-scope in sqlite3VdbeExec

2017-04-20 Thread Cezary H. Noweta
Hello, On 2017-04-19 19:31, Dan Kennedy wrote: If you compile the code below with gcc 7.0.1: gcc code.c -fsantitize=address -o tst and then run: ./tst 2 Does the sanitizer make the same complaint? [...] /**/ [...] switch( a ){

Re: [sqlite] gnu gcc address sanitizer finds stack-use-after-scope in sqlite3VdbeExec

2017-04-20 Thread Cezary H. Noweta
On 2017-04-19 19:31, Dan Kennedy wrote: On 04/18/2017 07:12 PM, Vitti wrote: In my opinion this is probably due to erroneous usage of variable res in the branches of the huge switch in sqlite3VdbeExec What's wrong with ``{ int res; res = 0; }''? The sanitizer should alert in the following

Re: [sqlite] gnu gcc address sanitizer finds stack-use-after-scope in sqlite3VdbeExec

2017-04-19 Thread Dan Kennedy
On 04/18/2017 07:12 PM, Vitti wrote: Hi there, I just downloaded version 3.18 and after compiling it with the following command gcc shell.c sqlite3.c -g -fsanitize=address -DSQLITE_DEBUG -o sqlite -ldl -pthread Hi, Thanks for reporting this. I haven't been able to reproduce it with any of

[sqlite] gnu gcc address sanitizer finds stack-use-after-scope in sqlite3VdbeExec

2017-04-18 Thread Vitti
Hi there, I just downloaded version 3.18 and after compiling it with the following command gcc shell.c sqlite3.c -g -fsanitize=address -DSQLITE_DEBUG -o sqlite -ldl -pthread running sqlite command .selftest --init I get a sanitizer error message. In my opinion this is probably due to erroneous