syncthing/lib
Jakob Borg d19b12d3fe lib/protocol: Buffer allocation when compressing (fixes #6146) (#6147)
We incorrectly gave a too small buffer to lz4.Compress, causing it to
allocate in some cases (when the data actually becomes larger when
compressed). This then panicked when passed to the buffer pool.

This ensures a buffer that is large enough, and adds tripwires closer to
the source in case this ever pops up again. There is a test that
exercises the issue.
2019-11-11 08:36:31 +00:00
..
api gui, lib/api: Adds support for prefers-color-scheme (fixes #6115) 2019-11-08 21:44:37 +00:00
auto build: Let "go generate" create assets 2018-06-26 10:29:36 +02:00
beacon all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
build cmd/*, lib/build: Set correct LongVersion (fixes #5993) (#5997) 2019-10-07 13:30:25 +02:00
config all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
connections all: Cleanups enabled by Go 1.12 2019-11-10 10:16:10 +01:00
db all: Upgrade github.com/gogo/protobuf and regenerate (fixes #6085) 2019-10-18 09:53:59 +02:00
dialer all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
discover all: Upgrade github.com/gogo/protobuf and regenerate (fixes #6085) 2019-10-18 09:53:59 +02:00
events all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
fs all: Cleanups enabled by Go 1.12 2019-11-10 10:16:10 +01:00
ignore lib/ignore: Don't crash in partial #include line (ref #5985) (#5986) 2019-08-30 11:36:31 +02:00
locations all: Remove potentially problematic errors from panics (fixes #5839) (#5912) 2019-07-31 10:53:35 +02:00
logger all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
model lib/model: Remove some testing deadlocks (#6138) 2019-11-08 18:53:51 +01:00
nat all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
osutil all: Remove dead code, fix lost msgLen checks (#6129) 2019-11-06 07:09:58 +01:00
pmp all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
protocol lib/protocol: Buffer allocation when compressing (fixes #6146) (#6147) 2019-11-11 08:36:31 +00:00
rand lib/connections: Add QUIC protocol support (fixes #5377) (#5737) 2019-05-29 09:56:40 +02:00
rc all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
relay all: Remove dead code, fix lost msgLen checks (#6129) 2019-11-06 07:09:58 +01:00
scanner lib/scanner: Don't scan if input path is below symlink (fixes #6090) (#6101) 2019-10-22 11:12:21 +02:00
sha256 all: Remove dead code, fix lost msgLen checks (#6129) 2019-11-06 07:09:58 +01:00
signature all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stats all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
stun all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
sync lib/sync: Cleanly fail instead of panic in tests (#6088) 2019-10-16 10:11:11 +02:00
syncthing lib/model: Add folders on start in model (#6135) 2019-11-08 10:56:16 +01:00
testutils lib/model, lib/testutils: Test closing a connection on folder restart (#5707) 2019-05-18 08:53:59 +02:00
tlsutil all: Cleanups enabled by Go 1.12 2019-11-10 10:16:10 +01:00
upgrade all: Remove dead code, fix lost msgLen checks (#6129) 2019-11-06 07:09:58 +01:00
upnp lib/upnp: Fix outdated comment (#6110) 2019-11-05 18:56:51 +00:00
ur all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
util lib/util: Add caller info to service (ref #5932) (#5973) 2019-10-16 09:06:16 +02:00
versioner all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
watchaggregator all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
weakhash lib/scanner: Use standard adler32 when we don't need rolling (#5556) 2019-02-25 13:29:31 +04:00