Unsigned underflow infinite loop

Code reviewHard18 min

Your task

Review this C++ loop that walks a buffer backwards to find the last non-zero byte.