microsoft / DMF

Driver Module Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjust a jump target for efficient exception handling

elfring opened this issue · comments

A null pointer can be detected in the variable “outputBuffer” after a call of the function “ExAllocatePoolWithTag”.
I suggest to avoid the repetition of this condition check at the end of the function “AcpiTarget_EvaluateAcpiMethod” then by the addition of a jump label before the call of the function “FuncExit”.

Hi. Thank you for the feedback. ExAllocatePoolWithTag was removed entirely from DMF a few revisions ago. Can you please analyze again using the current version. Several changes were made to that section of the code when ExAllocatePoolWithTag was removed.