Skip to content

Comments

zstd: Disable extended memory copies (amd64)#644

Merged
klauspost merged 1 commit intomasterfrom
zstd-add-go-fuzz-tests
Jul 17, 2022
Merged

zstd: Disable extended memory copies (amd64)#644
klauspost merged 1 commit intomasterfrom
zstd-add-go-fuzz-tests

Conversation

@klauspost
Copy link
Owner

Using longer memory copies leads to rare, random crashes with fuzz testing.

It is therefore disabled for now.

Using longer memory copies leads to rare, random crashes with fuzz testing.

It is therefore disabled for now.
@klauspost klauspost requested a review from WojciechMula July 17, 2022 09:49
@klauspost klauspost merged commit 03c136c into master Jul 17, 2022
@klauspost klauspost deleted the zstd-add-go-fuzz-tests branch July 17, 2022 10:27
@WojciechMula
Copy link
Contributor

BTW, do you think it would be easy to overallocate buffers? I mean make sure we have always a few spare bytes to always use the fast copy routine.

@klauspost
Copy link
Owner Author

@WojciechMula #645 may be the real crash. We don't control all allocs, and if a destination buffer is provided we don't really want to reallocate just to have a few extra bytes.

For now WithLowMem(false) will use faster path most of the time.

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.

2 participants