Summary: | test_optpass has use after free bug, failing with memory testing tools like address sanitizer | ||
---|---|---|---|
Product: | Mesa | Reporter: | Hanno Böck <hanno> |
Component: | glsl-compiler | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | minor | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch to fix use after free in test_optpass.
stack trace from asan |
Description
Hanno Böck
2018-11-02 14:32:17 UTC
Created attachment 142341 [details]
stack trace from asan
Patch looks correct to me. Please send this to mesa-dev mailing list with 'git-send-email'. See git log for examples how commit messages should be written. --- 8< --- commit 8dc2085baf954e7d52159797fe3051a554df3f6d Author: Hanno Böck <hanno@hboeck.de> Date: Wed Nov 7 09:01:42 2018 +0100 glsl/test: Fix use after free in test_optpass. The variable state is free'd and afterwards state->error is used as the return value, resulting in a use after free bug detected by memory safety tools like address sanitizer. Signed-off-by: Hanno Böck <hanno@hboeck.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108636 Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> |
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.