Bugzilla – Bug 145907
flphoto crashes on import from camera
Last modified: 2006-02-15 16:42:05 UTC
flphoto crashes within fltk when importing from camera.
Created attachment 65267 [details] xx.txt
hoow to reproduce: Album -> Import -> From Directory -> segv
please test new version of fltk which I built /work/built/mbuild/chip-postadal-154/
still crashes. image_ has a value, but the Vtable appears to be NULL. some strange kind of transient state? (gdb) print image_ $1 = (class Fl_Image *) 0x585200 (gdb) print *image_ $2 = {_vptr.Fl_Image = 0x0, w_ = 273, h_ = 0, d_ = 1806096640, ld_ = 11046, count_ = 4263434, data_ = 0x4144f0} (gdb) frame 0 #0 0x00002b266bf3dd85 in Fl_Shared_Image::copy (this=0x61ec90, W=155, H=0) at Fl_Shared_Image.cxx:274 274 else temp_image = image_->copy(W, H); (gdb) x /i $rip 0x2b266bf3dd85 <_ZN15Fl_Shared_Image4copyEii+37>: callq *0x10(%rax) (gdb) x $rax+0x10 0x10: Cannot access memory at address 0x10 (gdb)
i guess this means image_ in this case is a pointer to a delete object
the bug is in flphoto in AVI plugin for fltk. Method Fl_AVI_Image::check(char const*, unsigned char*, int) return unitialized value and it caused segfault. Fixed and submited