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

Fix incorrectly rejected blocks #569

Merged
merged 4 commits into from Apr 25, 2022
Merged

Fix incorrectly rejected blocks #569

merged 4 commits into from Apr 25, 2022

Conversation

klauspost
Copy link
Owner

Assembly would reject blocks if an exact buffer was provided and no extra literals.

        --- FAIL: TestEncoderRegression/best-c2-w16384k-1seg/054917b2373a9ca83257108e02e9c356e49d126f (0.02s)
            encoder_test.go:257: error: output (40533) bigger than max block size (131072)
                want: 829232
                got:  786432

Assembly would reject blocks if an exact buffer was provided and no extra literals.

```
        --- FAIL: TestEncoderRegression/best-c2-w16384k-1seg/054917b2373a9ca83257108e02e9c356e49d126f (0.02s)
            encoder_test.go:257: error: output (40533) bigger than max block size (131072)
                want: 829232
                got:  786432
```
@@ -1913,6 +1913,7 @@ error_not_enough_space:
MOVQ CX, 208(AX)
MOVQ 16(SP), CX
MOVQ CX, 216(AX)
MOVQ R12, 136(AX)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These showed up after re-regenerating.

@klauspost klauspost merged commit abf5559 into master Apr 25, 2022
@klauspost klauspost deleted the zstd-fix-bounds-blocks branch April 25, 2022 12:40
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.

None yet

1 participant