commit | c104ec91f241413c38763cba70c8ed02ee82f5a9 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Wed Apr 25 19:11:33 2012 -0700 |
committer | Shih-wei Liao <sliao@google.com> | Thu Jul 12 22:13:57 2012 -0700 |
tree | 2b5288ee599eb44080878d92312e6e28dd8475fb | |
parent | 1f4de3d8ba8fc991cc814701d294fa5f5d74f9cc [diff] |
Fix RSExpandForEach pass. The bug here is that the c_str() storage of a temporary std::string is not guaranteed to persist beyond the scope of the std::string. In this case, we were keeping a const char * to freed memory (and using garbage values to populate our list of functions to keep). Change-Id: I6e1bd64bbf302c004a34c926b2f7cd643ed98e76