Open BenBE opened 2 days ago
Out of curiosity I asked an AI:
Based on the search results, snprintf is not considered async-signal-safe in C. Here’s a breakdown of the reasons:
To work around these issues, consider the following alternatives:
In summary, while snprintf is not inherently async-signal-safe, there are workarounds and alternatives available to ensure safe and reliable signal handling in C programs.
While compiling I noticed the following warning for CWE-479 from GCC 14: