Donovan Watteau
21cd732b60
TINSEL: Fix UB for enum TINSEL_EVENT in DW2. PVS-Studio V1016
...
In DW2, some large TINSEL_EVENT values are read, and they're bigger than
the last TINSEL_EVENT value, but we cast them to `enum TINSEL_EVENT`
values in tinlib.cpp, which is apparently "unspecified behavior up to
C++17 and undefined behavior starting from C++17".
tinlib.cpp:1925:39: runtime error: load of value 9041, which is not
a valid value for type 'Tinsel::TINSEL_EVENT'
tinlib.cpp:1935:31: runtime error: load of value 77, which is not
a valid value for type 'Tinsel::TINSEL_EVENT'
Found with UBSan but the really clear help comes from PVS-Studio
documentation.
2022-11-29 00:41:03 +01:00
..
2022-06-11 22:38:46 +01:00
2022-11-27 23:06:24 +02:00
2022-01-16 13:20:40 +02:00
2021-12-26 18:48:43 +01:00
2021-12-26 18:48:43 +01:00
2022-04-21 20:34:17 +03:00
2022-01-16 13:20:40 +02:00
2022-04-21 20:34:17 +03:00
2022-01-16 13:20:40 +02:00
2022-06-10 23:12:34 +03:00
2022-11-11 20:55:56 +01:00
2022-04-21 20:34:17 +03:00
2022-04-21 20:34:17 +03:00
2021-12-26 18:48:43 +01:00
2021-12-26 18:48:43 +01:00
2021-12-26 18:48:43 +01:00
2021-10-31 11:46:26 +02:00
2021-08-05 00:01:46 +02:00
2022-06-10 23:12:34 +03:00
2022-01-09 17:07:46 +02:00
2022-06-10 23:12:34 +03:00
2022-06-10 23:12:34 +03:00
2022-05-19 07:57:31 +03:00
2022-11-28 19:43:13 +01:00
2021-12-26 18:48:43 +01:00
2022-06-10 23:12:34 +03:00
2022-06-10 23:12:34 +03:00
2022-10-23 22:46:19 +02:00
2021-12-26 18:48:43 +01:00
2022-05-11 08:59:07 +03:00
2022-04-21 20:34:17 +03:00
2022-06-10 23:12:34 +03:00
2022-11-29 00:41:03 +01:00
2022-04-21 20:34:17 +03:00
2021-12-26 18:48:43 +01:00
2022-06-10 23:12:34 +03:00
2022-06-10 23:12:34 +03:00
2022-04-21 20:34:17 +03:00
2021-12-26 18:48:43 +01:00
2022-05-12 01:25:18 +03:00
2022-04-21 20:34:17 +03:00
2022-06-02 23:41:32 +03:00
2022-05-08 13:30:04 +03:00
2022-04-27 00:33:15 +03:00
2021-12-26 18:48:43 +01:00
2022-06-10 23:12:34 +03:00
2022-09-25 20:42:08 +02:00
2022-01-16 13:20:40 +02:00
2022-01-16 13:20:40 +02:00
2021-12-26 18:48:43 +01:00
2022-06-10 23:12:34 +03:00
2022-05-12 01:25:18 +03:00
2021-12-26 18:48:43 +01:00
2022-06-10 23:12:34 +03:00
2022-04-21 20:34:17 +03:00
2022-06-10 23:12:34 +03:00
2022-06-10 23:12:34 +03:00
2022-10-23 22:46:19 +02:00
2021-12-26 18:48:43 +01:00
2022-04-21 20:34:17 +03:00
2022-05-07 22:21:38 +03:00
2022-05-08 10:32:09 +02:00
2022-05-08 10:32:09 +02:00
2022-05-11 08:59:07 +03:00
2022-05-11 08:59:07 +03:00
2022-10-23 22:46:19 +02:00
2021-12-26 18:48:43 +01:00
2022-04-27 00:33:15 +03:00
2022-06-10 23:12:34 +03:00
2022-01-16 13:20:40 +02:00
2022-10-23 22:46:19 +02:00
2022-06-10 23:12:34 +03:00
2022-06-10 23:12:34 +03:00
2022-06-10 23:12:34 +03:00
2021-12-26 18:48:43 +01:00
2022-06-10 23:12:34 +03:00
2022-05-07 12:30:52 +02:00
2022-05-08 13:30:04 +03:00
2022-05-08 13:30:04 +03:00
2022-05-08 13:30:03 +03:00
2021-12-26 18:48:43 +01:00
2022-04-21 20:34:17 +03:00
2022-01-16 13:20:40 +02:00
2022-04-21 20:34:17 +03:00
2021-12-26 18:48:43 +01:00
2022-10-23 22:46:19 +02:00
2021-12-26 18:48:43 +01:00
2021-12-26 18:48:43 +01:00
2022-05-07 12:30:52 +02:00
2022-04-21 20:34:17 +03:00
2022-01-16 13:20:40 +02:00
2021-12-26 18:48:43 +01:00
2021-12-26 18:48:43 +01:00
2022-10-27 15:57:30 +02:00
2021-12-26 18:48:43 +01:00
2022-06-10 23:12:34 +03:00
2022-04-27 00:33:15 +03:00
2021-12-26 18:48:43 +01:00
2021-12-26 18:48:43 +01:00