Skip to content

Fix ISO 10303-21 \S\ page encoding when followed by an apostrophe character#1996

Open
thbeu wants to merge 1 commit into
ThatOpen:mainfrom
thbeu:fix-parser
Open

Fix ISO 10303-21 \S\ page encoding when followed by an apostrophe character#1996
thbeu wants to merge 1 commit into
ThatOpen:mainfrom
thbeu:fix-parser

Conversation

@thbeu
Copy link
Copy Markdown
Contributor

@thbeu thbeu commented May 19, 2026

This fixes loading of https://github.com/IfcOpenShell/step-file-parser/blob/master/fixtures/pass_page_encoding.ifc.

The string 'abc\S\'def' caused the tokenizer to prematurely terminate the string at the ' after \S\, corrupting the token stream and leading to an access violation during geometry processing. Fixed by detecting the \S\ escape pattern before treating an apostrophe as a string terminator.

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