mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
Jakob Borg
9c8b907ff1
All slice types must have limits
The XDR unmarshaller allocates a []T when it sees a slice type and reads the expected length, so we must always limit the length in order to avoid allocating too much memory when encountering corruption.
Languages
Go
82.5%
HTML
6.8%
JavaScript
5.4%
TypeScript
2.6%
Shell
1.7%
Other
0.9%