On Wed, 23 Oct 2024 23:08:46 -0400 James Bottomley James.Bottomley@HansenPartnership.com wrote:
The output of ".%03u" with the unsigned int in range [0, 4294966295] may get truncated if the target buffer is not 12 bytes.
I think we all agree the explanation isn't accurate: remainder will be between 0-999 (not range [0, 4294966295]) which means that the string will only ever be 5 bytes (including leading zero).
This might be required to correct a compiler false warning, but if it is applied, the patch description should say this.
Thanks, I've added a note-to-self that a new version is expected.