[cairo-bugs] [Bug 90855] New: Dangling pointer Issue in _cairo_surface_snapshot_acquire_source_image API.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 4 20:14:56 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90855

            Bug ID: 90855
           Summary: Dangling pointer Issue in
                    _cairo_surface_snapshot_acquire_source_image API.
           Product: cairo
           Version: unspecified
          Hardware: x86 (IA32)
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: general
          Assignee: chris at chris-wilson.co.uk
          Reporter: a.amarnath at samsung.com
        QA Contact: cairo-bugs at cairographics.org

Created attachment 116296
  --> https://bugs.freedesktop.org/attachment.cgi?id=116296&action=edit
This is patch file attached to fix the issue.

After freeing any pointer which is pointing to dynamically allocated memory,
Null should be assigned to pointer immediately after freeing to avoid dangling
pointer situation.
In the code after freeing the memory under some condition null was not assigned
to the pointer and outside the condition block it was getting assigned to
another pointer.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20150605/d294bcd5/attachment.html>


More information about the cairo-bugs mailing list