libgphoto2 2.5.6 crashes with Canon EOS 1200D when calling gphoto2 --list-config
Output with Debug:
...
63.447000 ptp (2): event 53: Unknown EOS property d1bc, datasize is 4, using uint32
63.447000 ptp (2): 0: 0x 1
63.447000 ptp (2): event 53: currentvalue of d1bc is 1
63.447000 ptp (2): event 54: EOS prop d1b8 info record, datasize is 4
63.447000 ptp (2): event 54: currentvalue of d1b8 is 0
63.447000 ptp (2): event 55: EOS prop d1d3 info record, datasize is 100
63.447000 gp_context_error (0): size 100 is too large for fp in struct 96
Error
size 100 is too large for fp in struct 96
Segmentation fault (core dumped)
Platform:
cygwin 1.7.9 on Win 7
libgphoto2 2.5.6
my size calculation seems wrong and the error handling I carefully added causes the crash :/
can you try this patch?
Similar here with EOS 6D:
gp_context_error: size 116 is too large for fp in struct 112
Same numerical difference. I'll try your patch.
Yep, that makes the problem go away. Still got a crash in my code elsewhere since updating, but that may be a red herring.
Thanks for testing!
A gdb backtrace of the other crash if its in libgphoto2 could be helpful
S'ok, looks like my other problem was a newer version of Exiv2 being a bit stroppier about data validation.
fixed in 2.5.7