Revert "dcsctp: Use rtc::CopyOnWriteBuffer"
This reverts commit 2db59a6584eca54245794a0e657ca9ded9e6707f. Reason for revert: Causes msan-issue in crc32c, reading uninitialized memory. Bug: webrtc:12943, chromium:1275559 Change-Id: I05f1012d896aeaca86c4562e0df15fa7ea326d60 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/239560 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Victor Boivie <boivie@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35461}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
4ad09762da
commit
4b7024b572
@ -977,7 +977,7 @@ void DcSctpSocket::HandleDataCommon(AnyDataChunk& chunk) {
|
||||
AnyDataChunk::ImmediateAckFlag immediate_ack = chunk.options().immediate_ack;
|
||||
Data data = std::move(chunk).extract();
|
||||
|
||||
if (data.payload.size() == 0) {
|
||||
if (data.payload.empty()) {
|
||||
// Empty DATA chunks are illegal.
|
||||
packet_sender_.Send(tcb_->PacketBuilder().Add(
|
||||
ErrorChunk(Parameters::Builder().Add(NoUserDataCause(tsn)).Build())));
|
||||
|
||||
Reference in New Issue
Block a user