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

Revert change to Reassembler.Push from #116 #122

Merged
merged 3 commits into from
Aug 24, 2022

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Aug 24, 2022

Reassembler.Push has always made a copy of the provided byte slice.

In #116 it was modified to not copy the slice. But this was a breaking change
to its behavior and causes bugs for existing users. The typical use of this
function is to parse data from AuditClient.Receive which explicitly documents
that caller must make a copy of the data if they are going to retain it beyond
the next Receive call.

Relates #116

Reassembler.Push has always made a copy of the provided byte slice.

It elastic#116 it was modified to not copy the slice. But this was a breaking change
to its behavior and causes bugs for existing users. The typical use of this
function is to parse data from AuditClient.Receive which explicitly documents
that caller must make a copy of the data if they are going to retain it beyond
the next Receive call.

Relates elastic#116
@andrewkroh andrewkroh added the bug label Aug 24, 2022
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-24T19:27:53.753+0000

  • Duration: 2 min 9 sec

Test stats 🧪

Test Results
Failed 0
Passed 397
Skipped 40
Total 437

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
CHANGELOG.md Outdated Show resolved Hide resolved
@andrewkroh andrewkroh merged commit 737d92f into elastic:main Aug 24, 2022
renini pushed a commit to renini/go-libaudit that referenced this pull request Jun 26, 2024
Reassembler.Push has always made a copy of the provided byte slice.

It elastic#116 it was modified to not copy the slice. But this was a breaking change
to its behavior and causes bugs for existing users. The typical use of this
function is to parse data from AuditClient.Receive which explicitly documents
that caller must make a copy of the data if they are going to retain it beyond
the next Receive call.

Relates elastic#116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Security-External Integrations Label for the Security External Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants