Skip to content

Coverity fixes#356

Merged
hreinecke merged 4 commits intolinux-nvme:masterfrom
hreinecke:coverity
Apr 22, 2022
Merged

Coverity fixes#356
hreinecke merged 4 commits intolinux-nvme:masterfrom
hreinecke:coverity

Conversation

@hreinecke
Copy link
Copy Markdown
Collaborator

A bunch of coverity fixes; with that libnvme is now officially bug-free (tm) as far as coverity is concerned.

Coverity reported several issues.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Coverity reported a possible out-of-bounds access in inet6_pton
and we never checked the return value of nvme_ctrl_identify() in
nvme_fetch_cntrltype_dctype_from_id(), leading to a possible
NULL pointer access in nvmf_is_registration_supported().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Coverity found some resource leaks and a possible out-of-bounds access
in nvme_ctrl_lookup_subsystem_name() where we could overflow the
'path' variable.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Coverity found some resource leaks.

Signed-off-by: Hannes Reinecke <hare@suse.de>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #356 (a453143) into master (62ec078) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master    #356      +/-   ##
=========================================
- Coverage    3.77%   3.76%   -0.01%     
=========================================
  Files          23      23              
  Lines        3553    3561       +8     
  Branches      687     688       +1     
=========================================
  Hits          134     134              
- Misses       3348    3356       +8     
  Partials       71      71              
Impacted Files Coverage Δ
examples/telemetry-listen.c 0.00% <0.00%> (ø)
src/nvme/fabrics.c 4.95% <0.00%> (-0.01%) ⬇️
src/nvme/tree.c 9.01% <0.00%> (-0.05%) ⬇️
test/zns.c 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62ec078...a453143. Read the comment docs.

@hreinecke hreinecke merged commit 3f0bff8 into linux-nvme:master Apr 22, 2022
@hreinecke hreinecke deleted the coverity branch April 22, 2022 10:12
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