[OpenBIOS] r565 - trunk/openbios-devel/modules

Laurent Vivier Laurent at vivier.eu
Wed Sep 2 23:15:40 CEST 2009


Le samedi 22 août 2009 à 08:03 +0200, svn at openbios.org a écrit :
> Author: blueswirl
> Date: 2009-08-22 08:03:40 +0200 (Sat, 22 Aug 2009)
> New Revision: 565
> 
> Modified:
>    trunk/openbios-devel/modules/disk-label.c
> Log:
> Allow NULL dlabel path argument without accessing page zero.
> 
> Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
> 
> Modified: trunk/openbios-devel/modules/disk-label.c
> ===================================================================
> --- trunk/openbios-devel/modules/disk-label.c	2009-08-22 06:03:20 UTC (rev 564)
> +++ trunk/openbios-devel/modules/disk-label.c	2009-08-22 06:03:40 UTC (rev 565)
> @@ -57,7 +57,7 @@
>  static void
>  dlabel_open( dlabel_info_t *di )
>  {
> -	char *s, *filename;
> +	const char *s, *filename;
>  	char *path;
>  	char block0[512];
>  	phandle_t ph;
> @@ -65,6 +65,9 @@
>  	xt_t xt;
>  
>  	path = my_args_copy();
> +	if (!path) {
> +		path = strdup("");
> +	}
>  	DPRINTF("dlabel-open '%s'\n", path );
>  
>  	/* open disk interface */
> 
> 

This patch breaks booting PPC using QUIK bootloader. Ìs it possible to
revert it ?

Regards,
Laurent
-- 
--------------------- laurent at vivier.eu ----------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard




More information about the OpenBIOS mailing list