StringAttr::set() of self could cause problems

Description

Currently the following code will access invalid memory:

The StringAttr code needs to free up the old string after the new one has been set, otherwise an assignment of an object to itself could corrupt the contents.

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Created February 1, 2017 at 2:23 PM
Updated February 1, 2017 at 4:03 PM
Resolved February 1, 2017 at 4:03 PM