Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLYLoader: Fix handling binary files with \n\r line endings in header. #26232

Merged
merged 6 commits into from Jun 12, 2023

Conversation

aardgoose
Copy link
Contributor

@aardgoose aardgoose commented Jun 10, 2023

Fixed #26229

Header length calculations were carried out after \n characters were removed from the header text hence the file offset for reading binary data was incorrect.

Detect type of line ending for first line, and get header length in extractHeaderText() function instead of in parseHeader().
The header length is only required in binary format files.

@Mugen87 Mugen87 changed the title PlyLoader: fix handling binary files with \n\r line endings in header. PLYLoader: Fix handling binary files with \n\r line endings in header. Jun 12, 2023
@Mugen87 Mugen87 added this to the r154 milestone Jun 12, 2023
GitHubDragonFly added a commit to GitHubDragonFly/GitHubDragonFly.github.io that referenced this pull request Jun 12, 2023
- It includes all updates as well as mrdoob/three.js#26232
@Mugen87 Mugen87 merged commit f71e2ee into mrdoob:dev Jun 12, 2023
18 checks passed
@aardgoose aardgoose deleted the ply-fix-tentative branch July 5, 2023 07:55
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.

PLYLoader : RangeError: Offset is outside the bounds of the DataView
2 participants