Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Issue 2535203002: Fix memory leak in video_coding::PacketBuffer::InsertPacket. (Closed)

Created:
4 years ago by philipel
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix memory leak in video_coding::PacketBuffer::InsertPacket. BUG=webrtc:6788 Committed: https://crrev.com/759e0b7241edbaebf9a4506c32e82f25c8accf10 Cr-Commit-Position: refs/heads/master@{#15314}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed ownership #

Total comments: 2

Patch Set 3 : Comment fix. #

Total comments: 2

Patch Set 4 : Feedback fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -44 lines) Patch
M webrtc/modules/video_coding/packet_buffer.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/packet_buffer.cc View 1 2 3 3 chunks +20 lines, -10 lines 0 comments Download
M webrtc/modules/video_coding/rtp_frame_reference_finder_unittest.cc View 1 19 chunks +24 lines, -24 lines 0 comments Download
M webrtc/modules/video_coding/video_packet_buffer_unittest.cc View 1 4 chunks +28 lines, -6 lines 0 comments Download
M webrtc/video/rtp_stream_receiver.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (8 generated)
philipel
4 years ago (2016-11-29 11:41:33 UTC) #2
nisse-webrtc
https://codereview.webrtc.org/2535203002/diff/1/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2535203002/diff/1/webrtc/modules/video_coding/packet_buffer.cc#newcode74 webrtc/modules/video_coding/packet_buffer.cc:74: delete[] packet.dataPtr; Ownership looks a bit confused here. Argument ...
4 years ago (2016-11-29 11:59:30 UTC) #3
philipel
https://codereview.webrtc.org/2535203002/diff/1/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2535203002/diff/1/webrtc/modules/video_coding/packet_buffer.cc#newcode74 webrtc/modules/video_coding/packet_buffer.cc:74: delete[] packet.dataPtr; On 2016/11/29 11:59:30, nisse-webrtc wrote: > Ownership ...
4 years ago (2016-11-29 12:28:45 UTC) #4
nisse-webrtc
https://codereview.webrtc.org/2535203002/diff/20001/webrtc/modules/video_coding/packet_buffer.h File webrtc/modules/video_coding/packet_buffer.h (right): https://codereview.webrtc.org/2535203002/diff/20001/webrtc/modules/video_coding/packet_buffer.h#newcode53 webrtc/modules/video_coding/packet_buffer.h:53: virtual bool InsertPacket(VCMPacket* packet); Please comment on the ownership ...
4 years ago (2016-11-29 12:31:40 UTC) #5
philipel
https://codereview.webrtc.org/2535203002/diff/20001/webrtc/modules/video_coding/packet_buffer.h File webrtc/modules/video_coding/packet_buffer.h (right): https://codereview.webrtc.org/2535203002/diff/20001/webrtc/modules/video_coding/packet_buffer.h#newcode53 webrtc/modules/video_coding/packet_buffer.h:53: virtual bool InsertPacket(VCMPacket* packet); On 2016/11/29 12:31:40, nisse-webrtc wrote: ...
4 years ago (2016-11-29 12:40:23 UTC) #6
nisse-webrtc
https://codereview.webrtc.org/2535203002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2535203002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc#newcode74 webrtc/modules/video_coding/packet_buffer.cc:74: delete[] packet->dataPtr; To guard against accidental use-after-free or double ...
4 years ago (2016-11-29 13:01:49 UTC) #7
philipel
https://codereview.webrtc.org/2535203002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2535203002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc#newcode74 webrtc/modules/video_coding/packet_buffer.cc:74: delete[] packet->dataPtr; On 2016/11/29 13:01:49, nisse-webrtc wrote: > To ...
4 years ago (2016-11-29 13:23:18 UTC) #8
nisse-webrtc
lgtm I still don't quite like the InsertFrame interface, but it seems hard to make ...
4 years ago (2016-11-29 14:13:45 UTC) #9
stefan-webrtc
lgtm
4 years ago (2016-11-29 18:03:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2535203002/60001
4 years ago (2016-11-30 09:30:27 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-30 09:32:09 UTC) #18
commit-bot: I haz the power
4 years ago (2016-11-30 09:32:18 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/759e0b7241edbaebf9a4506c32e82f25c8accf10
Cr-Commit-Position: refs/heads/master@{#15314}

Powered by Google App Engine
This is Rietveld 408576698