]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r212165:
authornwhitehorn <nwhitehorn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Sep 2010 04:06:16 +0000 (04:06 +0000)
committernwhitehorn <nwhitehorn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Sep 2010 04:06:16 +0000 (04:06 +0000)
commit00ac8f29d0405d95f159b084431d7061bc0d4a97
tree39cf65260897e9f5fc9db5381090e864a0e19395
parent579ffad787ac79e2e9eca75fb6fbff56dd2f8fda
MFC r212165:

In the case of non-sequential mappings, ofw_mapmem() could ask Open
Firmware to map a memory region with negative length, causing crashes
and Undefined Behavior. Add the appropriate check to make the behavior
defined.

git-svn-id: svn://svn.freebsd.org/base/stable/8@213292 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/boot/ofw/libofw/ofw_copy.c