Skip to content

EDGEML-15209: relax xclbin m_length check to tolerate legacy files - #10135

Open
stsoe wants to merge 1 commit into
Xilinx:masterfrom
stsoe:edgeml-15209
Open

stsoe wants to merge 1 commit into
Xilinx:masterfrom
stsoe:edgeml-15209

Conversation

@stsoe

@stsoe stsoe commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Problem solved by the commit

Accept xclbins where m_header.m_length does not exactly match the buffer size; only reject when the buffer is smaller than m_length declares, which would risk out-of-bounds access. Downstream bounds checks (section header array and per-section offset/size) use the actual buffer size and remain the true safety net.

@stsoe
stsoe requested review from maxzhen and sonals October 23, 2026 21:28
Accept xclbins where m_header.m_length does not exactly match the
buffer size; only reject when the buffer is smaller than m_length
declares, which would risk out-of-bounds access.  Downstream bounds
checks (section header array and per-section offset/size) use the
actual buffer size and remain the true safety net.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant