VirtualBox

Changeset 86304 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Sep 26, 2020 11:36:16 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140584
Message:

SUPDrv: Corrected segment count check for tiny modules (page count == segment count). bugref:9801

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r85748 r86304  
    17691769            REQ_CHECK_EXPR_FMT(   pReq->u.In.cSegments >= 1
    17701770                               && pReq->u.In.cSegments <= 128
    1771                                && pReq->u.In.cSegments <= pReq->u.In.cbImageBits / PAGE_SIZE
     1771                               && pReq->u.In.cSegments <= (pReq->u.In.cbImageBits + PAGE_SIZE - 1) / PAGE_SIZE
    17721772                               && pReq->u.In.offSegments >= pReq->u.In.cbImageBits
    17731773                               && pReq->u.In.offSegments < pReq->u.In.cbImageWithEverything
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette