diff options
author | Amulya Kumar Sahoo <amulya349@gmail.com> | 2014-05-30 11:44:50 +0530 |
---|---|---|
committer | Amulya Kumar Sahoo <amulya349@gmail.com> | 2014-05-30 11:44:50 +0530 |
commit | 43a8a0f433e3f1971cf1af62b0386fd7c3c786e6 (patch) | |
tree | 7e0d74afa5871af00a46acb16706eb245fee4898 /libraries/EEPROM/examples/eeprom_clear | |
parent | f3e78a4a2920665b45b964049db3ebed9b8f1dc7 (diff) |
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));
}
Diffstat (limited to 'libraries/EEPROM/examples/eeprom_clear')
0 files changed, 0 insertions, 0 deletions