mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-26 16:38:25 +00:00
d19b12d3fe
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.