PERFORCE change 173051 for review

Rafal Jaworowski raj at FreeBSD.org
Tue Jan 12 22:39:27 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=173051

Change 173051 by raj at raj_fdt on 2010/01/12 22:38:38

	Be a bit more strict in fdt_data_verify() check.

Affected files ...

.. //depot/projects/fdt/sys/dev/fdt/fdt_common.c#4 edit

Differences ...

==== //depot/projects/fdt/sys/dev/fdt/fdt_common.c#4 (text+ko) ====

@@ -127,7 +127,7 @@
 
 	if (cells > 1) {
 		d64 = fdt64_to_cpu(*((uint64_t *)data));
-		if (((d64 >> 32) & 0xffffffffull) != 0)
+		if (((d64 >> 32) & 0xffffffffull) != 0 || cells > 2)
 			return (ERANGE);
 	}
 


More information about the p4-projects mailing list