commit | 58bf572aa2060ad30a8e46dd0b4a5cf9bb748f85 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Sat Jun 13 15:28:53 2015 -0700 |
committer | Nick Kralevich <nnk@google.com> | Sat Jun 13 17:49:24 2015 -0700 |
tree | b9896a005afc8166c3b9a9b221f9a81f6dbbbef9 | |
parent | 60c5a460c1906e52717afde1dc38630b30fc564e [diff] |
TypeHelpers.h: Don't underflow unsigned int When decrementing "n", eventually n will equal zero. When that happens, n-- underflows. This causes a crash when code which uses clang's -fsanitize=unsigned-integer-overflow is run. Avoid trigging an unsigned integer underflow. Change-Id: I9705be6580d61a164ef5fb1ec77e98a69d888438