Skip to content

FIx potential null dereference#6998

Merged
ethomson merged 1 commit into
libgit2:mainfrom
peter15914:fix_check_calloc
Jan 3, 2025
Merged

FIx potential null dereference#6998
ethomson merged 1 commit into
libgit2:mainfrom
peter15914:fix_check_calloc

Conversation

@peter15914
Copy link
Copy Markdown
Contributor

GIT_ERROR_CHECK_ALLOC was added to check the return value of git__calloc().
Return value of git__calloc() is usually checked for NULL.

GIT_ERROR_CHECK_ALLOC was added to check the return value of git__calloc().
@peter15914 peter15914 marked this pull request as ready for review January 2, 2025 20:27
@ethomson
Copy link
Copy Markdown
Member

ethomson commented Jan 3, 2025

Looks good, thanks!

@ethomson ethomson merged commit 666bbed into libgit2:main Jan 3, 2025
@ethomson ethomson added the bug label Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants