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

Issue 1037023002: Do not free pointer when you are going to use it (Closed)

Created:
5 years, 9 months ago by gburanov
Modified:
5 years, 8 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, erikwright+watch_chromium.org, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

small patch that fixes potential crash in xdg_mime_get_mime_type_for_file() - use of pointer after being freed. BUG= Committed: https://crrev.com/c432cac0a0beb77c63081536fc9d53b40e642cbf Cr-Commit-Position: refs/heads/master@{#326352}

Patch Set 1 #

Patch Set 2 : do not free pointer when you are going to use it after #

Patch Set 3 : Fixed typo #

Patch Set 4 : Added patch and modified README #

Total comments: 2

Patch Set 5 : Code according to suggestions #

Total comments: 5

Patch Set 6 : Removed long lines and brackets #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -6 lines) Patch
M base/third_party/xdg_mime/README.chromium View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
A base/third_party/xdg_mime/free_pointer_later.patch View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M base/third_party/xdg_mime/xdgmime.c View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
gburanov
5 years, 9 months ago (2015-03-26 22:09:32 UTC) #1
danakj
-danakj +thestig
5 years, 8 months ago (2015-04-08 16:59:50 UTC) #5
gburanov
On 2015/04/08 16:59:50, danakj wrote: > -danakj +thestig I have created a bug for original ...
5 years, 8 months ago (2015-04-08 17:18:55 UTC) #6
Lei Zhang
You are welcome to fix the bug, but it has no real effect because Chromium ...
5 years, 8 months ago (2015-04-08 19:21:01 UTC) #7
Lei Zhang
Also, there's a typo in the CL description.
5 years, 8 months ago (2015-04-08 19:21:16 UTC) #8
gburanov
On 2015/04/08 19:21:16, Lei Zhang (slow to respond) wrote: > Also, there's a typo in ...
5 years, 8 months ago (2015-04-15 16:17:54 UTC) #11
Lei Zhang
https://codereview.chromium.org/1037023002/diff/60001/base/third_party/xdg_mime/README.chromium File base/third_party/xdg_mime/README.chromium (right): https://codereview.chromium.org/1037023002/diff/60001/base/third_party/xdg_mime/README.chromium#newcode11 base/third_party/xdg_mime/README.chromium:11: - free_pointer_later.patch: small patch that fixes potential crash - ...
5 years, 8 months ago (2015-04-16 18:31:35 UTC) #12
gburanov
Added all fixes according to suggestions https://codereview.chromium.org/1037023002/diff/80001/base/third_party/xdg_mime/README.chromium File base/third_party/xdg_mime/README.chromium (right): https://codereview.chromium.org/1037023002/diff/80001/base/third_party/xdg_mime/README.chromium#newcode10 base/third_party/xdg_mime/README.chromium:10: - compile.patch: small ...
5 years, 8 months ago (2015-04-20 09:50:07 UTC) #13
Lei Zhang
- The file "free_poiner_later.patch" has a typo in the name. - Please write a more ...
5 years, 8 months ago (2015-04-20 19:14:02 UTC) #15
gburanov
https://codereview.chromium.org/1037023002/diff/80001/base/third_party/xdg_mime/README.chromium File base/third_party/xdg_mime/README.chromium (right): https://codereview.chromium.org/1037023002/diff/80001/base/third_party/xdg_mime/README.chromium#newcode11 base/third_party/xdg_mime/README.chromium:11: - free_pointer_later.patch: small patch that fixes potential crash - ...
5 years, 8 months ago (2015-04-22 14:21:56 UTC) #16
Lei Zhang
lgtm
5 years, 8 months ago (2015-04-22 17:30:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1037023002/100001
5 years, 8 months ago (2015-04-22 17:42:14 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-04-22 19:07:01 UTC) #20
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 19:08:03 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c432cac0a0beb77c63081536fc9d53b40e642cbf
Cr-Commit-Position: refs/heads/master@{#326352}

Powered by Google App Engine
This is Rietveld 408576698