Subject: [ libssh2-Bugs-2822910 ] send_exiting: debugdump wrong location

[ libssh2-Bugs-2822910 ] send_exiting: debugdump wrong location

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 17 Jul 2009 06:17:44 +0000

This mailing list has been abandoned! Subscribe to and use the new list
instead: http://cool.haxx.se/mailman/listinfo/libssh2-devel
----------------------------------------------------------------------

Bugs item #2822910, was opened at 2009-07-17 06:17
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2822910&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: send_exiting: debugdump wrong location

Initial Comment:
In transport.c:send_existing() is the following statement

    debugdump(session, "libssh2_transport_write send()", &p->outbuf[p->osent],
              length);

at the wrong location. If debugging is enabled debugdump() may try to dump the memory at p->outbuf which is set to NULL in case the remainder of the package was sent. This cause a SigSegV.

Solution: move the statement before the "if (rc == length)"-block.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2822910&group_id=125852

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-07-17