laziness, impatience, and hubris | |
PerlMonks |
Re^8: Why do poisoned null attacks still work ?by ikegami (Patriarch) |
on Jul 23, 2009 at 03:43 UTC ( [id://782550]=note: print w/replies, xml ) | Need Help?? |
Unlike C, the end of a Perl string is determined by a field outside of the string's payload. This allows Perl strings to contain any characters, including NUL. As protection against XS authors who treat the string payload as a C string, Perl strings usually have an extra byte allocated, set to NUL. As I understand it, this is a courtesy, not a guarantee.
In Section
Seekers of Perl Wisdom
|
|