This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/22991] Invalid truncation of quoted strings
- From: "georg.schoelly at joesecurity dot org" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 22 Mar 2018 11:57:05 +0000
- Subject: [Bug runtime/22991] Invalid truncation of quoted strings
- Auto-submitted: auto-generated
- References: <bug-22991-6586@http.sourceware.org/bugzilla/>
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.