Bug 93152 - use-after-free in test code
Summary: use-after-free in test code
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-28 23:37 UTC by Sami Farin
Modified: 2015-12-09 19:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.