Skip to content

ASoC: snprintf() usage fixes

Takashi Iwai alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ASoC: intel: skl: Fix pin debug printssound/soc/intel/skylake/skl-debug.c+3 -11 reply
2/3ASoC: intel: skl: Fix possible buffer overflow in debug outputssound/soc/intel/skylake/skl-debug.c+14 -141 reply
3/3ASoC: pcm: Fix possible buffer overflow in dpcm state sysfs outputsound/soc/soc-pcm.c+8 -81 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCezary Rojewski
SeriesA-b
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] ASoC: snprintf() usage fixes

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(-)
Signature · 1 line
2.16.4