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

Issue 2809193002: Fix crash in release mode of payment manifest parser. (Closed)

Created:
3 years, 8 months ago by please use gerrit instead
Modified:
3 years, 8 months ago
Reviewers:
Mathieu
CC:
kravula, zkoch1, gogerald1, Ted C
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash in release mode of payment manifest parser. Before this patch, the payment manifest parser was populating array elements only in debug mode via DCHECK(addItemToArray()), which caused a crash in release mode. The fix is to save a "success" boolean on stack and DCHECK(success) later. After this patch, the release mode is not crashing. In addition, this patch contains the following minor fixes: 1) Match variable names across JNI boundary. 2) Add an assert for null web app manifest uri, because that should not happen. 3) Ensure that payment manifest parser host always invokes all callbacks. BUG=683329, 710433 Review-Url: https://codereview.chromium.org/2809193002 Cr-Commit-Position: refs/heads/master@{#463720} Committed: https://chromium.googlesource.com/chromium/src/+/75be1dd2e3cfbb4f04284246d44328295229d031

Patch Set 1 #

Patch Set 2 : Fix crash. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java View 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/content/android/java/src/org/chromium/components/payments/PaymentManifestDownloader.java View 1 chunk +1 line, -1 line 0 comments Download
M components/payments/content/android/payment_manifest_parser_android.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/payments/content/payment_manifest_parser_host.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
please use gerrit instead
Hey all, These are speculative fixes to address a crash that's confusing the heck out ...
3 years, 8 months ago (2017-04-11 16:56:23 UTC) #4
Ted C
On 2017/04/11 16:56:23, ಠ_ಠ wrote: > Hey all, > > These are speculative fixes to ...
3 years, 8 months ago (2017-04-11 17:23:07 UTC) #5
please use gerrit instead
Mathieu, ptal patch 2.
3 years, 8 months ago (2017-04-11 17:57:58 UTC) #11
Mathieu
lgtm, thanks for the good description
3 years, 8 months ago (2017-04-11 17:59:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2809193002/20001
3 years, 8 months ago (2017-04-11 18:01:03 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 19:24:29 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/75be1dd2e3cfbb4f04284246d443...

Powered by Google App Engine
This is Rietveld 408576698