diff options
| author | Nick Kralevich <nnk@google.com> | 2015-06-13 15:28:53 -0700 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2015-06-13 17:49:24 -0700 |
| commit | 58bf572aa2060ad30a8e46dd0b4a5cf9bb748f85 (patch) | |
| tree | b9896a005afc8166c3b9a9b221f9a81f6dbbbef9 /trusty/coverage/coverage.cpp | |
| 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
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
