Public bug reported:
Title:
[SRU] gst-plugins-good1.0: V4L2 buffer-size integer overflow breaks 4K JPEG
encoding
[ Impact ]
When frame-size enumeration and fallback probes leave the maximum at
32768x32768, 32-bit arithmetic overflows and requests only 256 KiB.
This breaks 4K JPEG encoding on MediaTek Genio. The upstream fix uses
requested dimensions and 64-bit arithmetic in both V4L2 planar paths.
[ Test Plan ]
On an affected Genio board, run with the archive package, then
-proposed:
sudo env GST_DEBUG='v4l2*:5' timeout 120s gst-launch-1.0 -v \
videotestsrc num-buffers=300 ! queue ! \
video/x-raw,framerate=30/1,width=3840,height=2160,format=NV12 ! \
v4l2jpegenc ! queue ! jpegparse ! qtmux ! filesink location=out.mov
Before: CAPTURE sizeimage=262144; pipeline failure or invalid output.
After: sizeimage=8294400 on g1200, exit 0/EOS, and successful decoding:
gst-launch-1.0 -q filesrc location=out.mov ! qtdemux ! \
jpegparse ! jpegdec ! fakesink sync=false
Save package/plugin versions, debug logs and dmesg before/after; expect
no new STALL messages, but their absence alone does not prove success.
[ Where problems could occur ]
Encoded-buffer sizes change for V4L2 encoders and decoder input. Requested
dimensions can yield smaller buffers than probed maxima; watch for buffer
allocation or codec failures, especially with poorly compressed streams.
[ Other Info ]
Upstream:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/12491
1.28 backport: 49a5e5898da1b9922970e8e36ddebed3f621a8b6 (included in 1.28.8).
Debian has updated to 1.28.8, which includes this fix. Importing that
package into Tenacious, the new development release, will provide the fix
without an additional Ubuntu patch.
For other release:
Noble: 1.24.2-1ubuntu1.8 -> 1.24.2-1ubuntu1.9
Resolute: 1.28.2-2ubuntu0.4 -> 1.28.2-2ubuntu0.5
Stonking: 1.28.7-1build1 -> 1.28.7-1ubuntu0.1
** Affects: gst-plugins-good1.0 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2170768
Title:
[SRU] gst-plugins-good1.0: integer overflow in V4L2 buffer sizing
breaks 4K JPEG encoding
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gst-plugins-good1.0/+bug/2170768/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs