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 ptr fix #23

Merged
merged 2 commits into from
Feb 3, 2025
Merged

null ptr fix #23

merged 2 commits into from
Feb 3, 2025

Conversation

Jo-stfc
Copy link

@Jo-stfc Jo-stfc commented Feb 3, 2025

No description provided.

bbockelm and others added 2 commits February 2, 2025 17:04
When looking up the map of active files, the returned value is a
a `nullptr` if the file-open is ongoing.  Check for this case and
only try to use the file object if it is non-null.

Without this check, the XrdPfc module will trigger a segfault when
trying to increase the reference count for a null object.

The places affected by the nullptr already have appropriate fallback
code in place if the filename isn't on the active list at all -- we
now use that code instead of crashing.
@Jo-stfc Jo-stfc merged commit ffed5a7 into v5.7.3patched Feb 3, 2025
11 checks passed
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