diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-20 09:24:02 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-20 09:24:02 -0700 |
commit | a857b45bac55d1e7954994b72126099c5e44c71f (patch) | |
tree | 9f1b78c0e7d23c2f8ef6edfad140f10d98f3eec7 /const.go | |
parent | Merge branch 'master' of https://github.com/boltdb/bolt (diff) | |
download | dedo-a857b45bac55d1e7954994b72126099c5e44c71f.tar.gz dedo-a857b45bac55d1e7954994b72126099c5e44c71f.tar.xz |
Check for sequence overflow.
Diffstat (limited to 'const.go')
-rw-r--r-- | const.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -3,6 +3,13 @@ package bolt const version = 1 const ( + maxUint = ^uint(0) + minUint = 0 + maxInt = int(^uint(0) >> 1) + minInt = -maxInt - 1 +) + +const ( // MaxBucketNameSize is the maximum length of a bucket name, in bytes. MaxBucketNameSize = 255 |