1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00
Volker Lendecke 9fd1010553 smbd: Fix a use-after-free
stat_cache_lookup() allocates its result on top of talloc_tos().
filename_convert_smb1_search_path() creates a talloc_stackframe(),
which makes the names which were supposed to be allocated on the "ctx"
parameter of filename_convert_smb1_search_path() go away too
early. Reparent the results from stat_cache_lookup() properly.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14989

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Mar  1 20:59:55 UTC 2022 on sn-devel-184

(cherry picked from commit 8c97743511e4d53f795f2469a28aabfb96da0dfa)
2022-03-02 10:26:30 +00:00
..
2022-02-14 17:46:14 +00:00
2022-02-14 17:46:14 +00:00
2020-12-16 09:08:30 +00:00
2022-03-02 10:26:30 +00:00
2021-11-11 19:08:37 +00:00
2020-11-04 18:55:39 +00:00
2022-02-14 17:46:14 +00:00
2020-12-16 09:08:30 +00:00
2020-01-13 21:09:01 +00:00
2021-10-08 19:28:31 +00:00
2022-02-14 17:46:14 +00:00
2022-02-14 17:46:14 +00:00
2021-03-31 06:13:39 +00:00
2022-02-14 17:46:14 +00:00