Skip to content

Fix uninitialized pointer read in H5Pget_fapl_ros3_token() - #6761

Open
ajelenak wants to merge 4 commits into
HDFGroup:developfrom
ajelenak:fix-ros3-token-getter
Open

ajelenak wants to merge 4 commits into
HDFGroup:developfrom
ajelenak:fix-ros3-token-getter

Conversation

@ajelenak

Copy link
Copy Markdown
Contributor

The function declared its source pointer without an initializer and assigned it only when the property list carried a session token, but dereferenced it unconditionally. It now matches
H5Pget_fapl_ros3_endpoint(), zeroing the destination buffer when no token is set.

Adds a regression test that needs no network, and registers the ROS3 test programs with ctest when the s3proxy fixture is disabled so that they run in an ordinary build.

Fixes #6757.

The function declared its source pointer without an initializer and
assigned it only when the property list carried a session token, but
dereferenced it unconditionally. It now matches
H5Pget_fapl_ros3_endpoint(), zeroing the destination buffer when no token
is set.

Adds a regression test
that needs no network, and registers the ROS3 test programs with ctest when the s3proxy fixture is disabled so that they run in an ordinary build.
@github-project-automation github-project-automation Bot moved this to To be triaged in HDF5 - TRIAGE & TRACK Oct 20, 2026
@ajelenak ajelenak moved this from To be triaged to In progress in HDF5 - TRIAGE & TRACK Oct 20, 2026
@ajelenak ajelenak added Component - C Library Core C library issues (usually in the src directory) HDFG_Internal_161 Internally coded for use by the HDF Group labels Oct 20, 2026
@github-actions
github-actions Bot removed the request for review from mattjala October 20, 2026 21:17
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Checklist

This PR touches the following areas. Each needs a sign-off
from its listed owners before merging.

@ajelenak ajelenak added this to the HDF5 2.x.x milestone Oct 20, 2026
@github-actions
github-actions Bot removed the request for review from lrknox October 20, 2026 21:21
"small" means "char" on Windows apparently. 🤷‍♂️
@github-actions
github-actions Bot removed the request for review from jhendersonHDF October 21, 2026 00:47
Comment thread test/CMakeTests.cmake Outdated
endif ()
endforeach ()
else ()
# Without the s3proxy fixture there is no a server for the networked S3 tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the s3proxy fixture -> Without the s3proxy fixture,
there is no a server -> there is no server

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component - C Library Core C library issues (usually in the src directory) HDFG_Internal_161 Internally coded for use by the HDF Group

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

H5Pget_fapl_ros3_token() reads an uninitialized pointer when no token is set

3 participants