mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
6ef23456c3
Computing a pointer that points outside of an array, and not to one past the last element, is undefined behaviour. To avoid this, do our comparisons in terms of lengths, not pointers. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>