aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2023-09-12 23:29:10 +0900
committerSteve French <[email protected]>2023-09-13 10:21:05 -0500
commit59d8d24f4610333560cf2e8fe3f44cafe30322eb (patch)
tree9b676b09360b8aab99f4faa63eebd775dc023023 /lib/test_fortify/write_overflow-strncpy-src.c
parente4e14095cc68a2efefba6f77d95efe1137e751d4 (diff)
ksmbd: fix passing freed memory 'aux_payload_buf'
The patch e2b76ab8b5c9: "ksmbd: add support for read compound" leads to the following Smatch static checker warning: fs/smb/server/smb2pdu.c:6329 smb2_read() warn: passing freed memory 'aux_payload_buf' It doesn't matter that we're passing a freed variable because nbytes is zero. This patch set "aux_payload_buf = NULL" to make smatch silence. Fixes: e2b76ab8b5c9 ("ksmbd: add support for read compound") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions