grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/6] Fix some Coverity low-hanging bugs


From: Darren Kenny
Subject: [PATCH 0/6] Fix some Coverity low-hanging bugs
Date: Tue, 26 Oct 2021 15:02:34 +0000

Coverity has flagged a number of small issues that should be fixed to help in
cleaning up the code - these here are primarily memory leaks or uninitialized
variables.

In theory leaked memory is significant, but for short-lived processes it is
minor. 

Similarly for unitinialized variables - some compilers will do the right thing
and zero out the value allocated on the stack, but some won't. So it is better
to be sure of the content that leave it open for possible misuse.

Darren Kenny (6):
  grub-install-common: Fix memory leak in copy_all()
  grub-mkrescue: Fix memory leak in write_part()
  grub-fstest: Fix resource leaks in cmd_cmp()
  grub-mkfont: Fix memory leak in write_font_pf2()
  zfs: Fix possible insecure use of chunk size in zap_leaf_array_get()
  gzio: Fix possible use of uninitialized variable in huft_build()

 grub-core/fs/zfs/zfs.c     | 3 ++-
 grub-core/io/gzio.c        | 2 +-
 util/grub-fstest.c         | 7 ++++++-
 util/grub-install-common.c | 4 +++-
 util/grub-mkfont.c         | 1 +
 util/grub-mkrescue.c       | 1 +
 6 files changed, 14 insertions(+), 4 deletions(-)

-- 
2.27.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]