[PATCH 0/6] solve memory leak and check whether NULL pointer

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

 



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



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux