]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: libsmb: Fix use-after-free when accessing pointer *p.
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 22 Jul 2017 16:36:18 +0000 (09:36 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 24 Jul 2017 04:24:58 +0000 (06:24 +0200)
commit5d740e45c4ecb8d6acdb6e429bd35d0e9f91e1be
treea9a0dce1e2a4ea9f914eef502f0ad1e1abf70f13
parent565932852ee486b981d462ca24dadf531a2cb704
s3: libsmb: Fix use-after-free when accessing pointer *p.

talloc_asprintf_append() might call realloc()
and therefore move the memory address of "path".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12927

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jul 22 22:45:05 CEST 2017 on sn-devel-144

(cherry picked from commit 890137cffedcaf88a9ff808c01335ee14fcfd8da)

Autobuild-User(v4-5-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-5-test): Mon Jul 24 06:24:58 CEST 2017 on sn-devel-144
source3/libsmb/libsmb_dir.c