Repository navigation
ci: run the real-file, CLI, contract and hardening checks on i686 with overflow checks on (#836) - #839
Merged
Conversation
DrunkOnJava
marked this pull request as ready for review
October 19, 2026 18:27
DrunkOnJava
force-pushed
the
ci/836-i686-overflow-checks
branch
from
October 19, 2026 18:27
f1c9032 to
8cfdc73
Compare
10 tasks done
This was referenced Oct 19, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 19, 2026
…ow one is checked, tagged and brought back to main (#853) ## Summary CI runs on pushes to `hotfix/**` branches, and RELEASE.md's hotfix process describes the path 0.6.1 is taking: a branch cut from the release tag, prepared and checked on the branch, tagged there, and brought back to `main` by a pull request. ## Motivation `main` holds a breaking change since #841, so the 0.6.1 patch (#839's 32-bit fix and README corrections, which crates.io and PyPI keep showing until a new version replaces them) is cut from `v0.6.0` on `hotfix/v0.6.1`. RELEASE.md's hotfix step 4 asked for CI, but `ci.yml` ran only on pushes to `main` and on pull requests into `main`, so nothing tested a hotfix branch: a pull request into `main` tests the merge with `main`, not what the tag would release. It also asked for a "regression test", against the repository's ban on unit tests, said nothing of the witness refresh or Measure, and said every release tag is on `main`. ## Changes - `.github/workflows/ci.yml`: `push` runs on `[main, "hotfix/**"]`. A branch push runs the full matrix `main` gets (macOS, Windows and MSRV builds, all three wheels); the rust-cache saves stay `main`-only, and the run cannot be cancelled by another (`cancel-in-progress` is for pull requests only). - `RELEASE.md`'s hotfix process, rewritten as the path 0.6.1 takes: - when it applies: a fix `main` cannot ship as a patch, including a published README that claims more than was measured; an embargoed security fix is prepared and reviewed in its advisory's temporary private fork and pushed here only when it is ready to release; - a branch from a tag before v0.6.1 commits the `hotfix/**` trigger first, since GitHub runs a push's workflows from the pushed branch; - the fix cherry-picked with `-x`, and a real-file, CLI or contract check where none fails without it, instead of a regression test (unit tests are banned); - steps 4 to 7 of the release on the branch, then **check it**: CI on the push, the Core Interior witness files from that run's artifact (every difference is `witness_version`, a verdict hash, or one the fix explains and the changelog states) and a second green run, and Measure against the tag it patches; - **review it**: a review-only pull request into a branch at that tag, since nothing else reviews the text the registries keep for good; a commit answering the review runs step 4 again on the new head; - **tag the reviewed head** by SHA once its code and witness files are the ones CI and Measure passed; - **bring `main` up to it** with `main`'s own witness refresh, then delete the branch (the tag keeps its commits). "What's in a release" says a hotfix tag is on its branch. - `.github/workflows/publish.yml`: the header comment names a hotfix branch's tag too. No behaviour change; the `crates-io` and `pypi` environments accept any `v*` tag. ## Testing The trigger is the one `hotfix/v0.6.1` carries (22f8f48 there). Pushing that branch ran CI [39326770821](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39326770821) on e857af4: 22 jobs, all passed, among them the i686 job and the macOS, Windows and MSRV builds that pull requests skip. A YAML load and `actionlint` pass on both workflows (its only notes are the existing `$/`-prefixed local references, which GitHub runs). - N/A: not a format, exporter or performance change ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - N/A: not a reverse-engineering finding ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) - [x] No new test fixtures ## Breaking changes None. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Changes are limited to CI triggers and release documentation; publish workflow behavior is unchanged. > > **Overview** > **Enables full CI on `hotfix/**` pushes** so patch releases cut from an old tag get the same test matrix as `main` (not a merge preview against current `main`). `ci.yml` adds `hotfix/**` to the `push` branch list with a short comment on why PRs into `main` are insufficient. > > **Documents an end-to-end hotfix release path in `RELEASE.md`**: when hotfixes apply (including README/registry text stuck until a new version), embargoed security handling, cherry-pick and non–unit-test checks, release prep on the branch, CI + Core Interior witness refresh + `measure.yml`, a review-only PR into a tag snapshot branch, tagging the reviewed SHA, then syncing `main` with its own witness updates. **What's in a release** now allows signed tags on a hotfix branch. > > **`publish.yml`** only updates header comments to note that `v*` tags on hotfix branches publish the same way as on `main` (workflow behavior unchanged). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8d51d9f. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
DrunkOnJava
added a commit
that referenced
this pull request
Oct 20, 2026
… and its README corrections (#855) ## Summary `main` takes what v0.6.1 shipped, as RELEASE.md's hotfix step 7 says, the way merging `hotfix/v0.6.1` back would: the version (0.6.1 in all nine places), the `[0.6.1]` changelog section, and the README's corrected support table and release section. v0.6.1 is the signed tag on ab8a778, cut from `v0.6.0` because `main` holds a breaking change (#841). ## Changes - Version files: `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=` pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff`, `.release-please-manifest.json` and both lockfiles' workspace entries, each line as the tag has it. - `CHANGELOG.md`: the `[0.6.1]` section, identical to the tag's; #839's two entries (the i686 job and the data-object scan) move out of `[Unreleased]` into it; the `[0.6.0]` intro and heading say `IsExternal` is written on every class but curtain mullions and panels, as the tag's do; the descriptions entry (#851) says 0.6.1's registry descriptions are 0.6.0's. - `README.md`: identical to the tag's README. `main`'s README had not changed since `v0.6.0`, so this is the support-table rows of #842 (2027 and 2015 partial, 2014 and earlier not measured, "no Revit export measured"), the IsExternal and comparator bullets, and the "Release 0.6.1 and main" section. - Core Interior witness observations and verdicts: from this pull request's own CI run, since `main`'s export differs from the tag's (step 7). The other latest-release statements (`docs/install.md`, `docs/status.md`, `docs/python.md`, `docs/supported-profile.md`, `ROADMAP.md`) move to 0.6.1 in #842 once each channel is checked. ## Testing This pull request's CI, and its witness replay after the refresh. The tag's own checks: CI 39326770821 and 39327613157 on the hotfix branch, Measure 39327047171 against `v0.6.0` (1,297 of 1,477 result files identical; the rest are the IFC hashes, which carry the version, export times, `witness_version`, and the run's commit and runner), and Codex's review of the release text in #854 (no findings on ab8a778). ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - N/A: not a reverse-engineering finding ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) - [x] No new test fixtures ## Breaking changes None. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > No application logic in the diff—version bumps, changelog/README alignment, and witness JSON updates only. > > **Overview** > **Aligns `main` with the published v0.6.1 hotfix** (per RELEASE.md): workspace and packaging versions move from **0.6.0 → 0.6.1** (`Cargo.toml`, `rvt-py`/`rvt-wasm` pins, lockfiles, `viewer/package.json`, `CITATION.cff`, release-please manifest). > > **Changelog and README** now match the tag: a new **`[0.6.1]`** section documents the 32-bit overflow hardening (#836), the required **i686 CI** job, and README support-table honesty; **`[Unreleased]`** drops those shipped items. Docs clarify **`IsExternal`** applies to every class **except** curtain mullions/panels, and tighten wording on which Revit years are measured vs merely opening. > > **Research witness artifacts** refresh `witness_version` to **0.6.1** and updated verdict hashes from this branch’s CI replay. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit f35ddad. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
DrunkOnJava
added a commit
that referenced
this pull request
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CI runs the real-file, CLI, contract and hardening checks, the fuzz regressions among them, on 32-bit i686 with overflow checks on, so a length that wraps on a 32-bit target panics in CI instead of passing a bounds check. Its first runs found two such wraps on every family release, fixed here. Closes #836.
Motivation
#835 found a parser panic only a 32-bit target can reach:
4 + char_count.saturating_mul(2)saturates tousize::MAXon wasm32, the addition wraps to 3 in a release build, the bounds check passes and&slice[4..3]panics. In the browser viewer, which runs on wasm32, that aborts the export. Every CI job, fuzz target and corpus run builds for 64 bits, where au32length times 2 cannot overflow, so nothing would catch the next one.Changes
.github/workflows/ci.yml: a new job, 32-bit overflow checks (i686), on ubuntu-24.04. It fetches the phi-ag/rvt family corpus (RVT_REQUIRE_CORPUS=1, as the Linux test job does), installs thei686-unknown-linux-gnutarget andgcc-multilib, and runstools/ci/verify-real-files.sh --profile ci --no-fail-fast --target i686-unknown-linux-gnuwithCARGO_PROFILE_CI_OVERFLOW_CHECKS=true. Theciprofile keeps its release optimisation, so the corpus checks run at the usual speed, and overflow checks make any wrap panic. It has its own rust-cache key (ci-i686, saved frommainonly), so the sharedci-releasecache is untouched.CI passedrequires it.src/partition_room_parameters.rs:data_objects, the one-pass data-object scan (B70), tries a header at every offset of a partition and added theu32size it reads there to the offset unchecked. On a 32-bit target a size near 4 GiB from arbitrary bytes wrapped the end around, and a wrapped end below 4 madeend - 4underflow and the next read panic: in the browser viewer, an aborted export. The addition is checked now, and an end pastusize::MAXis not a plausible object.src/partition_type_materials.rs:opens_unset_mapmultiplied a count read from arbitrary bytes by 12 before checking it against its 64-entry limit. Its range check came next, so release builds did not misread, but the product overflowed. The count is checked first.CHANGELOG.md:[Unreleased]entries for the job and both fixes.Testing
The job's own runs on this pull request are the test. Each builds the integration binary and the CLIs for i686 and runs the manifest's real-file, CLI, contract and hardening targets on the 11 family releases:
partition_room_parameters.rs:353, "attempt to add with overflow", in every test that exports a familypartition_type_materials.rs:258, "attempt to multiply with overflow"Neither fix can change a 64-bit export, where neither sum nor product can overflow, and the 64-bit jobs here are unchanged. The other multiplications and sums of file-read counts in
src/were read too: each is checked against a limit before it is used (a string's units, a list's entries, a map's count) or uses checked arithmetic.actionlintand a YAML load pass onci.yml(actionlint's only notes are the existing$/.github/actions/fetch-corpusreferences, which GitHub runs).Audit-honesty checklist
Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)Breaking changes
None. A pull request now also needs the i686 job to pass.