Whamcloud - gitweb
libext2fs: fix uninitialized length in rep_strdup()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 Aug 2018 17:29:41 +0000 (13:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Aug 2018 17:32:25 +0000 (13:32 -0400)
commitdd3b4cc367ce5c9208f0ef9960ddf34d6d0a45b9
treef5340a1c530757630fe7a1e226cd3833ec57beba
parent0afb9be6aa326f69ecb3756f06aaaf1cb8150713
libext2fs: fix uninitialized length in rep_strdup()

For platforms whose libc don't supply strdup(), the replacement strdup
function in lib/ext2fs/tdb.c needs to always initialize the length
variable.

Reported-by: Vladyslav Tsilytskyi <ykp@protonmail.ch>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/tdb.c