Skip to content

Commit

Permalink
Merge v0.13.1 from development into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Awn authored Oct 23, 2017
2 parents 72702e6 + bbea25a commit 6844db0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ The releases are cryptographically signed with my PGP key, which can be found on
```
$ curl https://keybase.io/awn/pgp_keys.asc | gpg --import
```

We **strongly** encourage you to vendor your dependencies for a clean and reliable build. [Glide](http://glide.sh/) makes this task relatively frictionless.
4 changes: 2 additions & 2 deletions memguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (b *container) MakeImmutable() error {

if b.mutable {
// Mark the memory as mutable.
memcall.Protect(getAllMemory(b)[pageSize:pageSize+roundToPageSize(b.Size()+32)], true, false)
memcall.Protect(getAllMemory(b)[pageSize:pageSize+roundToPageSize(len(b.buffer)+32)], true, false)

// Tell everyone about the change we made.
b.mutable = false
Expand All @@ -211,7 +211,7 @@ func (b *container) MakeMutable() error {

if !b.mutable {
// Mark the memory as mutable.
memcall.Protect(getAllMemory(b)[pageSize:pageSize+roundToPageSize(b.Size()+32)], true, true)
memcall.Protect(getAllMemory(b)[pageSize:pageSize+roundToPageSize(len(b.buffer)+32)], true, true)

// Tell everyone about the change we made.
b.mutable = true
Expand Down

0 comments on commit 6844db0

Please sign in to comment.