mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fprintf(file, buf) is a format-string sink: if any registered event base or handler name contains "%", fprintf interprets it as a format directive, causing an information leak or crash. Replace with fprintf(file, "%s", buf) so the buffer is always treated as plain text regardless of its content. Closes SEC_064