linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix buffer overflow in util_run_program()
@ 2009-09-04 19:54 Florian Zumbiehl
  2009-09-05  3:29 ` Andrey Borzenkov
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Florian Zumbiehl @ 2009-09-04 19:54 UTC (permalink / raw)
  To: linux-hotplug

Hi,

...

Reading your high-quality code starts getting a bit boring, so I guess that
I won't waste any more of your valuable time for now, except for finishing
the threads I started.

Florian

diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c
index 64203a8..c309945 100644
--- a/libudev/libudev-util-private.c
+++ b/libudev/libudev-util-private.c
@@ -268,7 +268,7 @@ int util_run_program(struct udev *udev, const char *command, char **envp,
 	pid_t pid;
 	char arg[UTIL_PATH_SIZE];
 	char program[UTIL_PATH_SIZE];
-	char *argv[(sizeof(arg) / 2) + 1];
+	char *argv[sizeof(arg) + 1];
 	int devnull;
 	int i;
 	int err = 0;

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

end of thread, other threads:[~2009-09-08 19:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-04 19:54 [PATCH] fix buffer overflow in util_run_program() Florian Zumbiehl
2009-09-05  3:29 ` Andrey Borzenkov
2009-09-05  4:25 ` Florian Zumbiehl
2009-09-05  4:34 ` Andrey Borzenkov
2009-09-05  4:49 ` Florian Zumbiehl
2009-09-05 10:50 ` Alan Jenkins
2009-09-05 17:21 ` Florian Zumbiehl
2009-09-05 18:41 ` Alan Jenkins
2009-09-05 19:07 ` Andrey Borzenkov
2009-09-05 20:39 ` Florian Zumbiehl
2009-09-06 16:34 ` Kay Sievers
2009-09-07 18:18 ` [PATCH] fix buffer overflow in util_run_program(), #2 Florian Zumbiehl
2009-09-08 19:43 ` Kay Sievers

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).