Closed Waqar144 closed 3 weeks ago
There are also -Werror=format-overflow
warnings in file_utils.c file_append_path_temp()
:
sprintf(path_buffer, "%s/%s", path, name);
...
sprintf(path_buffer, "%s%s", path, name);
I just locally added -Wno-format-overflow
to avoid them for now.
Could we instead set these to an invalid value? So rather than null
, perhaps (void)-1, and the len similarly. The best would be to add a #define
like `#define NO_INIT_PTR (void)0xAAAAAAAA` or something.
Thank you!
Fixes -Werror=maybe-uninitialized warnings