s3: smbd: vfs_dirsort module.
authorJeremy Allison <jra@samba.org>
Wed, 3 Sep 2014 14:54:51 +0000 (07:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Sep 2014 17:55:17 +0000 (19:55 +0200)
commit836d1eca08ae7e029586e5707640ff346c8e3934
tree8f0ce7806c9e6223f85acdc75aea7a954e7627da
parentd14c83e072045cd2f638c4e4484a9f2ea71b9460
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
source3/modules/vfs_dirsort.c