Skip to content

Fix potential NULL pointer dereference on memory allocation failure#31

Open
liuhzy0329 wants to merge 1 commit intolinux-ras:masterfrom
liuhzy0329:master
Open

Fix potential NULL pointer dereference on memory allocation failure#31
liuhzy0329 wants to merge 1 commit intolinux-ras:masterfrom
liuhzy0329:master

Conversation

@liuhzy0329
Copy link
Copy Markdown

Validate malloc/calloc return values and handle allocation failures gracefully to prevent NULL dereferences and undefined behavior, improving robustness under low-memory conditions.

Validate malloc/calloc return values and handle allocation failures
gracefully to prevent NULL dereferences and undefined behavior,
improving robustness under low-memory conditions.

Signed-off-by: liuh <liuhuan01@kylinos.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant