[lsb-bugs] [Bug 2574] lsbappchk segfaults

bugzilla-daemon at linux-foundation.org bugzilla-daemon at linux-foundation.org
Fri May 8 07:04:23 PDT 2009


http://bugs.linuxbase.org/show_bug.cgi?id=2574





--- Comment #2 from Stew Benedict <stewb at linux-foundation.org>  2009-05-08 07:04:22 ---
Looks like this is the typical issue of passing a NULL to a str* function.
current_testcase is NULL when not using -j.

The following patch seems to let things work both for Robert's example and
mine. Pushing to bzr.

--- appchk/output.c     2008-09-16 14:12:04 +0000
+++ appchk/output.c     2009-05-08 13:51:20 +0000
@@ -333,7 +333,9 @@

         is_blank_report = 0;

-        prepared = stringprep(current_testcase);
+        if (current_testcase != NULL) {
+            prepared = stringprep(current_testcase);
+        }


-- 
Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the lsb-bugs mailing list