s3: smbd: vfs_dirsort module.
commit5475d5e511744a37346a38438679c2c987d91343
authorJeremy Allison <jra@samba.org>
Wed, 3 Sep 2014 14:54:51 +0000 (3 07:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 8 Sep 2014 08:00:32 +0000 (8 10:00 +0200)
tree41acd7b0d49429f5b5447291efbb0d5b26ef79ec
parentf165bb9b53baa70703f65c6de940a5a152956b1c
s3: smbd: vfs_dirsort module.

Fix an off-by-one check that would cause seekdir to
seek off the end of the cached array.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ronnie Sahlberg <ronniesahlberg.gmail.com>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep  3 19:59:54 CEST 2014 on sn-devel-104

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10794
vfs_dirsort has an off-by-one error that can cause uninitialized memory read

Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Mon Sep  8 10:00:32 CEST 2014 on sn-devel-104
source3/modules/vfs_dirsort.c