wovo / hwlib

C++ OO micro-controller library for close-to-the-hardware programming
Boost Software License 1.0
57 stars 26 forks source link

hwlib::string find and rfind operator infinite loop #16

Closed florianhumblot closed 6 years ago

florianhumblot commented 6 years ago

In hwlib-string.hpp, the find and rfind operators use a while loop that compares an index to a position but the poisition / index never get incremented which causes the program calling these operators to hang in an infinite loop.

florianhumblot commented 6 years ago

17

I also made a pull request with a fix for these two operators.

florianhumblot commented 6 years ago

The issue has been fixed with the merge, closing it.