Throwing error may inject format string?
Using clava-js:
throw new Error("Isto é %s um bocado preocupante")
My %static lifetimes aren't very happy with this 😛
Perhaps an issue with debug, or the way it is being used.
Either way, that sort of exceptions should be printed to stderr. I noticed that a while ago and need to correct it.
Also, shouldn't you escape the % character anyway in the %static case?
Also, shouldn't you escape the
%character anyway in the%staticcase?
No, there is no reason to be escaping a % character. I'm currently doing so as a workaround because of this bug, but I thought I should report it anyway because these kinds of accidental format leaks may end up exposing vulnerabilities, so it's worth understanding what is happening here.