Skip to content

Commit

Permalink
src/artifacts: break when parent was found in references
Browse files Browse the repository at this point in the history
Otherwise we can potentially overwrite 'target' and thus leak the
storage it pointed to.

Discovered by coverity.

Signed-off-by: Enrico Joerns <[email protected]>
  • Loading branch information
ejoerns committed Oct 18, 2024
1 parent 4216f06 commit b580ad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/artifacts.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ gboolean r_artifact_repo_commit(RArtifactRepo *repo, GError **error)
artifact->name,
artifact->checksum.digest
);
break;
} else {
g_debug("disabled");
}
Expand Down

0 comments on commit b580ad5

Please sign in to comment.