1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source4/ntvfs/posix
Dmitry Antipov 9755206f6d s4:ntvfs:posix: avoid parsing empty blob in posix_eadb_add_list()
Strictly speaking, this is not a bug because parsing loop will just skip
an empty ({NULL}, 0) blob. But it's better to avoid this case because
UBSan (as of clang-17 at least) may complain on such a parsing attempt:

source4/ntvfs/posix/posix_eadb.c:56:62: runtime error: applying zero offset to null pointer
    #0 0x7f9d71ce7b2a in posix_eadb_add_list source4/ntvfs/posix/posix_eadb.c:56
    #1 0x7f9d71ce7b2a in push_xattr_blob_tdb_raw source4/ntvfs/posix/posix_eadb.c:178
    #2 0x7f9d71cec1f5 in py_wrap_setxattr source4/ntvfs/posix/python/pyposix_eadb.c:64
    #3 0x7f9d88bd4507 in cfunction_call (/lib64/libpython3.11.so.1.0+0x1d4507)
    [... a lot of Python calls skipped...]

Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-05-09 01:59:32 +00:00
..
python pybindings: xattr_native raises OSError not TypeError 2022-09-07 05:01:37 +00:00
posix_eadb.c s4:ntvfs:posix: avoid parsing empty blob in posix_eadb_add_list() 2023-05-09 01:59:32 +00:00
posix_eadb.h
pvfs_acl_nfs4.c
pvfs_acl_xattr.c
pvfs_acl.c CVE-2020-25720 s4:ntvfs: Use se_file_access_check() to check file access rights 2022-09-16 02:32:36 +00:00
pvfs_dirlist.c
pvfs_fileinfo.c lib/util: Standardize use of st_[acm]time ns 2020-08-15 08:51:09 +00:00
pvfs_flush.c
pvfs_fsinfo.c s4:ntvfs: Add missing break in switch statement 2021-02-01 21:50:32 +00:00
pvfs_ioctl.c
pvfs_lock.c
pvfs_mkdir.c
pvfs_notify.c
pvfs_open.c smb: rename NTCREATEX_OPTIONS_PRIVATE_DENY_FCB to NTCREATEX_FLAG_DENY_FCB 2020-10-23 17:44:33 +00:00
pvfs_oplock.c messaging4: Pass fds to messaging handlers 2019-09-18 20:10:24 +00:00
pvfs_qfileinfo.c Implement alt name query for smb2 2020-04-28 18:09:39 +00:00
pvfs_read.c ntvfs: Remove pvfs_aio.c 2019-10-04 17:01:39 +00:00
pvfs_rename.c
pvfs_resolve.c
pvfs_search.c lib: Remove idtree from samba_util.h 2023-01-10 00:28:37 +00:00
pvfs_seek.c
pvfs_setfileinfo.c
pvfs_shortname.c s4: ntvfs: Missed comma in 24c09f913d, string would be concatenated. 2021-08-25 18:02:05 +00:00
pvfs_streams.c
pvfs_sys.c
pvfs_unlink.c
pvfs_util.c
pvfs_wait.c s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
pvfs_write.c ntvfs: Remove pvfs_aio.c 2019-10-04 17:01:39 +00:00
pvfs_xattr.c
vfs_posix.c lib: Remove idtree from samba_util.h 2023-01-10 00:28:37 +00:00
vfs_posix.h ntvfs: Remove pvfs_aio.c 2019-10-04 17:01:39 +00:00
wscript_build ntvfs: Remove pvfs_aio.c 2019-10-04 17:01:39 +00:00
xattr_system.c