j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Sat Apr 6 19:31:25 2013 New Revision: 1112 URL: http://tracker.coreboot.org/trac/openbios/changeset/1112
Log: sun-parts.c: Fix NULL-dereferencing in sunparts_open
Signed-off-by: Artyom Tarasenko atar4qemu@gmail.com Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/packages/sun-parts.c
Modified: trunk/openbios-devel/packages/sun-parts.c ============================================================================== --- trunk/openbios-devel/packages/sun-parts.c Fri Apr 5 12:34:38 2013 (r1111) +++ trunk/openbios-devel/packages/sun-parts.c Sat Apr 6 19:31:25 2013 (r1112) @@ -109,7 +109,7 @@ [(id)][,][filespec] */
- if ( strlen(str) ) { + if ( str && strlen(str) ) { /* Detect the arguments */ if ((*str >= '0' && *str <= '9') || (*str >= 'a' && *str < ('a' + 8)) || (*str == ',')) { push_str(str);