Whamcloud - gitweb
libext2fs: fix segault when setting an xattr with an unknown prefix
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 Feb 2021 04:21:58 +0000 (23:21 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Feb 2021 04:21:58 +0000 (23:21 -0500)
commit9f4e9fbbe23b54ccac7412f593704d5948e2007d
tree93752bc4848ad9e84d1cb7c0192f2beda44f309a
parentf41c7da2e4342bdc8e7e1a43416958bd874fc771
libext2fs: fix segault when setting an xattr with an unknown prefix

Also avoid unnecessary calls to find_ea_index() by caching the short
name and name index in the ext2_attr structure.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext_attr.c