Bug 703104 - [PATCH] Use-after-free() when eval in variable assignments reassigns the same variable
Summary: [PATCH] Use-after-free() when eval in variable assignments reassigns the same...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: make
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Machata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 699911
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-09 09:56 UTC by Lubomir Rintel
Modified: 2015-05-05 01:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 699911
Environment:
Last Closed: 2011-06-22 12:30:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lubomir Rintel 2011-05-09 09:56:21 UTC
+++ This bug was initially created as a clone of Bug #699911 +++

Created attachment 495050 [details]
Proposed fix

In real world, such memory corruption occurs when using eval constructs for lazy assignment:

VARIABLE = $(eval VARIABLE := $(shell long-slow-command)$(VARIABLE)

Upstream submission: https://savannah.gnu.org/patch/index.php?7534

Comment 1 Petr Machata 2011-06-22 12:30:49 UTC
Thanks for adding the patch.


Note You need to log in before you can comment on or make changes to this bug.