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

Issue 2796673002: Fix crash in XServerPixelBuffer. (Closed)

Created:
3 years, 8 months ago by Sergey Ulanov
Modified:
3 years, 8 months ago
Reviewers:
GeorgeZ, Hzj_jie
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix crash in XServerPixelBuffer. XServerPixelBuffer contains x_image_ field, that may be allocated using XGetImage() or XShmCreateImage() depending how the last frame was captured. x_image_ is passed XShmGetImage(), which may crash if it gets image allocated with XGetImage(). Added x_shm_image_ to ensure that SHM and non-SHM capture paths are separate and XShmGetImage() is allways called with the correct XImage. The linked bug appears to be a regressiona after https://codereview.webrtc.org/2044693002 BUG=chromium:697823 Review-Url: https://codereview.webrtc.org/2796673002 Cr-Commit-Position: refs/heads/master@{#17518} Committed: https://chromium.googlesource.com/external/webrtc/+/0786c04f972cd15f5dfb2e5882aba5c6efb214e3

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -94 lines) Patch
M webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h View 1 chunk +1 line, -9 lines 0 comments Download
M webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc View 8 chunks +96 lines, -85 lines 1 comment Download

Messages

Total messages: 13 (4 generated)
Sergey Ulanov
3 years, 8 months ago (2017-04-03 18:14:19 UTC) #2
Hzj_jie
The change itself has clearly done what mentioned in the description. But I think the ...
3 years, 8 months ago (2017-04-03 18:43:19 UTC) #3
Sergey Ulanov
On 2017/04/03 18:43:19, Hzj_jie wrote: > The change itself has clearly done what mentioned in ...
3 years, 8 months ago (2017-04-03 18:54:21 UTC) #4
Hzj_jie
On 2017/04/03 18:54:21, Sergey Ulanov wrote: > On 2017/04/03 18:43:19, Hzj_jie wrote: > > The ...
3 years, 8 months ago (2017-04-03 18:58:39 UTC) #5
GeorgeZ
lgtm LGTM with a nit. https://codereview.webrtc.org/2796673002/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc File webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc (right): https://codereview.webrtc.org/2796673002/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc#newcode61 webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc:61: // In FastBlit(), the ...
3 years, 8 months ago (2017-04-03 18:59:58 UTC) #6
Sergey Ulanov
On 2017/04/03 18:58:39, Hzj_jie wrote: > On 2017/04/03 18:54:21, Sergey Ulanov wrote: > > On ...
3 years, 8 months ago (2017-04-03 23:28:23 UTC) #7
Hzj_jie
On 2017/04/03 23:28:23, Sergey Ulanov wrote: > On 2017/04/03 18:58:39, Hzj_jie wrote: > > On ...
3 years, 8 months ago (2017-04-04 00:07:48 UTC) #8
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/2796673002/1
3 years, 8 months ago (2017-04-04 00:22:20 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 01:08:12 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/0786c04f972cd15f5dfb2e588...

Powered by Google App Engine
This is Rietveld 408576698