Archive Index
This month's Index
|
Subject: [ libssh2-Bugs-2815836 ] Error using custom allocator in libssh2_session_init_ex
[ libssh2-Bugs-2815836 ] Error using custom allocator in libssh2_session_init_ex
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 07 Jul 2009 11:10:37 +0000
This mailing list has been abandoned! Subscribe to and use the new list
Bugs item #2815836, was opened at 2009-07-02 17:08
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
However, on the very first call, they are passed the abstract ptr itself rather than the doubly dereferenced pointer. This causes allocation code that utilizes that ptr to crash.
The source code for libssh2_session_init_ex includes the following:
session = local_alloc(sizeof(LIBSSH2_SESSION), abstract);
This should probably be changed to read
session = local_alloc(sizeof(LIBSSH2_SESSION), &abstract);
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
You can respond by visiting:
------------------------------------------------------------------------------
|