From: Christian Z. <Christian@Zuckschwerdt.org> - 2009-10-02 14:41:25
|
Hi again, that sounds more like it. After all the reported error is on uninitialised bytes and not an off-by-one type. I should read, read again then post ;) Am 02.10.2009 um 15:23 schrieb Hendrik Sattler: >> The code itself works. Valgrind only reports a read of unitialised >> bytes. > > I could initialize it but there is no real gain (except that valgrind > doesn't complain anymore): scope_id is only used on link-local IPv6 > addresses (and site-local ones when doing multicast which doesn't > matter here). So having it non-initialized on an ANY address is not > really a bug, rather that bind() accesses it under these conditions. > OTOH, maybe it's just doing a copy of the whole thing. regards, Christian |