]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:libsmb:cliquota fix tautological-compare
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 15 Apr 2026 01:32:11 +0000 (13:32 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 May 2026 17:39:48 +0000 (17:39 +0000)
commitb58d7045d5444d70db58d07d7746006ea1b9ecfb
treeb91b5683d4e1fe3f1799ab60ea8a6ed43ed12cc6
parent3287641bbf3360c8241db090781ebc2d5febbc96
s3:libsmb:cliquota fix tautological-compare

The wrapping of pointer arithmetic is undefined behaviour. Clang from version 20
onwards will treat an overflow check of the following form:
   ptr + offset < ptr
as always evaluating to false

BUG: https://bugzilla.samba.org/show_bug.cgi?id=16092

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/libsmb/cliquota.c