[Webkit-unassigned] [Bug 194265] New: vp8e_mr_alloc_mem() leaks LOWER_RES_FRAME_INFO if second memory allocation fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 4 18:16:27 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=194265

            Bug ID: 194265
           Summary: vp8e_mr_alloc_mem() leaks LOWER_RES_FRAME_INFO if
                    second memory allocation fails
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: youennf at gmail.com

vp8e_mr_alloc_mem() leaks LOWER_RES_FRAME_INFO if second memory allocation fails via clang static analyzer:

Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp8/vp8_cx_iface.c:589:5: warning: Value stored to 'res' is never read
    res = VPX_CODEC_MEM_ERROR;
    ^     ~~~~~~~~~~~~~~~~~~~
Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp8/vp8_cx_iface.c:592:27: warning: Access to field 'mb_info' results in a dereference of a null pointer (loaded from variable 'shared_mem_loc')
  shared_mem_loc->mb_info =
  ~~~~~~~~~~~~~~          ^
Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vp8/vp8_cx_iface.c:595:11: warning: Potential leak of memory pointed to by 'shared_mem_loc'
    res = VPX_CODEC_MEM_ERROR;
          ^~~~~~~~~~~~~~~~~~~
3 warnings generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190205/49edb9ff/attachment.html>


More information about the webkit-unassigned mailing list