View Issue Details

IDProjectCategoryView StatusLast Update
0001842GNUnettransport servicepublic2011-10-31 12:00
ReporterChristian Grothoff Assigned ToMatthias Wachs  
PrioritylowSeveritytweakReproducibilityrandom
Status closedResolutionfixed 
Product VersionGit master 
Summary0001842: uninitialized message fields somewhere in transport code
DescriptionHere is the valgrind report (some IPC has an uninitialized field):

==19106== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==19106== at 0x5DEDF12: send (send.c:28)
==19106== by 0x5670C12: GNUNET_NETWORK_socket_send (network.c:596)
==19106== by 0x5659AD2: transmit_ready (connection.c:1566)
==19106== by 0x567C548: run_ready (scheduler.c:685)
==19106== by 0x567CCFF: GNUNET_SCHEDULER_run (scheduler.c:867)
==19106== by 0x56882E1: GNUNET_SERVICE_run (service.c:1608)
==19106== by 0x403B35: main (gnunet-service-transport.c:598)
==19106== Address 0x6952568 is 72 bytes inside a block of size 344 alloc'd
==19106== at 0x4C245E2: realloc (vg_replace_malloc.c:525)
==19106== by 0x56503CD: GNUNET_xrealloc_ (common_allocation.c:173)
==19106== by 0x565982C: transmit_ready (connection.c:1551)
==19106== by 0x567C548: run_ready (scheduler.c:685)
==19106== by 0x567CCFF: GNUNET_SCHEDULER_run (scheduler.c:867)
==19106== by 0x56882E1: GNUNET_SERVICE_run (service.c:1608)
==19106== by 0x403B35: main (gnunet-service-transport.c:598)
==19106==
Steps To ReproducePREFIX = valgrind --leak-check=full --track-origins=yes
TagsNo tags attached.

Activities

Matthias Wachs

2011-10-24 16:03

reporter   ~0004755

solution: 0-out stack-allocated memory
gnunet-service-transport.c:457 & 159

Issue History

Date Modified Username Field Change
2011-10-23 20:25 Christian Grothoff New Issue
2011-10-23 20:25 Christian Grothoff Status new => assigned
2011-10-23 20:25 Christian Grothoff Assigned To => Matthias Wachs
2011-10-24 00:57 Christian Grothoff Reproducibility have not tried => random
2011-10-24 16:03 Matthias Wachs Note Added: 0004755
2011-10-24 16:03 Matthias Wachs Status assigned => resolved
2011-10-24 16:03 Matthias Wachs Resolution open => fixed
2011-10-24 16:03 Matthias Wachs Steps to Reproduce Updated
2011-10-25 17:03 Christian Grothoff Target Version 0.9.0 => 0.9.0pre4
2011-10-31 12:00 Christian Grothoff Status resolved => closed