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

[XrdMacaroons] Fix default for macaroons.onmissing #945

Merged
merged 3 commits into from
Mar 26, 2019

Conversation

bbockelm
Copy link
Contributor

When testing 4.9.1-rc1, @jthiltges reported that macaroons.onmissing had undefined behavior if it was not set in the configuration file (unfortunately, the undefined behavior for my test platforms was the same as the expected behavior ... but not in production!).

Since I was hitting the codebase with valgrind, this PR also fixes two minor memory leaks and one uninitialized read.

@simonmichal - please backport for 4.9.1 final!

Without this, if the `onmissing` parameter is not set, it results
in undefined behavior.  Works on developer testbeds, blows up
in production.

Issue originally reported by John Thiltges.
This commit prevents a potential read of uninitialized bytes
(not triggered under normal circumstances but flagged by valgrind)
and ensures that we free the resulting JSON object.
@bbockelm bbockelm mentioned this pull request Mar 26, 2019
@ffurano ffurano merged commit 8902481 into xrootd:master Mar 26, 2019
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

2 participants