[Bug 793419] New: pnm: seg fault with non power of 4 strides in pnmenc
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Feb 13 10:29:16 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=793419
Bug ID: 793419
Summary: pnm: seg fault with non power of 4 strides in pnmenc
Classification: Platform
Product: GStreamer
Version: git master
OS: All
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: patcherwork at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 368303
--> https://bugzilla.gnome.org/attachment.cgi?id=368303&action=edit
Example video frame that does not countain padding
I have found a segmentation fault with pnmenc caused due to the input frames
not being handled as videobuffers. The stride of the input was calculated using
the videoinfo collected from the caps. This defaults to the stride being a
power of 4. If the input frames do not contain padding and do not have a width
that is a multiplier of 4, the pnmenc would segment.
I am attaching an example videoframe and a pipe to verify the patch:
gst-launch-1.0 filesrc location= 1022x1024_rgb24_no_padding ! rawvideoparse
format=rgb width=1022 height=1024 plane-strides='<3066>' ! pnmenc ! filesink
location=dump.pnm
--
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