tag 435689 patch upstream noowner 435689 thanks The attached patch fixes this. Please apply, as it's quite unusable for generating Java interfaces as it is.
Marcus
diff -c /home/marcus/src/debian/xulrunner-1.8.1.6/xpcom/typelib/xpidl/xpidl_java.c.orig /home/marcus/src/debian/xulrunner-1.8.1.6/xpcom/typelib/xpidl/xpidl_java.c --- /home/marcus/src/debian/xulrunner-1.8.1.6/xpcom/typelib/xpidl/xpidl_java.c.orig 2007-07-22 00:01:06.000000000 +0200 +++ /home/marcus/src/debian/xulrunner-1.8.1.6/xpcom/typelib/xpidl/xpidl_java.c 2007-08-02 18:53:40.915994368 +0200 @@ -288,10 +288,13 @@ */ p = strrchr(state->filename, '/'); if (p) { - strncpy(outname, state->filename, p + 1 - state->filename); - outname[p + 1 - state->filename] = '\0'; + memcpy(outname, state->filename, p + 1 - state->filename); + p += outname + 1 - state->filename; + } else { + p = outname; } - strcat(outname, interface_name); + strncpy(p, interface_name, + sizeof(outname) - (p-outname) - sizeof(".java") - 1); strcat(outname, ".java"); state->file = fopen(outname, "w"); Diff finished. Thu Aug 2 18:59:35 2007
signature.asc
Description: This is a digitally signed message part.