[Bug 785628] v4l2: Build warning on 32-bit ARM in gstv4l2object.c

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 31 14:08:00 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=785628

--- Comment #1 from Kirill Novichikhin <kirill.novichikhin at sarov-itc.ru> ---
FYI - if ignored, this causes runtime failures on ARM probably due to
differences in 32-bit and 64-bit parameter alignment - you would think that
length is just truncated to its 32 least significant bits (on little endian
platforms), but instead whatever garbage word is on the stack is passed as
'length' parameter and 64-bit 'length' follows that. 
I know because I tried adding a cast to '(void*)' in the 'v4l2object->mmap =
mmap' assignment and that didn't work as well as I expected ;)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list