Repository navigation
fix(tables): a UCS record ends after its Y axis on R13/R14 (§20.4.62, #274) - #289
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
On R13/R14 a UCS record ends after its Y axis, as §20.4.62 gives it: elevation and the orthographic fields are R2000+ only. The decoder read them on R14 and failed on the record's handle bytes (
UCS ortho_view_type 29456 outside 0..=6). Closes #274.Spec reference
ODA spec v5.4.1 §20.4.62 UCS (63), p170-171: common
Entry name TV,64-flag B,xrefindex+1 BS,Xdep B,Origin 3BD,X-direction 3BD,Y-direction 3BD; R2000+ onlyElevation BD 146,OrthographicViewType BS 79,OrthographicType BS 71.Evidence
RLboundary of its common object data.cargo run --release --example spec_examplesgivesOK: 417 checks;--updatemoved its row fromerror #274tocloses.tools/corpus/baseline.tsvare unchanged.Left alone here, because nothing measures it: on R2000/R2004 the decoder reads the base-UCS handle inline and skips
OrthographicType, both against §20.4.62's text. That is #285 (blocked:sample). No test is changed or added.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningscargo test --release --all-featurescargo run --release --example spec_examples(OK, 417 checks)Source-provenance declaration
By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:
CLEANROOM.md).dwg-rsis Apache-2.0 and must remain compatible.My contribution is based on the ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1), §20.4.62 and its example. No other source was read.
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the
Developer Certificate of Origin 1.1.
Specifically, I affirm that the contribution is my own work (or rightfully
licensed to me) and that it can be distributed under the project's Apache-2.0
license.