maniacbug / StandardCplusplus

Standard C++ for Arduino (port of uClibc++)
594 stars 182 forks source link

Bitset flip and reset overwrite adjacent memory #25

Closed TyberiusPrime closed 1 year ago

TyberiusPrime commented 7 years ago

Both functions go like this (size_t i = 0; i <= num_bytes; ++i){ When the should go with (size_t i = 0; i < num_bytes; ++i){

i.e. they iterate one element to far in the internal storage.

mike-matera commented 7 years ago

Hi. This project is dead. I maintain a replacement:

https://github.com/mike-matera/ArduinoSTL

You can install it directly from the Arduino Library Manager. This issue is fixed in my copy.