#181: _libssh2_debug doesnt terminate buffer
-------------------------------+--------------------------------------------
Reporter: john@… | Owner: bagder
Type: enhancement | Status: assigned
Priority: normal | Milestone: 1.2.7
Component: API | Version: 1.2.6
Resolution: | Keywords:
Blocks: | Blocked By:
-------------------------------+--------------------------------------------
Comment (by bagder):
Uh, sorry I must be blind so I didn't spot the fine details. You are right
of course. But we can't unconditionally use len+1 as then we risk
overwriting the buffer in extreme cases. I'm fine with zero terminating
the data as it is made as a printable string to start with.
But I honestly don't think we should output the session pointer there. I
it is fine to add there on your own when you're on a bug hunt, I don't
think we need it there for everyone always.
-- Ticket URL: <http://trac.libssh2.org/ticket/181#comment:3> libssh2 <http://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-06-23