Skip to content

fix: out-of-bounds access in audioFillBuffer#1302

Open
markreidvfx wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
markreidvfx:nas_contrib_audio_oob_fix_v1
Open

fix: out-of-bounds access in audioFillBuffer#1302
markreidvfx wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
markreidvfx:nas_contrib_audio_oob_fix_v1

Conversation

@markreidvfx

Copy link
Copy Markdown
Contributor

Linked issues

N/A

Summarize your change.

Fix an out-of-bounds array access in SequenceIPNode::audioFillBuffer when sourceIndex is invalid. Instead of accessing the audio sources array with a bad index, insert silence.

Describe the reason for the change.

Identified by AddressSanitizer. SequenceIPNode::audioFillBuffer can access m_rangeInfos and inputs() out of bounds when sourceIndex is invalid. The fix validates the index before use and inserts silence for invalid sources instead of crashing.

Describe what you have tested and on which operating system.

Tested on Rocky Linux 9.

Add a list of changes, and note any that might need special attention during the review.

  • SequenceIPNode.cpp: Add bounds check for sourceIndex in audioFillBuffer; insert silence when the index is invalid.

If possible, provide screenshots.

N/A

Insert silence when sourceIndex is invalid instead of accessing the
audio sources array out of bounds.

Signed-off-by: Mark Reid <markreid@netflixanimation.com>
@markreidvfx markreidvfx force-pushed the nas_contrib_audio_oob_fix_v1 branch from 79790d3 to 9f72f4f Compare June 10, 2026 06:06
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.

1 participant