resid icon indicating copy to clipboard operation
resid copied to clipboard

Fix a signed integer overflow

Open kcgen opened this issue 5 years ago • 0 comments

Caught during testing (Ultima 6 introduction) with Clang's Undefined Behavior Sanitizer instrumentation:

.src/libs/resid/sid.cc:919:37: runtime error: signed integer overflow: 63904 * 130489 cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../src/libs/resid/sid.cc:919:37

kcgen avatar Apr 16 '21 07:04 kcgen