storj/storagenode/orders/ordersfile
Moby von Briesen 41d86c0985 storagenode/orders/ordersfile: Add reasonable size caps for orders/limits when detecting file corruption.
Define constants of 32 KiB as the upper limit of the marshalled order
and limit protobuf sizes. This value gives lots of buffer in case the
protobufs ever change, but is not as extreme as what we were doing
before in V0 files, which was to use the Uint32 max value.

Change-Id: I0914d17dde3b044b2611af33f931d46d55f81e98
2020-11-18 12:33:26 +00:00
..
common.go storagenode/orders/ordersfile: Add reasonable size caps for orders/limits when detecting file corruption. 2020-11-18 12:33:26 +00:00
v0.go storagenode/orders/ordersfile: Add reasonable size caps for orders/limits when detecting file corruption. 2020-11-18 12:33:26 +00:00
v1.go storagenode/orders/ordersfile: Add reasonable size caps for orders/limits when detecting file corruption. 2020-11-18 12:33:26 +00:00