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-03-31 01:07:43 -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-05-30 15:53:41 -04:00
2020-01-03 02:08:59 -05:00
2020-01-20 19:25:54 -05:00
2020-01-03 02:08:59 -05:00
2020-02-29 11:14:46 +02:00
2020-01-20 19:25:54 -05:00
2020-12-05 16:25:12 -05:00
2021-09-05 21:08:59 -04: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
2021-07-25 17:15:38 -04:00
2021-07-25 17:15:38 -04:00
2021-03-15 03:28:11 -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
2021-09-05 21:09:27 -04:00
2017-11-19 14:07:22 -05:00
2021-07-25 17:15:38 -04:00
2021-03-25 14:25:26 -04:00
2020-01-20 19:25:54 -05:00
2020-05-03 14:54:56 -04:00
2020-01-03 02:08:59 -05:00
2021-09-05 22:28:10 -04:00
2021-09-05 21:08:59 -04:00
2021-03-15 01:16:32 -04:00
2020-01-03 02:08:59 -05:00
2020-03-31 00:19:20 -04:00
2020-03-31 01:07:43 -04:00
2020-05-02 20:09:29 -04:00
2021-09-06 00:14:57 -04:00
2021-09-03 12:08:11 -04:00
2020-01-03 02:08:59 -05:00
2020-01-03 02:08:59 -05:00
2020-01-19 17:04:52 -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
2021-09-05 21:08:59 -04:00
2021-03-15 01:17:06 -04:00
2020-01-03 02:08:59 -05:00
2020-01-20 19:25:54 -05:00
2020-01-20 19:25:54 -05:00
2020-05-03 14:54:56 -04:00
2020-01-03 02:08:59 -05:00
2020-01-20 19:25:54 -05:00
2020-01-03 02:08:59 -05:00
2020-05-03 14:54:56 -04:00
2021-09-05 21:09:27 -04:00