Skip to content

profile_create_node: set magic before strdup(name) to avoid memory leak

wuguanghao linux-ext4 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/212 patches 15 repliesApplied
  2. v2 posting 1/25 of 12 patches 3 repliesSuperseded
  3. v112 patches 7 repliesSuperseded

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/12profile_create_node: set magic before strdup(name) to avoid memory leaklib/support/profile.c+2 -11 reply
2/12tdb_transaction_recover: fix memory leaklib/ext2fs/tdb.c+1 -01 reply
3/12zap_sector: fix memory leakmisc/mke2fs.c+3 -11 reply
4/12ss_add_info_dir: fix memory leak and check whetherlib/ss/help.c+5 -02 replies
5/12ss_create_invocation: fix memory leak and check whether NULL pointerlib/ss/invocation.c+32 -62 replies
6/12append_pathname: check the value returned by realloccontrib/fsstress.c+8 -21 reply
7/12argv_parse: check return value of malloc in argv_parse()lib/support/argv_parse.c+2 -01 reply
8/12misc: fix potential segmentation fault problem in scandir()misc/create_inode.c+3 -01 reply
9/12lib/ss/error.c: check return value malloc in ss_name()lib/ss/error.c+2 -01 reply
10/12hashmap: change return value type of ext2fs_hashmap_add()contrib/android/base_fs.c lib/ext2fs/fileio.c lib/ext2fs/hashmap.c +1 more+29 -91 reply
11/12misc/lsattr: check whether path is NULL in lsattr_dir_proc()misc/lsattr.c+6 -02 replies
12/12ext2ed: fix potential NULL pointer dereference in dupstr()ext2ed/main.c+2 -01 reply

Reviews trailers per patch

5 of 12 patches have a Reviewed-by or Acked-by.

PatchWu Bo
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread