VirtualBox

Changeset 83291 in vbox


Ignore:
Timestamp:
Mar 13, 2020 4:56:34 PM (5 years ago)
Author:
vboxsync
Message:

Runtime/common/fuzz: Fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fuzz/fuzz.cpp

    r83266 r83291  
    20792079        {
    20802080            uint64_t offMax = pMutationParent->cbInput - 1;
    2081             if (   pMutation->cbMutNew != UINT64_MAX
    2082                 && pMutation->offMutStartNew + pMutation->cbMutNew < offMax)
    2083                 offMax = pMutation->offMutStartNew + pMutation->cbMutNew - 1;
    2084 
    2085             offStart = RTRandAdvU64Ex(pThis->hRand, pMutation->offMutStartNew, offMax);
     2081            if (   pMutationParent->cbMutNew != UINT64_MAX
     2082                && pMutationParent->offMutStartNew + pMutationParent->cbMutNew < offMax)
     2083                offMax = pMutationParent->offMutStartNew + pMutationParent->cbMutNew - 1;
     2084
     2085            offMax = RT_MAX(pMutationParent->offMutStartNew, offMax);
     2086            offStart = RTRandAdvU64Ex(pThis->hRand, pMutationParent->offMutStartNew, offMax);
    20862087        }
    20872088        else
Note: See TracChangeset for help on using the changeset viewer.

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