[Bug 731195] video: handle images that have bytes size above 2^31

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jun 9 19:52:29 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731195
  GStreamer | gst-plugins-bad | unspecified

Thiago Sousa Santos <thiagossantos> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
            Summary|rsvgdec: aborts for         |video: handle images that
                   |specific file when trying   |have bytes size above 2^31
                   |to allocate huge video      |
                   |memory                      |

--- Comment #20 from Thiago Sousa Santos <thiagossantos at gmail.com> 2014-06-10 02:52:25 UTC ---
commit 320293836958af73cbfae53741b428930c2fe31d
Author: Thiago Santos <ts.santos at sisa.samsung.com>
Date:   Mon Jun 9 21:05:00 2014 -0300

    videoscale: vs_image: strides are a gsize

    The strides that are set from the GstVideoInfo structs are
    a gsize. Using an int can cause overflows when dealing with large
    enough images

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

commit fb3a9d1bc5f4f40957a58d7cad7ca77242e2a73f
Author: Thiago Santos <ts.santos at sisa.samsung.com>
Date:   Mon Jun 9 19:44:56 2014 -0300

    video: avoid overflows when doing int operations for size

    size is a gsize, so cast the operands to it to avoid overflows
    and setting wrong value to the video size.

    Includes tests.

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

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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