I have a diff for bug 6344. It's a bug in the pspawn.c module, because
of an operator presedence misunderstanding. Libumem caught us with our
pants down here. Forutnately, the fix is quite simple.
diff -r 21cc2b92b920 src/modules/pspawn.c
--- a/src/modules/pspawn.c Wed Feb 04 11:48:06 2009 -0800
+++ b/src/modules/pspawn.c Wed Feb 04 13:41:32 2009 -0800
@@ -318,7 +318,7 @@
return (NULL);
}
len = PySequence_Size(args_seq);
- spawn_args = malloc(sizeof (char *) * len + 1);
+ spawn_args = malloc(sizeof (char *) * (len + 1));
if (spawn_args == NULL) {
PyErr_NoMemory();
goto out_args;
@@ -342,7 +342,7 @@
goto out_args;
}
len = PySequence_Size(env_seq);
- spawn_env = malloc(sizeof (char *) * len + 1);
+ spawn_env = malloc(sizeof (char *) * (len + 1));
if (spawn_env == NULL) {
PyErr_NoMemory();
goto out_env;
Thanks,
-j
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss