mirror of https://github.com/acidanthera/audk.git
0b448dd8b2
It would be possible to remove the UAF without local variables, by calling
SataPrivateData->PciIo->Attributes() before releasing SataPrivateData.
However, by keeping the location of the call (for which temporary
variables are necessary), we continue to match the error path logic in
SataControllerStart(), which is always recommended.
Reported-by: wang xiaofeng <winggundum82@163.com>
Fixes:
|
||
---|---|---|
.. | ||
ComponentName.c | ||
SataController.c | ||
SataController.h | ||
SataControllerDxe.inf |