Re: + lib-string_helpers-fix-potential-snprintf-output-truncation.patch added to mm-hotfixes-unstable branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23 Oct 2024 23:08:46 -0400 James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> 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.




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux