Re: [PATCH] media: siano: Use scnprintf() for avoiding potential buffer overflow

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

 



On Fri, Mar 20, 2020 at 01:50:15PM +0000, Sean Young wrote:
> On Thu, Mar 19, 2020 at 04:57:28PM +0100, Takashi Iwai wrote:
> > On Wed, 11 Mar 2020 08:46:38 +0100,
> > Takashi Iwai wrote:
> > > 
> > > Since snprintf() returns the would-be-output size instead of the
> > > actual output size, the succeeding calls may go beyond the given
> > > buffer limit.  Fix it by replacing with scnprintf().
> > > 
> > > Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
> > 
> > A gentle reminder for this forgotten patch.
> > Let me know if any further changes are needed.
> 
> Thank you for your reminder. The changes look good, unfortunately they
> missed the deadline for v5.7. I handle them after the next merge window.

It turns out trival fixes can be merged, so I was wrong. Now this patch
and the other snprintf -> scnprintf patch have been merged for v5.7.

Thank you for the reminder.

Sean



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux