Files
make/src
Paul Smith abb1e8d10b Remove UBSAN issues discovered via fuzzing tests.
The arithmetic conversions in C say that if a binary operator has an
unsigned and signed type as operands and the unsigned type has a greater
rank then the signed value is converted to unsigned.  This is bad if the
signed value is negative.

There are a few places in the code which have this situation; convert
the signed value to positive and add instead of subtracting.

Reported by He Jingxuan <jingxuan.he@inf.ethz.ch>

* src/read.c (find_map_unquote): Use a positive int in memmove().
(find_char_unquote): Ditto.
(find_percent_cached): Ditto.
2021-09-06 00:14:57 -04:00
..
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-11-29 17:59:40 -05:00
2021-03-28 16:25:52 -04:00
2021-03-28 16:25:52 -04:00
2021-03-15 01:17:06 -04:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00