Thread (2 messages) 2 messages, 2 authors, 2020-03-11

Re: [PATCH] HID: hid-picolcd_fb: Use scnprintf() for avoiding potential buffer overflow

From: Jiri Kosina <jikos@kernel.org>
Date: 2020-03-11 11:00:30

On Wed, 11 Mar 2020, 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 <redacted>
Applied to for-5.6/upstream-fixes. Thanks,

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help