mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
1f61084d83
Some structures use int for sizes and UNIX timestamps. On some platforms, int is 32 bits, so this can lead to the year 2038 issues and overflows when dealing with large containers or layers. Consistently use int64 to store sizes and UNIX timestamps in api/types/types.go. Update related to code accordingly (i.e. strconv.FormatInt instead of strconv.Itoa). Use int64 in progressreader package to avoid integer overflow when dealing with large quantities. Update related code accordingly. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> |
||
---|---|---|
.. | ||
auth.go | ||
auth_test.go | ||
authchallenge.go | ||
config.go | ||
config_test.go | ||
consts.go | ||
consts_unix.go | ||
consts_windows.go | ||
endpoint.go | ||
endpoint_test.go | ||
reference.go | ||
registry.go | ||
registry_mock_test.go | ||
registry_test.go | ||
service.go | ||
session.go | ||
token.go | ||
types.go |