Robin Getz
1330a0639d
Fix undefined left shift in SimpleDeserializer::readS64
...
The signed 64-bit deserialization code used a signed temporary value while
assembling bytes:
tmp = (tmp << 8) | byte;
For negative values, tmp was initialized to -1 for sign extension. Left-shifting
this negative value is undefined behavior in C++.
Use an unsigned temporary while constructing the 64-bit representation and
convert to qint64 after all bytes have been assembled. This preserves the
existing two's complement sign handling while avoiding undefined behavior.
Fixes static analysis warning about shifting a negative value.
Signed-off-by: Robin Getz <rgetz503@gmail.com >
2026-08-01 15:10:48 -04:00
..
2024-09-05 13:37:46 +03:00
2024-05-19 19:44:45 +02:00
2024-05-19 19:44:45 +02:00
2024-07-10 23:06:38 +02:00
2024-07-10 23:06:38 +02:00
2026-07-09 23:16:19 +01:00
2023-11-19 13:43:10 +01:00
2024-07-10 23:06:38 +02:00
2024-07-10 23:06:38 +02:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-07-26 02:09:56 +01:00
2024-06-10 14:01:57 +01:00
2026-04-03 20:33:00 +01:00
2025-06-09 10:23:12 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-07-10 23:06:38 +02:00
2024-04-02 13:52:10 +01:00
2024-03-20 13:54:15 +00:00
2025-06-04 18:15:59 +01:00
2025-06-04 18:15:59 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-03-08 15:36:03 +01:00
2024-03-08 15:36:03 +01:00
2026-03-25 16:30:13 +00:00
2025-01-10 15:53:30 +01:00
2025-01-10 15:53:30 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2025-06-04 20:24:58 +01:00
2025-06-04 20:24:58 +01:00
2024-03-08 15:36:03 +01:00
2024-03-08 15:36:03 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-03-03 13:40:42 +00:00
2023-11-19 13:43:10 +01:00
2024-10-11 11:01:43 +01:00
2024-10-11 11:01:43 +01:00
2023-11-19 13:43:10 +01:00
2024-03-14 15:41:01 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-07-10 23:06:38 +02:00
2023-11-19 13:43:10 +01:00
2024-06-10 14:01:57 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-01-03 15:45:13 +01:00
2024-04-05 10:41:24 +01:00
2024-04-05 10:41:24 +01:00
2024-03-28 15:26:23 +00:00
2024-03-28 15:26:23 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-03-28 15:26:23 +00:00
2024-03-28 15:26:23 +00:00
2024-07-10 23:06:38 +02:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-04-03 20:33:00 +01:00
2026-04-03 20:33:00 +01:00
2026-07-19 17:16:04 +01:00
2026-07-19 17:16:04 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-06-10 14:01:57 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-04-11 23:31:34 +02:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-03-25 16:30:13 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-06-18 09:06:15 +01:00
2024-06-18 09:06:15 +01:00
2026-03-25 18:58:43 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-02-27 15:40:06 +00:00
2024-02-27 15:40:06 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2025-06-04 20:22:09 +01:00
2025-06-04 20:22:09 +01:00
2023-11-19 13:43:10 +01:00
2024-04-20 19:10:18 +02:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-03-25 15:29:49 +00:00
2026-03-25 15:29:49 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-03-10 23:41:19 +02:00
2026-03-10 23:41:19 +02:00
2024-02-27 15:40:06 +00:00
2024-02-27 15:40:06 +00:00
2024-07-10 23:06:38 +02:00
2024-04-11 23:31:34 +02:00
2024-04-20 19:10:18 +02:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-10-08 17:20:18 +01:00
2024-10-08 17:20:18 +01:00
2026-07-26 15:54:53 -04:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-08-01 15:10:48 -04:00
2023-11-29 17:13:34 +00:00
2026-03-26 21:34:07 +00:00
2024-10-08 22:19:29 +01:00
2024-04-05 16:34:35 +01:00
2024-07-10 23:06:38 +02:00
2025-01-21 13:33:11 +00:00
2025-01-21 13:33:11 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-03-03 13:57:10 +00:00
2024-07-10 23:06:38 +02:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2024-03-28 15:26:23 +00:00
2024-03-28 15:26:23 +00:00
2026-02-01 17:15:47 +01:00
2026-02-01 17:15:47 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2026-07-30 18:17:58 +01:00
2026-03-26 21:35:09 +00:00
2023-11-19 13:43:10 +01:00
2024-04-04 21:41:07 +01:00
2024-07-10 23:06:38 +02:00
2024-02-27 15:40:06 +00:00
2024-02-27 15:40:06 +00:00
2023-11-19 13:43:10 +01:00
2023-11-19 13:43:10 +01:00
2025-06-09 11:12:46 +01:00
2025-06-09 11:01:25 +01:00