From: Jeremy Allison Date: Fri, 11 Aug 2023 17:38:23 +0000 (-0700) Subject: s3: smbd: Deliberately currupt an uninitialized pointer. X-Git-Tag: samba-4.17.11~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce87c64b717bbb7ad78063f5918e715403f49fd;p=thirdparty%2Fsamba.git s3: smbd: Deliberately currupt an uninitialized pointer. 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 Reviewed-by: Volker Lendecke (cherry picked from commit e7bf94b4e3a7f994aa6f0b859089c5add2ad380f) --- diff --git a/source3/smbd/smb1_sesssetup.c b/source3/smbd/smb1_sesssetup.c index 78dd09199aa..785c9d5da13 100644 --- a/source3/smbd/smb1_sesssetup.c +++ b/source3/smbd/smb1_sesssetup.c @@ -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;