Mike Nelson
0c0320bb87
Null the multi SEXP packet getters' out-pointers on failure ( #7828 )
...
get_ship(), get_wing(), get_object() and get_parse_object() only assigned
their out-pointer on success. When a lookup failed (no bytes left, or a net
signature that no longer resolves, e.g. a ship destroyed before the packet
was processed) the caller's uninitialized local was left as stack garbage,
so its nullptr check could pass and the next line would write through it.
multi_sexp_set_camera_target() used the object without checking at all.
Set the out-pointer to nullptr up front, so every caller's existing nullptr
check works. This also clears the C4701/C4703 "potentially uninitialized"
warnings MSVC 2026 reports for the callers in sexp.cpp when it inlines these
getters at link time.
2026-10-09 10:54:31 +09:00
..
2026-07-09 11:20:25 +09:00
2026-10-01 21:16:46 -04:00
2026-04-30 00:35:19 -04:00
2026-07-20 23:04:56 -04:00
2025-04-06 02:11:52 -04:00
2026-07-23 15:52:27 +02:00
2026-09-10 13:14:18 +02:00
2026-07-09 11:20:25 +09:00
2026-05-07 14:40:38 +09:00
2026-09-10 13:14:18 +02:00
2026-03-05 15:15:56 -05:00
2026-08-04 15:49:46 -04:00
2026-07-26 14:33:00 +01:00
2026-07-21 16:58:21 +00:00
2026-08-23 21:38:52 -04:00
2026-07-23 15:52:27 +02:00
2026-07-21 16:58:21 +00:00
2026-09-23 21:04:44 -04:00
2024-12-22 22:31:58 +01:00
2020-08-11 09:38:39 +02:00
2026-07-23 15:52:27 +02:00
2026-07-09 11:20:25 +09:00
2026-07-09 11:20:25 +09:00
2024-02-27 13:09:34 -05:00
2026-05-30 23:45:22 +02:00
2026-09-10 16:29:51 -04:00
2026-09-21 05:12:55 +02:00
2026-07-23 15:52:27 +02:00
2026-09-24 03:12:38 +00:00
2026-08-02 18:26:47 -04:00
2025-08-18 11:59:22 -04:00
2026-09-12 03:57:27 +00:00
2025-06-05 17:53:13 -04:00
2026-07-19 22:25:33 -04:00
2026-05-26 12:21:43 +02:00
2026-08-27 00:58:20 -04:00
2026-05-12 11:31:20 -04:00
2026-10-05 00:17:02 -04:00
2026-09-10 13:14:18 +02:00
2026-07-09 11:20:25 +09:00
2026-07-21 16:58:21 +00:00
2026-09-29 02:58:02 -04:00
2026-09-25 03:22:23 -04:00
2026-10-05 00:17:02 -04:00
2026-10-01 20:05:09 -04:00
2026-10-08 03:04:02 -04:00
2026-05-28 14:43:48 +09:00
2026-10-09 10:54:31 +09:00
2026-10-01 16:59:38 -04:00
2025-02-22 19:29:11 -05:00
2026-09-10 13:14:18 +02:00
2026-09-21 05:12:35 +02:00
2026-10-04 13:08:13 -04:00
2026-07-26 14:33:00 +01:00
2026-04-30 00:35:19 -04:00
2025-08-18 11:56:39 -04:00
2026-09-08 13:20:36 -04:00
2026-09-08 10:48:13 -04:00
2025-06-05 17:53:13 -04:00
2026-07-09 11:20:25 +09:00
2026-07-20 23:04:56 -04:00
2026-08-05 23:09:57 -04:00
2026-09-17 23:15:11 -04:00
2026-08-01 19:46:57 +02:00
2026-09-29 02:58:02 -04:00
2026-10-01 16:59:38 -04:00
2026-07-23 15:52:27 +02:00
2026-05-07 14:40:38 +09:00
2026-07-21 16:58:21 +00:00
2026-05-30 02:21:22 -04:00
2025-06-05 17:53:13 -04:00
2026-07-21 16:58:21 +00:00
2026-07-23 15:52:27 +02:00
2026-07-14 13:23:37 -04:00
2026-09-24 11:23:11 +09:00
2026-07-23 15:52:27 +02:00
2026-07-26 13:57:57 -04:00
2020-08-29 11:26:16 +02:00
2026-07-21 16:58:21 +00:00
2026-09-08 10:48:33 -04:00