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

Fix the size formula for an allocation #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

musicinmybrain
Copy link

Fixes #304 by adding one byte to the allocated size, based on the rationale offered by Jerry James, @jamesjer, in #304.

In addition, a new local variable is introduced for the size in question to reduce repetition.


I tested this with -D_FORTIFY_SOURCE=3 and confirmed that the tests pass.

Fixes linbox-team#304 by adding one byte to the allocated size, based on the
rationale offered by Jerry James, @jamesjer, in
linbox-team#304.

In addition, a new local variable is introduced for the size in question
to reduce repetition.
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.

crashes in test-{smith-form-valence,regression} compiling with -D_FORTIFY_SOURCE=3
1 participant