Whamcloud - gitweb
ext2fs: fix potential null dereference in utf8nlookup
authorGabriel Krisman Bertazi <krisman@collabora.com>
Sun, 28 Apr 2019 19:10:21 +0000 (15:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 28 Apr 2019 19:10:50 +0000 (15:10 -0400)
commitdea1e527ebfa689ed0a0a6bc78a4f640c1fe192e
tree975fea9cd6e107cfe377f2904e3e03345d2b7073
parent3e1c513a73ac84158f0746c3d344d3dc87c62599
ext2fs: fix potential null dereference in utf8nlookup

Delay the access of data->offset until after the null check.  This was
reported by 0-day on the kernel version of the script.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/nls_utf8-norm.c