WeActStudio / ArduinoCore-AT32F4

33 stars 12 forks source link

String: Fix remove method #28

Closed c--- closed 2 years ago

c--- commented 2 years ago

strncpy() can not use overlapped memory regions and generates corrupted data with certain inputs. Changed to memmove. Verified with fuzzing against std::string::erase.