Skip to content

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

Merged
stsoe merged 1 commit into
Xilinx:masterfrom
stsoe:edgeml-15209
Oct 26, 2026
Merged

stsoe merged 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.

@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! 👍"

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! 👍"

@stsoe
stsoe merged commit de2868f into Xilinx:master Oct 26, 2026
26 checks passed
@stsoe
stsoe deleted the edgeml-15209 branch October 26, 2026 20:52
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