Skip to content

Report the HTML binary payload size limit - #52

Merged
mahach666 merged 1 commit into
mainfrom
codex/check-binary-payload-size
Nov 18, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/check-binary-payload-size

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Closes #10.

Check the aligned byte count in 64 bits before growing the HTML BIN buffer. Report the required byte count and the .NET byte array limit in InvalidDataException. Check the byte span size before geometry hashing as well.

Verification

  • Release build and 141 tests passed on each of .NET 8 and .NET 10, including the RVT integration test.
  • Boundary tests cover alignment and lengths above Int32 without a multi-gigabyte allocation.
  • Compared the binary blocks and geometry metadata on racbasicsampleproject.rvt and Schependomlaan.ifc. Both opened offline in Chromium. The direct IFC input also produced the same binary block.

@mahach666
mahach666 merged commit 15273b3 into main Nov 18, 2026
5 checks passed
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.

Exporter: clear error instead of OutOfMemoryException when the binary block exceeds 2 GB

1 participant