On 08/17/2012 03:09 PM, Jakub Jelinek wrote:
s/stpncopy/stpncpy/, yeah, I guess, we could do that for those too, but 1) I'd prefer to wait for the C++ FE change to go in first 2) {,v}snprintf would be much harder than the rest, as the size argument then isn't the last argument to the function, and the FEs only provide the last one right now.
Could you pick the second argument for varargs functions? Incredibly hacky, but would do the trick for those two. Or does the FE not know at this point it is processing a varargs function?
-- Florian Weimer / Red Hat Product Security Team