[Bug runtime/22991] Invalid truncation of quoted strings
georg.schoelly at joesecurity dot org
sourceware-bugzilla@sourceware.org
Thu Mar 22 11:57:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=22991
--- Comment #2 from Georg <georg.schoelly at joesecurity dot org> ---
I made a mistake in my last comment:
> (That last `c` should probably be `(c == 0 && !buffer)`
> because buffers do not end on \0.)
That should of course read
> (That last `c` should probably be `(c == 0 || buffer)`
> because buffers do not end on \0.)
because we are done quoting when
(a) inlen is 0
(b) we are encoding a text string and encounter \0 (but not a buffer)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list