Ticket #4620: (sftpfs_fill_connection_data_from_config): fix use-after-free.
commitd0d8ae90eb01d1c3d86b8cd68e4df77352a4f8bc
authorAndrew Borodin <aborodin@vmail.ru>
Wed, 18 Dec 2024 21:00:00 +0000 (18 21:00 +0000)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 21 Dec 2024 16:13:43 +0000 (21 19:13 +0300)
tree6780db24a9af9a4f793b70af242cb5fb9e774cba
parent0df9c46cd16cec4ab54a03f269d85c519f7260c5
Ticket #4620: (sftpfs_fill_connection_data_from_config): fix use-after-free.

Fix Use-after-free in sftpfs_fill_connection_data_from_config()

Found by Clang-19 Static Analyzer

The bug was introduced in 4c998ac636eb3cfad0ec29bba92c1548fdbeb977.

Reported-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/vfs/sftpfs/config_parser.c