diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2015-01-12 08:06:42 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2015-01-12 08:06:42 -0700 |
commit | 8374d6adc5c51ae188af61302cc5d4f87cb02adf (patch) | |
tree | ff980f01722b8ec873113206dec419ffa4546534 /db_test.go | |
parent | Merge pull request #281 from tgulacsi/master (diff) | |
download | dedo-8374d6adc5c51ae188af61302cc5d4f87cb02adf.tar.gz dedo-8374d6adc5c51ae188af61302cc5d4f87cb02adf.tar.xz |
Add check for max mmap size.
The max mmap size was previous unchecked which resulted in a panic once
the maximum size was reached. This commit adds a check for the max size
when re-mapping and returns an error if the new map will exceed the size.
Thanks to Tamás Gulácsi for testing out the change on i386.
Diffstat (limited to 'db_test.go')
0 files changed, 0 insertions, 0 deletions