[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libssh2-devel
Subject:    [libssh2] [ libssh2-Bugs-1826815 ] Uninitialized variables in
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2007-12-18 3:20:06
Message-ID: E1J4T02-0006DF-7Q () sc8-sf-glue1 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1826815, was opened at 2007-11-06 04:50
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1826815&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: None
Group: None
> Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Uninitialized variables in transport.c

Initial Comment:
I have a question about libssh2, especifically about transport.c code.

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
royzrj at gmail dot com

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

> Comment By: SourceForge Robot (sf-robot)
Date: 2007-12-17 19:20

Message:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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

Comment By: Daniel Stenberg (bagder)
Date: 2007-11-07 07:55

Message:
Logged In: YES 
user_id=1110
Originator: NO

When are they not initialized? The LIBSSH2_SESSION struct is memset to
zero in libssh2_session_init_ex()
(and no, they aren't "initialized after this line", they're just read
there not assigned)


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

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

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic