[Bug 233108] New: Segmentation fault in DirectFBInit in libdirectfb
https://bugzilla.novell.com/show_bug.cgi?id=233108 Summary: Segmentation fault in DirectFBInit in libdirectfb Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: zisowsky@pv.com QAContact: qa@suse.de Since some versions (tested on OpenSuse 10.1 and 10.2) there is a special patch against the plain DirectFB library that leads to a crash. Looking at DirectFB-0.9.25-29.src.rpm you find a patch DirectFB-0.9.24-argv-argc.patch for src/misc/conf.c containing these lines: - if (argc && argv) { - for (i = 1; i < *argc; i++) { + if (argc && *argc && argv && *argv) { + for (i = 1; i <= *argc; i++) { if (strcmp ((*argv)[i], "--dfb-help") == 0) { direct_log_printf( NULL, config_usage ); The problem is the <= in the last added line. Example: With no command-line parameters you get: argc = 1 argv[0] = "path to executable" Due to the <= the loop is entered and the comparison is against argv[1], which does not exist. And we get a wonderful segmentation fault. Funny enough, installed DirectFB tools such as dfbinfo crash immediately. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233108 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mskibbe@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233108 mskibbe@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from mskibbe@novell.com 2007-01-12 06:37 MST ------- fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com