j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: 2009-08-22 08:03:20 +0200 (Sat, 22 Aug 2009) New Revision: 564
Modified: trunk/openbios-devel/modules/console_common.c Log: Allow NULL string argument without accessing page zero.
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/modules/console_common.c =================================================================== --- trunk/openbios-devel/modules/console_common.c 2009-08-21 19:15:55 UTC (rev 563) +++ trunk/openbios-devel/modules/console_common.c 2009-08-22 06:03:20 UTC (rev 564) @@ -386,6 +386,10 @@ unsigned int y, x; unsigned char ch;
+ if (!str) { + return 0; + } + if( !cons.inited && console_init() ) return -1;