Skip to content

Conversation

@visitorckw
Copy link
Collaborator

Ensure calloc returns NULL when malloc fails to allocate memory. This change prevents potential undefined behavior when memory allocation fails.

Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run tests/update-snapshots.sh

Ensure calloc returns NULL when malloc fails to allocate memory. This
change prevents potential undefined behavior when memory allocation
fails.
@jserv jserv merged commit aab5755 into sysprog21:master Jul 21, 2024
@jserv
Copy link
Collaborator

jserv commented Jul 21, 2024

Thank @visitorckw for contributing!

@visitorckw visitorckw deleted the fix-calloc branch July 21, 2024 16:24
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.

2 participants