]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Fix uninitialized array access for some pathnames
authorJan Kara <jack@suse.cz>
Wed, 21 Jun 2023 09:32:35 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:50:32 +0000 (08:50 +0200)
commita6824149809395dfbb5bc36bc7057cc3cb84e56d
treed0665cc0120433bdd444bed1e5f8ccdf075ee1e5
parentcce9107c315f564784f18fab18d2c20ab888d262
udf: Fix uninitialized array access for some pathnames

[ Upstream commit 028f6055c912588e6f72722d89c30b401bbcf013 ]

For filenames that begin with . and are between 2 and 5 characters long,
UDF charset conversion code would read uninitialized memory in the
output buffer. The only practical impact is that the name may be prepended a
"unification hash" when it is not actually needed but still it is good
to fix this.

Reported-by: syzbot+cd311b1e43cc25f90d18@syzkaller.appspotmail.com
Link: https://lore.kernel.org/all/000000000000e2638a05fe9dc8f9@google.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/udf/unicode.c