alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: snprintf() usage fixes
@ 2020-02-18 11:17 Takashi Iwai
  2020-02-18 11:17 ` [PATCH 1/3] ASoC: intel: skl: Fix pin debug prints Takashi Iwai
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Takashi Iwai @ 2020-02-18 11:17 UTC (permalink / raw)
  To: alsa-devel; +Cc: Cezary Rojewski, Mark Brown

Hi,

this is a series of patches I spotted during debugging other code.
Intel skl and ASoC PCM core invokes succeeding calls of snprintf()
with the incorrect expectation of the return value, which may lead to
a buffer overflow.

The first patch is yet another bug I found during working on this, and
it's rather a real bug that can be seen clearly.


Takashi

===

Takashi Iwai (3):
  ASoC: intel: skl: Fix pin debug prints
  ASoC: intel: skl: Fix possible buffer overflow in debug outputs
  ASoC: pcm: Fix possible buffer overflow in dpcm state sysfs output

 sound/soc/intel/skylake/skl-debug.c | 32 +++++++++++++++++---------------
 sound/soc/soc-pcm.c                 | 16 ++++++++--------
 2 files changed, 25 insertions(+), 23 deletions(-)

-- 
2.16.4


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-19 21:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 11:17 [PATCH 0/3] ASoC: snprintf() usage fixes Takashi Iwai
2020-02-18 11:17 ` [PATCH 1/3] ASoC: intel: skl: Fix pin debug prints Takashi Iwai
2020-02-19 20:58   ` Applied "ASoC: intel: skl: Fix pin debug prints" to the asoc tree Mark Brown
2020-02-18 11:17 ` [PATCH 2/3] ASoC: intel: skl: Fix possible buffer overflow in debug outputs Takashi Iwai
2020-02-19 20:58   ` Applied "ASoC: intel: skl: Fix possible buffer overflow in debug outputs" to the asoc tree Mark Brown
2020-02-18 11:17 ` [PATCH 3/3] ASoC: pcm: Fix possible buffer overflow in dpcm state sysfs output Takashi Iwai
2020-02-19 20:58   ` Applied "ASoC: pcm: Fix possible buffer overflow in dpcm state sysfs output" to the asoc tree Mark Brown
2020-02-18 18:53 ` [PATCH 0/3] ASoC: snprintf() usage fixes Cezary Rojewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).