In nodes.c at function node_process_handshake_header there is
assert(rw < sizeof(gnet_response)) at least two times.

Before such assertion, there is line

rw = g_snprintf(gnet_response, sizeof(gnet_response), ...);

Return value of g_snprintf is number of characters (excluding the
trailing '\0') which would have been written to the final string if
enough space had been available.

That means assertion failure will happen if there was not enough space
available in fixed size buffer gnet_response, which is char[1024].

For me assertion failure just happened and GTKG just killed itself.
Not good.

-- 
Tommi Vainikainen


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to