]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Use calloc instead of malloc to clear the memory from leftovers (#2207)
authorLukas Javorsky <ljavorsk@redhat.com>
Tue, 11 Jun 2024 04:41:25 +0000 (06:41 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2024 04:41:25 +0000 (21:41 -0700)
commitffa43aef31874b878e897dcb56f2791302e96dcb
tree0b96cabbd30fe483e81736faf0195411a4e3919a
parent98f7bbd6eaa4216a8a98e2d1c168ca244d0a95a6
Use calloc instead of malloc to clear the memory from leftovers (#2207)

This ensures that the buffer is properly initialized and does not
contain any leftover data from previous operations. It is used later in
the `archive_entry_copy_hardlink_l` function call and could be
uninitialized.
libarchive/archive_read_support_format_iso9660.c
libarchive/archive_read_support_format_xar.c