Package: tcc Version: 0.9.27~git20140923.9d7fb33-3 Usertags: afl
TCC crashes while trying to compile the attached (invalid) C program: $ tcc crash.c Segmentation fault GDB says it's a null pointer dereference: Program received signal SIGSEGV, Segmentation fault. 0x08066dcf in g (c=139) at i386-gen.c:110 110 if (ind1 > cur_text_section->data_allocated) (gdb) print cur_text_section $1 = (Section *) 0x0 This bug was found using American fuzzy lop: https://packages.debian.org/experimental/afl -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (990, 'unstable'), (500, 'experimental') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages tcc depends on: ii libc6 2.19-13 Versions of packages tcc recommends: ii libc6-dev [libc-dev] 2.19-13 -- Jakub Wilk
i = i++; a[i];