You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some SIGABRTs recently and since the code in lib/setproctitle.c didn't change up to HEAD I wanted to ask your opinion on the use of vsprintf() in setproctitle() there. It uses a fixed sized destination and has to sprintf cmd.s. IMO (and the coredump suggests it as well) I had these SIGABRTs in vsprintf() because cmd.s was too large, because somebody tried some "HTTP fuzzing" on my imap and pop3 ports.
The text was updated successfully, but these errors were encountered:
Not sure how to test this though. I can't remember how the setproctitle implementation hangs together... looks like there's a mess of things to define with -D in CFLAGS to enable and configure it, but it might also just use a libc one automatically if it's there (which wouldn't be affected by the bug in our implementation).
That's not necessary, the snprintf and vsnprintf functions guarantee to always null-terminate the string. If the string and null byte won't both fit in the buffer together, the string is truncated until they do.
I had some SIGABRTs recently and since the code in lib/setproctitle.c didn't change up to HEAD I wanted to ask your opinion on the use of vsprintf() in setproctitle() there. It uses a fixed sized destination and has to sprintf cmd.s. IMO (and the coredump suggests it as well) I had these SIGABRTs in vsprintf() because cmd.s was too large, because somebody tried some "HTTP fuzzing" on my imap and pop3 ports.
The text was updated successfully, but these errors were encountered: