Skip to content

Fix heap buffer overflow in H5VM_array_fill()#6513

Draft
jhendersonHDF wants to merge 1 commit into
HDFGroup:developfrom
jhendersonHDF:H5VM_array_fill_overflow
Draft

Fix heap buffer overflow in H5VM_array_fill()#6513
jhendersonHDF wants to merge 1 commit into
HDFGroup:developfrom
jhendersonHDF:H5VM_array_fill_overflow

Conversation

@jhendersonHDF

Copy link
Copy Markdown
Collaborator

Fixes a heap buffer overflow that occurs due to a decoded fill value message's size not matching the size of the fill value's datatype. This results in a buffer being allocated with an incorrect size that is later overflowed when reading the fill value for chunks that haven't been allocated yet. Similar logic existed for decoding 'old' format fill value messages, but was not added for decoding 'new' format fill value messages.

@jhendersonHDF jhendersonHDF added the Component - C Library Core C library issues (usually in the src directory) label Jul 8, 2026
@github-project-automation github-project-automation Bot moved this to To be triaged in HDF5 - TRIAGE & TRACK Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 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.

  • src

Fixes a heap buffer overflow that occurs due to a decoded fill value
message's size not matching the size of the fill value's datatype.
This results in a buffer being allocated with an incorrect size that
is later overflowed when reading the fill value for chunks that haven't
been allocated yet. Similar logic existed for decoding 'old' format
fill value messages, but was not added for decoding 'new' format fill
value messages
@jhendersonHDF jhendersonHDF force-pushed the H5VM_array_fill_overflow branch from 39e9f35 to f6d805d Compare July 8, 2026 20:00
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)

Projects

Status: To be triaged

Development

Successfully merging this pull request may close these issues.

1 participant