Files
dusklight/include/d
Pieter-Jan Briers a6376368ee String safety (#1548)
* Array size UB fixes

* Fix ShieldD

* Remove (almost) all unsafe strcpy calls

Bunch of macros. C arrays are easy enough and just need a different call. For various cases where a char* is passed around bare, I've made a TEXT_SPAN macro that can store a length too for bounds checking.

* Move crash handling in safe string operations to separate TU

* strcat safe version

* sprintf made safe too

* Fix compile
2026-05-24 10:43:00 -06:00
..
2026-05-24 10:43:00 -06:00
2026-02-11 00:06:12 -08:00
2026-02-11 00:06:12 -08:00
2026-03-02 16:56:56 +01:00
2026-03-02 16:56:56 +01:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-03-17 05:17:43 -07:00
2026-03-17 05:17:43 -07:00
2026-04-12 19:01:47 -07:00
2025-11-30 15:23:42 -07:00
2026-03-17 05:17:43 -07:00
2026-04-05 17:04:39 -04:00
2026-04-25 21:35:43 -06:00
2026-05-24 10:43:00 -06:00
2026-03-18 01:25:42 -07:00
2026-03-17 22:48:37 -07:00
2026-03-17 22:48:37 -07:00
2025-03-27 17:56:51 -07:00
2026-05-24 10:43:00 -06:00
2026-02-02 23:46:39 -08:00
2026-03-11 13:40:21 -07:00
2026-04-19 01:14:58 -07:00
2025-11-30 15:23:42 -07:00
2026-03-08 15:27:15 -07:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-03-17 22:48:37 -07:00
2025-11-30 15:23:42 -07:00
2025-12-06 13:39:30 -08:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-03-08 15:27:15 -07:00
2025-11-30 15:23:42 -07:00
2026-05-20 04:03:32 -07:00
2025-11-30 15:23:42 -07:00
2026-05-20 04:03:32 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-05-20 03:19:25 -07:00
2025-12-20 18:06:17 -08:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00
2026-05-18 21:23:03 +02:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-04-11 11:28:01 -06:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-05-24 10:43:00 -06:00
2026-03-12 04:01:03 -07:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-03-30 02:21:28 -07:00
2026-04-25 15:46:12 -06:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2025-11-30 15:23:42 -07:00
2026-02-01 15:37:26 -08:00
2025-11-30 15:23:42 -07:00
2026-05-24 10:43:00 -06:00
2025-11-30 15:23:42 -07:00