microsoft/msquic
Miss check for the return value of CXPLAT_ALLOC_NONPAGED and CxPlatPoolAlloc
オープン
#5,233 opened on 2025/07/10
Area: TestingHowFound: MSRTriagedgood first issuehelp wanted
Repository metrics
- Stars
- (4,764 個のスター)
- PR merge metrics
- (平均マージ 6d) (30d で 40 merged PRs)
説明
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