diff options
author | Stuart Pernsteiner <stuart@pernsteiner.org> | 2012-12-12 21:13:26 -0800 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-12-13 11:13:20 +0100 |
commit | a9045c727fab1cdcc530bc18e651334cf892d62c (patch) | |
tree | 282bf85b252731272f3da562aeb209dbfb12eccd | |
parent | 9fa12fc2015c9cbc34bcf9d83e7396ba5dbc81a9 (diff) |
fix use-after-free bug in mkString(Value&, Symbol&)
-rw-r--r-- | src/libexpr/value.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh index c9ec236c4..91b4f78fa 100644 --- a/src/libexpr/value.hh +++ b/src/libexpr/value.hh @@ -131,7 +131,7 @@ static inline void mkStringNoCopy(Value & v, const char * s) static inline void mkString(Value & v, const Symbol & s) { - mkStringNoCopy(v, ((string) s).c_str()); + mkStringNoCopy(v, ((const string &) s).c_str()); } |