Go to file
Matthijs Kooijman fde95cf5b5 Fix off-by-one in String::substring
When checking the `left` argument, it previously allowed having
left == len. However, this means the substring starts one past the last
character in the string and should return the empty string. In practice,
this already worked correctly, because buffer[len] contains the trailing
nul, so it would (re)assign the empty string to `out`.

However, fixing this check makes it a bit more logical, and prevents a
fairly unlikely out-of-buffer write (to address 0x0) when calling
substring on an invalidated String:

	String bar = (char*)NULL;
	bar.substring(0, 0);
2014-09-10 13:42:06 +02:00
bootloaders merge 2013-10-14 12:42:42 +02:00
cores/arduino Fix off-by-one in String::substring 2014-09-10 13:42:06 +02:00
firmwares added support for the ArduinoISP 2014-07-02 15:03:12 +02:00
libraries SPI Transactions for AVR 2014-08-01 05:38:27 -07:00
variants Merge branch 'master' into ide-1.5.x 2014-02-12 17:17:33 +01:00
boards.txt Arduino Pro and Pro Mini should use eightanaloginputs variant, so all 8 analog pins can be used 2014-06-28 22:37:26 +02:00
platform.txt Correct implementation of gcc specific internal functions 2014-09-06 12:42:25 +02:00
programmers.txt added support for the ArduinoISP 2014-07-02 15:03:12 +02:00