Files
dusklight/src/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-02-11 00:06:12 -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
2025-11-30 15:23:42 -07:00
2026-01-20 16:29:47 -08: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-01-20 16:29:47 -08:00
2026-03-11 13:40:21 -07:00
2026-03-08 15:27:15 -07:00
2026-05-17 20:11:32 -06:00
2026-03-18 01:25:42 -07:00
2026-03-17 22:48:37 -07:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-03-08 15:27:15 -07:00
2025-11-30 15:23:42 -07:00
2026-05-01 03:25:07 +00:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-04-17 23:11:43 -06:00
2026-03-12 04:01:03 -07:00
2026-04-18 12:46:44 -06:00
2026-03-08 15:27:15 -07:00
2026-04-06 23:08:34 +02:00
2026-03-20 20:59:50 -04:00
2026-04-18 12:46:44 -06:00
2026-04-26 10:44:52 -07:00
2026-03-08 15:27:15 -07:00
2026-05-06 20:36:21 -07:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06: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
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-03-08 15:27:15 -07:00
2026-05-24 10:43:00 -06:00
2026-04-12 17:34:02 -07:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-05-24 10:43:00 -06:00
2026-04-25 21:21:22 -07:00
2026-04-18 12:46:44 -06:00
2026-03-08 15:27:15 -07:00
2026-03-08 15:27:15 -07:00
2026-05-24 10:43:00 -06: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
2026-02-20 02:48:29 -08:00
2026-04-19 12:48:50 -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
2026-04-24 22:53:48 -06: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-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
2026-03-11 13:40:21 -07:00
2026-03-30 14:44:40 -07:00