K. S. Ernest (iFire) Lee
65ca207d2c
dds: Use put_u32 for unsigned integer puts.
...
UBSan reports:
image_saver_dds.cpp:417: implicit conversion from type 'uint32_t'
of value 4278190080 to type 'int32_t' changed the value to -16777216
stream_peer.cpp:184: implicit conversion from type 'int32_t'
of value -16777216 to type 'uint32_t' changed the value to 4278190080
The DDS pixel format masks (r/g/b/a_mask) are uint32_t but put_32
takes int32_t. Use put_u32 to avoid the round-trip conversion that
UBSan flags when the high bit is set (e.g. a_mask = 0xFF000000).
This fix found a large class of uses where we put unsigned integer values into
integer puts.
2026-04-12 12:04:56 -07:00
..
2025-10-06 13:09:22 -05:00
2026-01-10 23:15:22 +01:00
2026-03-18 10:41:59 +01:00
2026-03-17 20:11:01 +01:00
2025-03-07 17:33:47 -06:00
2026-04-04 01:43:25 +09:00
2026-03-25 17:07:39 +03:00
2025-10-21 15:10:56 -05:00
2026-04-12 12:04:56 -07:00
2026-03-25 17:07:39 +03:00
2025-10-06 13:09:22 -05:00
2026-03-30 13:35:14 -05:00
2025-10-10 18:01:03 -03:00
2026-04-10 10:32:33 -05:00
2026-03-16 16:40:39 +01:00
2026-04-09 17:56:44 +01:00
2026-03-17 20:11:01 +01:00
2026-03-17 20:11:01 +01:00
2026-04-07 12:43:28 -03:00
2025-04-16 15:49:02 -05:00
2026-03-25 17:07:39 +03:00
2026-04-07 18:21:54 -05:00
2026-03-17 20:11:01 +01:00
2026-03-17 20:11:01 +01:00
2026-03-27 07:03:39 -04:00
2026-03-18 20:34:08 +01:00
2026-03-18 20:34:08 +01:00
2026-03-18 10:41:59 +01:00
2026-03-25 17:07:39 +03:00
2026-04-08 09:25:32 -05:00
2026-03-30 13:35:14 -05:00
2025-12-12 22:39:53 +01:00
2026-03-25 17:07:39 +03:00
2026-03-27 07:16:20 -04:00
2026-03-27 07:16:20 -04:00
2026-03-25 17:07:39 +03:00
2026-03-27 07:03:39 -04:00
2026-03-25 17:07:39 +03:00
2026-04-10 10:32:16 -05:00
2026-03-18 20:34:08 +01:00
2026-03-25 17:07:39 +03:00
2026-03-31 21:48:43 +02:00
2026-04-07 17:07:23 +03:00
2026-04-07 17:07:23 +03:00
2026-02-04 19:31:28 +01:00
2026-03-30 13:35:14 -05:00
2026-03-27 11:20:06 -04:00
2026-03-25 17:07:39 +03:00
2026-03-18 10:41:59 +01:00
2026-04-08 12:05:22 -07:00
2026-03-30 13:35:14 -05:00
2026-03-27 07:03:39 -04:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-25 17:07:39 +03:00
2026-03-11 06:41:36 +01:00
2026-03-25 17:07:39 +03:00
2026-03-16 16:40:39 +01:00
2025-11-11 14:58:45 -06:00
2026-02-19 19:31:09 -06:00