This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/22991] Invalid truncation of quoted strings


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]