Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canary: remove lower bound limit on length #87

Merged
merged 1 commit into from
Jun 17, 2019
Merged

canary: remove lower bound limit on length #87

merged 1 commit into from
Jun 17, 2019

Conversation

awnumar
Copy link
Owner

@awnumar awnumar commented Jun 17, 2019

In reference to the patch in #86, the actual issue is deeper. When we set a lower limit to the length of the canary, you need more than a single page to store the reference. It's not clean. The solution in this PR is to remove the lower limit so the canary can grow from length zero (when len(data) equals the page size) up to one less than the page size (when len(data) equals 1).

When the canary has a length of zero, this is fine as the data is up against the lower guard page. Otherwise, with some values, the canary will be small but this is a reasonable trade-off.

@awnumar awnumar merged commit 4b075c2 into master Jun 17, 2019
@awnumar awnumar deleted the pages branch June 17, 2019 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant