Bug 93152

Summary: use-after-free in test code
Product: cairo Reporter: Sami Farin <hvtaifwkbgefbaei>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Sami Farin 2015-11-28 23:37:33 UTC
test/pdf-mime-data.c:preamble()
        free (filename);
        cairo_test_log (ctx, "Failed to create pdf surface for file %s: %s\n",
                        filename, cairo_status_to_string (status));



test/png.c:preamble()
    free (filename);
    if (status) {
        cairo_test_log (ctx, "Error reading '%s': %s\n",
                        filename, cairo_status_to_string (status));
Comment 1 Bryce Harrington 2015-12-09 19:31:17 UTC
Thanks


commit 0986ae4dee2a903dc16bba289477a38dff36a87b
Author: Bryce Harrington <bryce@osg.samsung.com>
Date:   Wed Dec 9 11:30:34 2015 -0800

    test: Fix use after frees

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

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.