Takashi Iwai 44eeb081b8 ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs
Some code in HD-audio driver calls snprintf() in a loop and still
expects that the return value were actually written size, while
snprintf() returns the expected would-be length instead.  When the
given buffer limit were small, this leads to a buffer overflow.

Use scnprintf() for addressing those issues.  It returns the actually
written size unlike snprintf().

Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200218091409.27162-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-02-18 10:15:41 +01:00
..
2020-01-05 16:14:34 +01:00
2020-01-05 16:14:53 +01:00
2020-01-05 16:14:38 +01:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:14:52 +01:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:14:52 +01:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:14:48 +01:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:14:47 +01:00
2020-02-06 14:15:01 +00:00
2020-01-05 16:14:30 +01:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:14:54 +01:00
2020-01-05 16:15:09 +01:00
2020-01-03 09:24:42 +01:00
2020-01-05 16:14:55 +01:00
2020-01-05 16:15:10 +01:00
2020-01-05 16:15:11 +01:00
2020-01-05 16:14:54 +01:00
2020-01-05 16:14:55 +01:00
2020-01-05 16:15:12 +01:00
2019-10-07 03:53:03 +02:00
2020-01-28 16:26:57 -08:00
2020-01-28 16:26:57 -08:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:15:12 +01:00