]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Deliberately currupt an uninitialized pointer.
authorJeremy Allison <jra@samba.org>
Fri, 11 Aug 2023 17:38:23 +0000 (10:38 -0700)
committerJule Anger <janger@samba.org>
Wed, 16 Aug 2023 08:47:14 +0000 (08:47 +0000)
We will need this to show smbd crashing in the test code.
This will be removed once we're passing the test.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit e7bf94b4e3a7f994aa6f0b859089c5add2ad380f)

source3/smbd/smb1_sesssetup.c

index 78dd09199aa047c84c265c320a0d0492d2482783..785c9d5da133c103818f46175d0a431b0e701867 100644 (file)
@@ -581,7 +581,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
        struct reply_sesssetup_and_X_state *state = NULL;
        uint64_t sess_vuid;
        uint16_t smb_bufsize;
-       char *tmp;
+       char *tmp = (char *)0xDEADBEEF;
        fstring sub_user; /* Sanitised username for substitution */
        const char *native_os;
        const char *native_lanman;