Branch: Tag:

2014-08-27

2014-08-27 00:39:36 by Stephen R. van den Berg <srb@cuci.nl>

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)