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

Null terminate envar result, and don't lose track of malloc #248

Merged
merged 1 commit into from
Oct 5, 2016
Merged

Null terminate envar result, and don't lose track of malloc #248

merged 1 commit into from
Oct 5, 2016

Conversation

DrDaveD
Copy link
Collaborator

@DrDaveD DrDaveD commented Oct 5, 2016

When passing a -B on to a singularity exec with -C and without without -W, I was getting fatal errors that it was trying to bind something that didn't exist. I tracked it down to a missing null terminator in the envar function. This pull request fixes the problem. While there I noticed it was also possible for the function to malloc some space and lose track of it.

@gmkurtzer gmkurtzer merged commit 2cfa300 into apptainer:master Oct 5, 2016
@gmkurtzer
Copy link
Contributor

Looks good, thank you!

@DrDaveD DrDaveD deleted the envar_null branch September 5, 2017 16:50
DrDaveD pushed a commit to DrDaveD/singularity that referenced this pull request Aug 25, 2021
The Sylabs lolcow image has been modified so that it no longer uses
`fortune`, which produced offensive output. Ensure all references to a
lolcow image are to the fixed Sylabs version.

Fixes apptainer#248
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.

2 participants