Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix some bugs caught by UBscan#6700

Merged
ethomson merged 3 commits intomainfrom
ethomson/ubfix
Dec 20, 2023
Merged

Fix some bugs caught by UBscan#6700
ethomson merged 3 commits intomainfrom
ethomson/ubfix

Conversation

@ethomson
Copy link
Member

After upgrading the undefined behavior scanner to LLVM 14, we see some warnings reported. These warnings are correct; this PR fixes them.

Passing a function pointer with different parameters is UB, even if
those params are (void *). Use our separate `_cb` functions that will do
the correct casting.
`git_commit_create_v` takes _commits_ not _commit ids_. Fix the test to
call the API correctly.
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.

1 participant