meghs94 / tinyos-main

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

[patch] CoAP's ReadResource interface has too narrow data-length type #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The ReadResource interface used by CoAP resources specifies its data length 
using a uint8_t. Given that some responses may very well be >255 bytes in size 
(some of ours are), a uint8_t is not sufficient.

The attached patch switches this over to a size_t instead. Surprisingly there 
were only two locations which needed updating - most uses already passed the 
value from a sizeof() operation anyway.

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

Attachments:

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
Fixed in r5837. Thanks.

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