Skip to content

tests: rebase::submodule: verify initialization method calls#4320

Merged
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/rebase-submodule-asserts
Jul 28, 2017
Merged

tests: rebase::submodule: verify initialization method calls#4320
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/rebase-submodule-asserts

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Jul 28, 2017

Some return codes for functions which may fail are not being checked in
test_rebase_submodule__initialize. This may lead us to not notice
errors when initializing the environment and would possibly result in
either memory corruption or segfaults as soon as any of the
initialization steps fails. Fix this by wrapping these function calls
into cl_git_pass.

Some return codes for functions which may fail are not being checked in
`test_rebase_submodule__initialize`. This may lead us to not notice
errors when initializing the environment and would possibly result in
either memory corruption or segfaults as soon as any of the
initialization steps fails. Fix this by wrapping these function calls
into `cl_git_pass`.
@tiennou
Copy link
Copy Markdown
Contributor

tiennou commented Jul 28, 2017

Oops, my bad. I didn't get you were talking error return 😟 .

@ethomson
Copy link
Copy Markdown
Member

Thanks for the careful eyes, @pks-t

@ethomson ethomson merged commit d55431e into libgit2:master Jul 28, 2017
@pks-t
Copy link
Copy Markdown
Member Author

pks-t commented Jul 28, 2017

@tiennou No problem at all, thanks for your changes!

@ethomson Heh, "careful eyes" being Coverity here.

@pks-t pks-t deleted the pks/rebase-submodule-asserts branch September 15, 2017 06:02
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.

3 participants