dsdb: Do not attempt to return beyond the end of the password history array
authorAndrew Bartlett <abartlet@samba.org>
Mon, 1 Sep 2014 21:48:34 +0000 (09:48 +1200)
committerMatthieu Patou <mat@samba.org>
Mon, 13 Oct 2014 06:28:14 +0000 (08:28 +0200)
commitbf0db7ecc99482784f4cfc77f6603566f581622e
tree6faa591177cf1ccc17db24d2408f0bfaddbcc4e9
parentf593835e54648621a46600bde7866e629718ebf4
dsdb: Do not attempt to return beyond the end of the password history array

Found by AddressSanitizer

Change-Id: I82e35aea60726053c79510ba8ed3eedfaf553eb7
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Matthieu Patou <mat@matws.net>
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Mon Oct 13 08:28:15 CEST 2014 on sn-devel-104
source4/dsdb/common/util.c