Brian Gerst <[EMAIL PROTECTED]> said:
- Make sprintf call vsnprintf directly - use INT_MAX for sprintf and vsprintf
This is the size limit on what is written. 4GiB sounds a bit extreme...
Sprintf has no limit, which is why it's generally bad to use it. I just replaced an open coded ((~0U)>>1) value with the equivalent INT_MAX.
--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

