Skip to content
Snippets Groups Projects
Commit a9045c72 authored by Stuart Pernsteiner's avatar Stuart Pernsteiner Committed by Eelco Dolstra
Browse files

fix use-after-free bug in mkString(Value&, Symbol&)

parent 9fa12fc2
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ static inline void mkStringNoCopy(Value & v, const char * s) ...@@ -131,7 +131,7 @@ static inline void mkStringNoCopy(Value & v, const char * s)
static inline void mkString(Value & v, const Symbol & s) static inline void mkString(Value & v, const Symbol & s)
{ {
mkStringNoCopy(v, ((string) s).c_str()); mkStringNoCopy(v, ((const string &) s).c_str());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment