microsoft/msquic
GitHub で見るMiss check for the return value of CXPLAT_ALLOC_NONPAGED and CxPlatPoolAlloc
Open
#5,233 opened on 2025年7月10日
Area: TestingHowFound: MSRTriagedgood first issuehelp wanted
Repository metrics
- Stars
- (4,712 stars)
- PR merge metrics
- (PR metrics pending)
説明
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