IVTV development team,
Hello, I've just been on chat with one of the developers at Skype
(Andrew Macks), about consistent core dumps of the new Skype 2.0 on
one of our machines. We tracked the problem down to the file
drivers/media/video/ivtv/ivtv-cards.c in the kernel sources, hence
this mail.
For device names, the spec for the v4l2_capability struct provides as follows:
__u8 card[32] Name of the device, a NUL-terminated ASCII string. For
example: "Yoyodyne TV/FM".
It's not immediately clear from the text of this entry, but the
explanatory note for the driver string immediately above contains this
warning:
Storing strings in fixed sized arrays is bad practice but unavoidable here.
Drivers and applications should take precautions to never read or write
beyond the end of the array and to make sure the strings are properly
NUL-terminated.
http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/r12766.htm
Several of the device names in drivers/media/video/ivtv/ivtv-cards.c
are longer than the maximum permitted length of 31 characters
(allowing one character for the NUL terminator), and a straightforward
test (compiling a fresh kernel from the same sources, changing only
the length of the string describing our card) shows this to be the
cause of the core dump; skype 2.0 now runs and functions normally on
the same machine.
Would it be possible to bring the kernel sources within the published
specification, and reduce the length of descriptive strings in this
file to a max of 31 characters in the next kernel release?
Many thanks,
Frank Bennett
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel