[PATCH RESEND] staging: vc04_services: Use scnprintf() for avoiding potential buffer overflow
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Thu Mar 19 16:29:02 UTC 2020
On Thu, Mar 19, 2020 at 05:13:00PM +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().
>
> Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: bcm-kernel-feedback-list at broadcom.com
> Cc: linux-rpi-kernel at lists.infradead.org
> Cc: devel at driverdev.osuosl.org
> Signed-off-by: Takashi Iwai <tiwai at suse.de>
> ---
>
> Greg, could you apply it if it's OK?
Will do so, thanks!
greg k-h
More information about the devel
mailing list