microsoft/msquic
Miss check for the return value of CXPLAT_ALLOC_NONPAGED and CxPlatPoolAlloc
Offen
#5.233 geöffnet am 10.07.2025
Area: TestingHowFound: MSRTriagedgood first issuehelp wanted
Repository-Metriken
- Stars
- (4.764 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 6T) (40 gemergte PRs in 30 T)
Beschreibung
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