commit | 6ffa14f3b019919dd7c8d3a768606c05f87fe729 | [log] [tgz] |
---|---|---|
author | Lasse Collin <[email protected]> | Mon Apr 27 11:26:09 2009 +0300 |
committer | Lasse Collin <[email protected]> | Mon Apr 27 11:26:09 2009 +0300 |
tree | 0dc042b8445eb7f1502a056dc02a13999596f678 | |
parent | 6cb1a9a62fb75707f0255b9e59569d6eac498b57 [diff] |
Define VLI_BYTES_MAX macro and use it in dec_vli(). This makes it possible to use uint32_t as vli_type. Doing so risks having some integer overflows unless the caller can ensure that the total amounts of input and output will stay below 256 MiB.