pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-08-27
2014-08-27 00:39:36 by Stephen R. van den Berg <srb@cuci.nl>
1576dff2b8536cc26c4323ce727a9604ab645d93 (
5
lines) (+
4
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
Add forced security wipe to cut() method.
3444:
s2->str[len] = 0; // Ensure NUL-termination s2->len = index; }
-
memmove(p, (char*)p+len, end<<shift);
// Copy NUL-termination
+
memmove(p, (char*)p+len, end<<shift);
//
Copy
NUL-termination
+
if(
s->flags
& STRING_CLEAR_ON_EXIT)
+
guaranteed_memset((char*)p+len+(end<<shift) , 0, len );
s->len -= index; if(!vdiscard)