From: Jeremy Allison Date: Fri, 11 Aug 2023 17:38:23 +0000 (-0700) Subject: s3: smbd: Deliberately currupt an uninitialized pointer. X-Git-Tag: tevent-0.16.0~968 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7bf94b4e3a7f994aa6f0b859089c5add2ad380f;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 --- diff --git a/source3/smbd/smb1_sesssetup.c b/source3/smbd/smb1_sesssetup.c index fe4519aef20..fe59a4781fb 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;