All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] solve memory leak and check whether NULL pointer
@ 2021-12-02 11:26 zhanchengbin
  2021-12-02 14:53 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: zhanchengbin @ 2021-12-02 11:26 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: linux-ext4, liuzhiqiang26, linfeilong

Solve the memory leak of the abnormal branch and the new null pointer check

zhanchengbin (6):
   alloc_string : String structure consistency
   ss_execute_command : Check whether the pointer is not null before it
     is referenced.
   quota_set_sb_inum : Check whether the pointer is not null  before it
     is referenced.
   badblock_list memory leak
   ldesc Non-empty judgment
   io->name memory leak

  e2fsck/logfile.c      |  2 ++
  e2fsck/problem.c      |  2 ++
  lib/ext2fs/test_io.c  |  2 ++
  lib/ext2fs/undo_io.c  |  2 ++
  lib/ss/execute_cmd.c  |  2 ++
  lib/support/mkquota.c |  3 ++-
  misc/dumpe2fs.c       |  1 +
  resize/resize2fs.c    | 10 ++++++----
  8 files changed, 19 insertions(+), 5 deletions(-)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH 0/6] solve memory leak and check whether NULL pointer
@ 2021-12-03  6:24 zhanchengbin
  0 siblings, 0 replies; 4+ messages in thread
From: zhanchengbin @ 2021-12-03  6:24 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: linux-ext4, liuzhiqiang26, linfeilong

Solve the memory leak of the abnormal branch and the new null pointer check

zhanchengbin (6):
   e2fsck: set s->len=0 if malloc() fails in alloc_string()
   lib/ss: check whether argp is null before accessing it in
     ss_execute_command()
   lib/support: check whether inump is null before accessing it in
     quota_set_sb_inum()
   e2fsprogs: call ext2fs_badblocks_list_free() to free list in exception
     branch
   e2fsck: check whether ldesc is null before accessing it in
     end_problem_latch()
   lib/ext2fs: call ext2fs_free_mem() to free &io->name in exception
     branch

  e2fsck/logfile.c      | 2 ++
  e2fsck/problem.c      | 2 ++
  lib/ext2fs/test_io.c  | 2 ++
  lib/ext2fs/undo_io.c  | 2 ++
  lib/ss/execute_cmd.c  | 2 ++
  lib/support/mkquota.c | 3 ++-
  misc/dumpe2fs.c       | 1 +
  resize/resize2fs.c    | 4 ++--
  8 files changed, 15 insertions(+), 3 deletions(-)

-- 
2.23.0

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

end of thread, other threads:[~2021-12-03  6:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-02 11:26 [PATCH 0/6] solve memory leak and check whether NULL pointer zhanchengbin
2021-12-02 14:53 ` Theodore Y. Ts'o
2021-12-03  1:18   ` Zhiqiang Liu
  -- strict thread matches above, loose matches on Subject: below --
2021-12-03  6:24 zhanchengbin

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.