itsanjan / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Stream.readBytesUntil() will null-terminate past the end of the buffer. #587

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
That is, the length is treated as the number of characters to store in the 
buffer; the buffer itself is assumed to one more character long, and a 0 
character is written there.

Original issue reported on code.google.com by dmel...@gmail.com on 17 Aug 2011 at 6:51

GoogleCodeExporter commented 9 years ago
Fixed: 
https://github.com/arduino/Arduino/commit/4b0a87b40580c21d4daaf1c0e426985e0c27ac
47

Original comment by dmel...@gmail.com on 18 Aug 2011 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 18 Aug 2011 at 8:12