diff options
author | 2025-01-18 20:35:28 +0800 | |
---|---|---|
committer | 2025-01-19 19:34:00 -0600 | |
commit | 215b7f9ecb8d7c14d56febdcdd246f3579c32aba (patch) | |
tree | 59b71030cc5fb77344399b39111679a36187d5b5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | smb: client: don't retry DFS targets on server shutdown (diff) | |
download | wireguard-linux-215b7f9ecb8d7c14d56febdcdd246f3579c32aba.tar.xz wireguard-linux-215b7f9ecb8d7c14d56febdcdd246f3579c32aba.zip |
smb: client: correctly handle ErrorContextData as a flexible array
The `smb2_symlink_err_rsp` structure was previously defined with
`ErrorContextData` as a single `__u8` byte. However, the `ErrorContextData`
field is intended to be a variable-length array based on `ErrorDataLength`.
This mismatch leads to incorrect pointer arithmetic and potential memory
access issues when processing error contexts.
Updates the `ErrorContextData` field to be a flexible array
(`__u8 ErrorContextData[]`). Additionally, it modifies the corresponding
casts in the `symlink_data()` function to properly handle the flexible
array, ensuring correct memory calculations and data handling.
These changes improve the robustness of SMB2 symlink error processing.
Signed-off-by: Liang Jie <liangjie@lixiang.com>
Suggested-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions