tags 596780 + patch - moreinfo unreproducible
severity 596780 important
retitle 596780 puredata does not start properly in some circumstances
thanks

On Wed, 2010-10-06 at 10:05 +0800, Paul Wise wrote:

> Don't have time right now to test it on pd itself but I'll do that in
> the next day or two.

The attached patch fixes the issue for me. Personally I think this fix
should go into squeeze, please contact the release team about it.

There are also other issues but I'll file other bugs about them.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
Author: Paul Wise <p...@debian.org>
Description: terminate strings properly before using strlen
--- a/src/t_tkcmd.c
+++ b/src/t_tkcmd.c
@@ -603,6 +603,7 @@
     pdgui_path = malloc(n+9);
 
     strncpy(pdgui_path, str, n);
+    pdgui_path[n] = 0;
     while (strlen(pdgui_path) > 0 && pdgui_path[strlen(pdgui_path)-1] == '/')
         pdgui_path[strlen(pdgui_path)-1] = 0;
     if (t = strrchr(pdgui_path, '/'))

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to