[cairo-bugs] [Bug 91206] New: Use of a pointer after it is freed

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 3 00:12:40 PDT 2015


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

            Bug ID: 91206
           Summary: Use of a pointer after it is freed
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: chris at chris-wilson.co.uk
          Reporter: jain.arpit at samsung.com
        QA Contact: cairo-bugs at cairographics.org

OVERVIEW:
Use of a pointer after it is freed.


DESCRIPTION:

In function 'draw' at line 76 in following file:

http://cgit.freedesktop.org/cairo/tree/test/bitmap-font.c

function 'free' frees the pointed 'filename'(at Line no. 97).

The pointer to freed memory 'filename' is dereferenced, used as a function
argument at line 108:

cairo_test_log (ctx, "Error creating font face for %s: %s\n",
            filename,
            cairo_status_to_string (status));


EXPECTED:

The pointer 'filename' should not be used once it is freed.

-- 
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/20150703/19fdae76/attachment.html>


More information about the cairo-bugs mailing list