1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00
Amulya Kumar Sahoo 2c3058b2d5 Fix of a bug
Stream::find(char *target) passes NULL as “terminator” to Stream::findUntil(char *target, char *terminator), which immediately dereferences it by passing it on to strlen() :
 
bool Stream::find(char *target)
{
  return findUntil(target, NULL);
}
 
// as find but search ends if the terminator string is found
bool Stream::findUntil(char *target, char *terminator)
{
  return findUntil(target, strlen(target), terminator, strlen(terminator));
}
2014-05-30 11:47:08 +05:30
..
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2014-05-30 11:47:08 +05:30
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00
2013-05-17 11:02:00 +02:00