syncthing/internal
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
..
auto Add seehuhn 2014-10-07 07:43:09 +02:00
beacon Relicense to GPL 2014-10-01 07:53:59 +02:00
config Test for ChangeRequiresRestart 2014-10-07 10:46:33 +02:00
discover Minor fixes. 2014-10-06 23:03:24 +01:00
events Minor fixes. 2014-10-06 23:03:24 +01:00
files bug fix: allow folder names up to length 64 in leveldb 2014-10-07 14:05:04 +01:00
fnmatch Relicense to GPL 2014-10-01 07:53:59 +02:00
ignore Relicense to GPL 2014-10-01 07:53:59 +02:00
lamport Relicense to GPL 2014-10-01 07:53:59 +02:00
logger Relicense to GPL 2014-10-01 07:53:59 +02:00
luhn Relicense to GPL 2014-10-01 07:53:59 +02:00
model Removing a nonexistent file is OK (fixes #792) 2014-10-06 21:47:42 +02:00
osutil Use a configuration wrapper to handle loads and saves 2014-10-06 17:57:35 +02:00
protocol Relicense to GPL 2014-10-01 07:53:59 +02:00
scanner Reuse temporary files (fixes #4) 2014-10-04 16:00:59 +01:00
stats Relicense to GPL 2014-10-01 07:53:59 +02:00
upgrade Relicense to GPL 2014-10-01 07:53:59 +02:00
upnp Relicense to GPL 2014-10-01 07:53:59 +02:00
versioner Relicense to GPL 2014-10-01 07:53:59 +02:00