Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
silence implicit conversions and overflows found by ubsan
src/parser.c:530:16: runtime error: implicit conversion from type 'int' of value 232 (32-bit, signed) to type 'char' changed the value to -24 (8-bit, signed) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/parser.c:530:16 in src/parser.c:1620:19: runtime error: unsigned integer overflow: 1 - 10 cannot be represented in type 'unsigned int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/parser.c:1620:19 in src/parser.c:1606:17: runtime error: unsigned integer overflow: 1 - 10 cannot be represented in type 'unsigned int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/parser.c:1606:17 in src/settings.c:353:12: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'size_t' (aka 'unsigned long') changed the value to 18446744073709551615 (64-bit, unsigned) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/settings.c:353:12 in src/util.c:194:13: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long') SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/util.c:194:13 in
- Loading branch information