commit | 5b15aca9a6b1c922afb0ea1879136e78ced071ec | [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 | de6aea986f202c15feef2582356ee470eb9aa6a3 [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