dxx-rebirth/similar
Kp b8f25c9d1e Fix off-by-strlen(sep) in buffer capacity check
JoeNotCharles reports that gcc-12 (architecture unspecified) warns about
a possible truncation when constructing a path.  This would only occur
if the user had a path that was almost PATH_MAX deep (4096 bytes on most
platforms).  Add safety checks around this, and around an underflow if
this path were somehow reached while `newpath` was shorter than `sep`.
This is loosely based on a proposed commit by JoeNotCharles, but
rewritten to update comments and adjust the code flow.

Reported-by: JoeNotCharles <edfb3c4b77>
2023-01-14 19:05:37 +00:00
..
2d Make enumerate inherit ranges::subrange directly 2022-12-31 16:21:47 +00:00
3d Remove inline stub for swap_polygon_model_data 2023-01-07 22:17:31 +00:00
arch Use correct coefficient table for 11Khz sounds 2023-01-08 14:19:52 +00:00
editor Make partial_range_t inherit from ranges::subrange 2023-01-14 19:05:37 +00:00
main Fix off-by-strlen(sep) in buffer capacity check 2023-01-14 19:05:37 +00:00
misc Move SysNoHogDir to CGameArg 2023-01-07 22:17:31 +00:00