]> Kevux Git Server - fll/commit
Regression: Invalid read in f_directory_create().
authorKevin Day <thekevinday@gmail.com>
Wed, 16 Feb 2022 02:55:04 +0000 (20:55 -0600)
committerKevin Day <thekevinday@gmail.com>
Wed, 16 Feb 2022 02:55:04 +0000 (20:55 -0600)
commit48e482181083ca949aacc3ff285d8ab7c25d5b51
treec78bab992ba898ae58e7cfb1e2a282e228cbd2c0
parentd1b6e6eb5d0a96ee833d9c2d38041c853d38cd57
Regression: Invalid read in f_directory_create().

Now that this uses f_string_static_t, the string is not necessarily NULL terminated.
This new behavior resulted in an invalid read.

Redesign to use a range check instead of a NULL check and to include a NULL terminating space in the built string.
level_1/fl_directory/c/directory.c