<div dir="ltr">Are we sure this is fixed? I just cloned the cvs repo for lame on sourceforge and compiled it (LAME 64bits version 3.100 (alpha 2, Feb 26 2015 04:31:03) (<a href="http://lame.sf.net">http://lame.sf.net</a>)) and ran it against AFL and I'm still seeing an FPE:<div><br><div>==30731== Process terminating with default action of signal 8 (SIGFPE): dumping core</div><div>==30731==  Integer divide by zero at address 0x8040BE4D7</div><div>==30731==    at 0x41CB4E: parse_wave_header (get_audio.c:1462)</div><div>==30731==    by 0x41CB4E: parse_file_header (get_audio.c:1697)</div><div>==30731==    by 0x41CB4E: open_wave_file (get_audio.c:1809)</div><div>==30731==    by 0x41CB4E: init_infile (get_audio.c:622)</div><div>==30731==    by 0x4055FE: init_files (lame_main.c:116)</div><div>==30731==    by 0x4055FE: lame_main (lame_main.c:636)</div><div>==30731==    by 0x402410: c_main (main.c:470)</div><div>==30731==    by 0x402410: main (main.c:438)</div><div>Floating point exception</div><div><br><div>gdb-peda$ file ~/lame/frontend/lame</div><div>gdb-peda$ set args -V2 --preset insane test00 /dev/null</div><div>gdb-peda$ r</div><div>warning: Could not load shared library symbols for linux-vdso.so.1.</div><div>Do you need "set solib-search-path" or "set sysroot"?</div><div><br></div><div>Program received signal SIGFPE, Arithmetic exception.</div><div>[----------------------------------registers-----------------------------------]</div><div>RAX: 0x10</div><div>RBX: 0x7ff2d0 --> 0xfbad2488</div><div>RCX: 0x0</div><div>RDX: 0x0</div><div>RSI: 0x0</div><div>RDI: 0x7e52b0 --> 0xfff88e3b</div><div>RBP: 0x7e52b0 --> 0xfff88e3b</div><div>RSP: 0x7ffffff31f90 --> 0x0</div><div>RIP: 0x41cb72 (<init_infile+13970>:     div    r15)</div><div>R8 : 0x0</div><div>R9 : 0x10</div><div>R10: 0x0</div><div>R11: 0x0</div><div>R12: 0x7fffffffba50 --> 0x303074736574 ('test00')</div><div>R13: 0xe</div><div>R14: 0x0</div><div>R15: 0x0</div><div>EFLAGS: 0x10206 (carry PARITY adjust zero sign trap INTERRUPT direction overflow)</div><div>[-------------------------------------code-------------------------------------]</div><div>   0x41cb67 <init_infile+13959>:        sar    r8d,0x3</div><div>   0x41cb6b <init_infile+13963>:        imul   r8d,r15d</div><div>   0x41cb6f <init_infile+13967>:        movsxd r15,r8d</div><div>=> 0x41cb72 <init_infile+13970>:        div    r15</div><div>   0x41cb75 <init_infile+13973>:        mov    rsi,rax</div><div>   0x41cb78 <init_infile+13976>:        call   0x4e6360 <lame_set_num_samples></div><div>   0x41cb7d <init_infile+13981>:        mov    rdi,rbp</div><div>   0x41cb80 <init_infile+13984>:        call   0x4e64e0 <lame_get_num_samples></div><div>[------------------------------------stack-------------------------------------]</div><div>0000| 0x7ffffff31f90 --> 0x0</div><div>0008| 0x7ffffff31f98 --> 0x7361622f00000000 ('')</div><div>0016| 0x7ffffff31fa0 --> 0x5622 ('"V')</div><div>0024| 0x7ffffff31fa8 --> 0x7e5210 --> 0x0</div><div>0032| 0x7ffffff31fb0 --> 0x0</div><div>0040| 0x7ffffff31fb8 --> 0xff00</div><div>0048| 0x7ffffff31fc0 --> 0x7ffffff31ff0 --> 0x7ffff72f3058 --> 0xc001a00000ce0</div><div>0056| 0x7ffffff31fc8 --> 0x3ff0000000000000</div><div>[------------------------------------------------------------------------------]</div><div>Legend: code, data, rodata, value</div><div>Stopped reason: SIGFPE</div><div>0x000000000041cb72 in init_infile ()</div></div><div><br></div><div>Hexdump of the offending test case:<br><div>0000000 4952 4646 0032 0000 4157 4556 6d66 2074</div><div>0000010 0010 0000 0001 0001 5622 0000 ac44 0000</div><div>0000020 0002 0000 6164 6174 0010 0000 0000 0000</div><div>0000030 0000 0000 0000 0000 0000</div><div>000003a</div></div></div></div>