meghs94 / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
1 stars 0 forks source link

[patch] LibCoapAdapter references free'd memory #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In LibCoapAdapterP there are two instances where memory which has been free()d 
is read. While this is not currently causing any problems, it is definitely not 
good practice. Attached patch introduces a temporary to hold the value, rather 
than read it from the free()d memory.

Oh, and it also comments out a couple of trace printf()s that were in the way.

Original issue reported on code.google.com by jmatts...@dius.com.au on 25 Nov 2011 at 2:23

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by sdh...@gmail.com on 25 Nov 2011 at 5:40

GoogleCodeExporter commented 8 years ago
I'll handle this one.

Original comment by marku...@gmail.com on 26 Nov 2011 at 4:25

GoogleCodeExporter commented 8 years ago
I'll handle this one.

Original comment by marku...@gmail.com on 26 Nov 2011 at 4:25

GoogleCodeExporter commented 8 years ago
Fixed in r5835. Thanks.

Original comment by marku...@gmail.com on 19 Dec 2011 at 10:13