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

use raw pointer to uint8_t memory instead of custom "portable" string… #21

Merged

Conversation

pwinter1991
Copy link
Contributor

Related to flutter-webrtc/flutter-webrtc#908 the current implementation does not handle binary data correctly if it contains zero or "null" bytes as the string class that is used in the interface doesn't care for this type of data and shouldn't care for that.

I replaced the interface with a raw pointer instead of e.g. a std::vector<uint8_t> to avoid dll boundary issues.

… class that corrupts zero bytes in binary data.
pwinter1991 pushed a commit to pwinter1991/flutter-webrtc that referenced this pull request May 5, 2022
…nt between binary or text data also the portable string class introduced corruption if used with binary data containing zero bytes. Updated library see github.com/webrtc-sdk/libwebrtc/pull/21
@cloudwebrtc
Copy link
Member

LGTM

@cloudwebrtc cloudwebrtc merged commit 851b1af into webrtc-sdk:master May 16, 2022
cloudwebrtc pushed a commit to flutter-webrtc/flutter-webrtc that referenced this pull request May 16, 2022
…nt between binary or text data also the portable string class introduced corruption if used with binary data containing zero bytes. Updated library see github.com/webrtc-sdk/libwebrtc/pull/21 (#935)

Co-authored-by: Patrick Winter <patrick.winter@zuehlke.com>
hieplee2997 pushed a commit to hieplee2997/flutter-webrtc that referenced this pull request Jun 2, 2022
…nt between binary or text data also the portable string class introduced corruption if used with binary data containing zero bytes. Updated library see github.com/webrtc-sdk/libwebrtc/pull/21 (flutter-webrtc#935)

Co-authored-by: Patrick Winter <patrick.winter@zuehlke.com>
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