Archive Index
This month's Index
|
Subject: [libssh2] [ libssh2-Bugs-1826815 ] Uninitialized variables in transport.c
[libssh2] [ libssh2-Bugs-1826815 ] Uninitialized variables in transport.c
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 17 Dec 2007 19:20:06 -0800
Bugs item #1826815, was opened at 2007-11-06 04:50
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
I'm running valgrind within my program and sometimes it warns me about using uninitialized variables in transport.c. I checked it and I think it really is doing that, but I wanted to confirm that with you.
At line 304 of transport.c, there's: "remainbuf = p->writeidx - p->readidx;". But 'p->readidx' and 'p->writeidx' are not initialized. They are initialized after this line.
Can you confirm this? Is there a reason for this? If there is, could you explain it to me, please?
Thank you for your support and attention.
Best regards,
Rodrigo
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Message:
This Tracker item was closed automatically by the system. It was
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
When are they not initialized? The LIBSSH2_SESSION struct is memset to
----------------------------------------------------------------------
You can respond by visiting:
-------------------------------------------------------------------------
|