Fix a case of reading beyond allocated memory when asking for locks at depth=infinity on a path that is a locked file. Identified by valgrind running locks-test 4.
Fix a case of reading beyond allocated memory when asking
for locks at depth=infinity on a path that is a locked file.
Identified by valgrind running locks-test 4.

* subversion/libsvn_fs_base/bdb/locks-table.c
  (svn_fs_bdb__locks_get): Early return when found a locked file.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion