public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] cx231xx: card->driver "Conexant cx231xx Audio" too long
@ 2010-03-19 11:49 Dan Carpenter
  2010-03-22 14:46 ` Takashi Iwai
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Carpenter @ 2010-03-19 11:49 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Srinivasa Deevi, linux-media, linux-kernel, kernel-janitors

card->driver is 15 characters and a NULL, the original code could 
cause a buffer overflow.

Signed-off-by: Dan Carpenter <error27@gmail.com>

diff --git a/drivers/media/video/cx231xx/cx231xx-audio.c b/drivers/media/video/cx231xx/cx231xx-audio.c
index 7793d60..b3282ae 100644
--- a/drivers/media/video/cx231xx/cx231xx-audio.c
+++ b/drivers/media/video/cx231xx/cx231xx-audio.c
@@ -495,7 +495,7 @@ static int cx231xx_audio_init(struct cx231xx *dev)
 	pcm->info_flags = 0;
 	pcm->private_data = dev;
 	strcpy(pcm->name, "Conexant cx231xx Capture");
-	strcpy(card->driver, "Conexant cx231xx Audio");
+	strcpy(card->driver, "Cx231xx Audio");
 	strcpy(card->shortname, "Cx231xx Audio");
 	strcpy(card->longname, "Conexant cx231xx Audio");
 

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

end of thread, other threads:[~2010-03-23 16:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19 11:49 [patch] cx231xx: card->driver "Conexant cx231xx Audio" too long Dan Carpenter
2010-03-22 14:46 ` Takashi Iwai
2010-03-22 15:39   ` [patch v2] " Dan Carpenter
2010-03-22 15:43     ` Joe Perches
2010-03-22 16:04       ` Takashi Iwai
2010-03-22 16:54         ` Dan Carpenter
2010-03-22 16:57           ` Takashi Iwai
2010-03-23 16:43         ` Marcin Slusarz
2010-03-23  6:59     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox