HomePhabricator

Make nullptr check more robust
Audit RequiredrL374332

Description

Make nullptr check more robust

The only condition that isecLoc becomes null is

Out::bufferStart == nullptr,
isec->getParent()->offset == 0, and
isec->outSecOff == 0.

We can check the first condition only once.

Details

Auditors
Bigcheese
Committed
ruiuOct 10 2019, 5:41 AM
Parents
rL374331: File: Handle more cases in GetOptionsFromMode
Branches
Unknown
Tags
Unknown