Re: [PATCH RESEND] staging: greybus: loopback_test: Use scnprintf() for avoiding potential buffer overflow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Takashi Iwai <tiwai@xxxxxxx>
- Subject: Re: [PATCH RESEND] staging: greybus: loopback_test: Use scnprintf() for avoiding potential buffer overflow
- From: Johan Hovold <johan@xxxxxxxxxx>
- Date: Wed, 11 Mar 2020 17:43:31 +0100
- In-reply-to: <20200311100959.GK14211@localhost>
- References: <20200311100535.29635-1-tiwai@suse.de> <20200311100959.GK14211@localhost>
On Wed, Mar 11, 2020 at 11:09:59AM +0100, Johan Hovold wrote:
> On Wed, Mar 11, 2020 at 11:05:35AM +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>
> > ---
> >
> > Just corrected the subject prefix per request.
>
> Acked-by: Johan Hovold <johan@xxxxxxxxxx>
I take that back, this patch should NOT be applied.
This is user-space code so using scnprintf() doesn't make sense.
Johan
_______________________________________________
greybus-dev mailing list
greybus-dev@xxxxxxxxxxxxxxxx
https://lists.linaro.org/mailman/listinfo/greybus-dev
[Index of Archives]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]
[Asterisk Books]