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

Allow partial chunk tables #1653

Merged
merged 4 commits into from
Mar 2, 2024
Merged

Conversation

kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Mar 2, 2024

This fixes #1642, re-enabling partial chunk table reconstruction and processing.

kdt3rd added 2 commits March 2, 2024 13:30
Signed-off-by: Kimball Thurston <[email protected]>
This will fix AcademySoftwareFoundation#1642, re-enabling partial chunk tables during
reconstruction (at least for the last part read). Correctly handles
reconstructing tables where discovered tiles are shifted from expected
indices

Signed-off-by: Kimball Thurston <[email protected]>
@lgritz
Copy link
Contributor

lgritz commented Mar 2, 2024

Should we be worried about the fuzz test fail?

@kdt3rd
Copy link
Contributor Author

kdt3rd commented Mar 2, 2024

Should we be worried about the fuzz test fail?

oh, probably. it is failing square in where I was changing behaviour, but is not part of the standard tests...

kdt3rd added 2 commits March 2, 2024 15:02
When reconstructing chunk table with corrupt chunks, avoid writing out
of bounds

Signed-off-by: Kimball Thurston <[email protected]>
unaligned reads are UB, use (__builtin_) memcpy

Signed-off-by: Kimball Thurston <[email protected]>
@kdt3rd kdt3rd merged commit 4037406 into AcademySoftwareFoundation:main Mar 2, 2024
27 checks passed
@kdt3rd kdt3rd deleted the fix_1642 branch March 2, 2024 02:51
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Mar 3, 2024
* fix sporadic UB in dwa

Signed-off-by: Kimball Thurston <[email protected]>

* Allow partial chunk tables

This will fix AcademySoftwareFoundation#1642, re-enabling partial chunk tables during
reconstruction (at least for the last part read). Correctly handles
reconstructing tables where discovered tiles are shifted from expected
indices

Signed-off-by: Kimball Thurston <[email protected]>

* Avoid OOB write

When reconstructing chunk table with corrupt chunks, avoid writing out
of bounds

Signed-off-by: Kimball Thurston <[email protected]>

* avoid undefined behavior

unaligned reads are UB, use (__builtin_) memcpy

Signed-off-by: Kimball Thurston <[email protected]>

---------

Signed-off-by: Kimball Thurston <[email protected]>
cary-ilm pushed a commit that referenced this pull request Mar 4, 2024
* fix sporadic UB in dwa

Signed-off-by: Kimball Thurston <[email protected]>

* Allow partial chunk tables

This will fix #1642, re-enabling partial chunk tables during
reconstruction (at least for the last part read). Correctly handles
reconstructing tables where discovered tiles are shifted from expected
indices

Signed-off-by: Kimball Thurston <[email protected]>

* Avoid OOB write

When reconstructing chunk table with corrupt chunks, avoid writing out
of bounds

Signed-off-by: Kimball Thurston <[email protected]>

* avoid undefined behavior

unaligned reads are UB, use (__builtin_) memcpy

Signed-off-by: Kimball Thurston <[email protected]>

---------

Signed-off-by: Kimball Thurston <[email protected]>
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.

PR 1634 broke bad tile error detection
2 participants