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