storj/lib
Jeff Wendling a35eb8027e lib/uplinkc: do some checks around conversions and allocations
ensure that every integer conversion fits into the destination
type, and for any unchecked ones, annotate why they are safe.
additionally, any integers we pass into slice headers need to
check that they are not negative.

all of our allocations should check for allocation failure and
return an error if there was a problem. even though an allocation
just failed, we don't pre-allocate the failure because we don't
want the callers to free it like they have to with the other
errors we return. maybe we should just panic.

Change-Id: Id4dfad802d312d35e565041efc9872453c90d793
2020-01-01 17:36:34 +00:00
..
uplink common: separate repository 2019-12-27 14:11:15 +02:00
uplink-gomobile common: separate repository 2019-12-27 14:11:15 +02:00
uplinkc lib/uplinkc: do some checks around conversions and allocations 2020-01-01 17:36:34 +00:00