[Bug 759520] pnmenc: Fix memory leaks/mishandling

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Dec 17 01:28:04 PST 2015


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

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
commit 10ed707b6085e3edc14e897ba53dbd321e4f557b
Author: Vineeth TM <vineeth.tm at samsung.com>
Date:   Thu Dec 17 08:51:48 2015 +0900

    pnmenc: Fix wrong logic leading to memory mishandling

    While encoding the frame in ASCII mode, per component four bytes are needed
    and after every 20 bytes, a \n will be added. So the calculation should be
    size = size * (4 + 1 / 20). This should exclude the header being written.
    Since header is also being included in the calculations, memory
mishandlings
    are happening.

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

-- 
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