All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Fix some Coverity low-hanging bugs
@ 2021-10-26 15:02 Darren Kenny
  2021-10-26 15:02 ` [PATCH 1/6] grub-install-common: Fix memory leak in copy_all() Darren Kenny
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Darren Kenny @ 2021-10-26 15:02 UTC (permalink / raw)
  To: grub-devel; +Cc: daniel.kiper, darren.kenny

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-28 21:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-26 15:02 [PATCH 0/6] Fix some Coverity low-hanging bugs Darren Kenny
2021-10-26 15:02 ` [PATCH 1/6] grub-install-common: Fix memory leak in copy_all() Darren Kenny
2021-10-26 15:02 ` [PATCH 2/6] grub-mkrescue: Fix memory leak in write_part() Darren Kenny
2021-10-26 15:02 ` [PATCH 3/6] grub-fstest: Fix resource leaks in cmd_cmp() Darren Kenny
2021-10-26 15:02 ` [PATCH 4/6] grub-mkfont: Fix memory leak in write_font_pf2() Darren Kenny
2021-10-26 15:02 ` [PATCH 5/6] zfs: Fix possible insecure use of chunk size in zap_leaf_array_get() Darren Kenny
2021-10-26 15:02 ` [PATCH 6/6] gzio: Fix possible use of uninitialized variable in huft_build() Darren Kenny
2021-10-28 21:29 ` [PATCH 0/6] Fix some Coverity low-hanging bugs Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.