syncthing/internal/files
Jochen Voss d297f9e032 bug fix: allow folder names up to length 64 in leveldb
When extracting a folder name from the byte slices used as database
keys, bytes.IndexByte() is used to find and remove trailing 0 bytes.
In case the folder name is 64 bytes long, bytes.IndexByte() returns
-1.  Before this change, syncthing crashed in this case with an
out-of-bounds slice access.

The commit fixes the problem and also introduces a test case which
checks for the presence of the bug.
2014-10-07 14:05:04 +01:00
..
testdata Move top level packages to internal. 2014-09-27 09:42:10 +02:00
debug.go Relicense to GPL 2014-10-01 07:53:59 +02:00
filenames_darwin.go Relicense to GPL 2014-10-01 07:53:59 +02:00
filenames_unix.go Relicense to GPL 2014-10-01 07:53:59 +02:00
filenames_windows.go Relicense to GPL 2014-10-01 07:53:59 +02:00
leveldb_test.go bug fix: allow folder names up to length 64 in leveldb 2014-10-07 14:05:04 +01:00
leveldb_xdr.go Rename Repository -> Folder, Node -> Device (fixes #739) 2014-09-28 14:23:07 +01:00
leveldb.go bug fix: allow folder names up to length 64 in leveldb 2014-10-07 14:05:04 +01:00
set_test.go Minor fixes. 2014-10-06 23:03:24 +01:00
set.go Relicense to GPL 2014-10-01 07:53:59 +02:00