microsoft/msquic
Miss check for the return value of CXPLAT_ALLOC_NONPAGED and CxPlatPoolAlloc
開放
#5,233 建立於 2025年7月10日
Area: TestingHowFound: MSRTriagedgood first issuehelp wanted
倉庫指標
- 星標
- (4,764 顆星)
- PR 合併指標
- (平均合併 6天) (30 天內合併 40 個 PR)
描述
Description
There are several instances in the codebase where the return value of CXPLAT_ALLOC_NONPAGED and CxPlatPoolAlloc is not checked before being used.
Suggested Fix
Add a null check immediately after each CXPLAT_ALLOC_NONPAGED and CxPlatPoolAlloc call, and handle the failure case appropriately