Re: [Tinycc-devel] -fsanitizer=address

2019-06-16 Thread Michael Matz
Hello Pascal, On Thu, 13 Jun 2019, Pascal Cuoq wrote: This appears to be caused by an offset into a dynamically allocated block being assigned to sym in build_got_entries at line 1041:             sym = &((ElfW(Sym) *)symtab_section->data)[sym_index]; And this dynamically allocated block bein

Re: [Tinycc-devel] -fsanitizer=address

2019-06-13 Thread Mike
> > I have no idea what I am doing, but I applied the following patch and it > seems to have fixed the > dangling pointer, according to the tool I use (not ASan). Now much better, BTW what tool you use ? (mike) ___ Tinycc-devel mailing list Tinycc-d

Re: [Tinycc-devel] -fsanitizer=address

2019-06-13 Thread Pascal Cuoq
Hello, On 12 Jun 2019, at 21:21, Mike mailto:tankf33...@disroot.org>> wrote: I've run "make test" under -fsanitize=address and got the same report for several failed tests: This appears to be caused by an offset into a dynamically allocated block being assigned to sym in build_got_entries at

[Tinycc-devel] -fsanitizer=address

2019-06-12 Thread Mike
hi all, I've run "make test" under -fsanitize=address and got the same report for several failed tests: Test: 05_array... Test: 06_case... Test: 07_function... --- 07_function.expect 2019-06-12 18:25:10.882343396 +0300 +++ 07_function.output 2019-06-12 22:06:43.089702799 +0300 @@ -1,4 +1,54