Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2010 22:39:26 GMT
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 173051 for review
Message-ID:  <201001122239.o0CMdQj2038600@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=173051

Change 173051 by raj@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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001122239.o0CMdQj2038600>