diff options
| author | Kurt Schwehr <schwehr@google.com> | 2018-07-26 12:41:59 -0700 |
|---|---|---|
| committer | Kurt Schwehr <schwehr@google.com> | 2018-07-26 12:41:59 -0700 |
| commit | 6be10ac6ab4e21101a913c33a30cf23901593914 (patch) | |
| tree | 87cb3d9f4860d66d32aa9ca3c1b966225307be2d /docs/plot | |
| parent | 54c854abb78a16169ff4f883805050734ecaa65d (diff) | |
| download | PROJ-6be10ac6ab4e21101a913c33a30cf23901593914.tar.gz PROJ-6be10ac6ab4e21101a913c33a30cf23901593914.zip | |
pj_strerrno(): Change check off err value to avoid undefined behavior.
src/pj_strerrno.c:96:20: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
#0 in pj_strerrno proj/src/pj_strerrno.c:96:20
#1 in (anonymous namespace)::ProjErrnoStringTest_ProjErrnos_Test::TestBody() test/unit/proj_errno_string_test.cpp:47:5
ASAN UndefinedBehaviorSanitizer: signed-integer-overflow
Issue revealed by proj_errno_string_test.cpp add in
https://github.com/OSGeo/proj.4/commit/b87b59106879188ffc684a41a9de638ac5fd02bf
Diffstat (limited to 'docs/plot')
0 files changed, 0 insertions, 0 deletions
