Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brave Ads crash when loading an ad resource with invalid JSON #15623

Closed
tmancey opened this issue May 4, 2021 · 1 comment · Fixed by brave/brave-core#12122
Closed

Brave Ads crash when loading an ad resource with invalid JSON #15623

tmancey opened this issue May 4, 2021 · 1 comment · Fixed by brave/brave-core#12122
Assignees
Labels

Comments

@tmancey
Copy link
Contributor

tmancey commented May 4, 2021

Screen Shot 2021-05-04 at 11 53 17 AM

@tmancey tmancey added crash priority/P3 The next thing for us to work on. It'll ride the trains. QA/Yes release-notes/exclude feature/ads OS/Desktop labels May 4, 2021
@tmancey tmancey added priority/P2 A bad problem. We might uplift this to the next planned release. and removed priority/P3 The next thing for us to work on. It'll ride the trains. labels May 14, 2021
@tmancey tmancey added priority/P3 The next thing for us to work on. It'll ride the trains. and removed priority/P2 A bad problem. We might uplift this to the next planned release. labels Jul 30, 2021
@tmancey tmancey removed priority/P3 The next thing for us to work on. It'll ride the trains. QA/Yes release-notes/exclude labels Nov 2, 2021
@aseren aseren self-assigned this Feb 3, 2022
aseren added a commit to brave/brave-core that referenced this issue Feb 3, 2022
aseren added a commit to brave/brave-core that referenced this issue Feb 7, 2022
@kjozwiak kjozwiak added this to the 1.36.x - Beta milestone Feb 14, 2022
@tmancey tmancey added priority/P2 A bad problem. We might uplift this to the next planned release. release-notes/exclude labels Feb 15, 2022
@aseren aseren added the QA/Yes label Feb 25, 2022
@btlechowski
Copy link

Verification passed on

Brave 1.36.106 Chromium: 99.0.4844.45 (Official Build) (64-bit)
Revision edbc0b8343c7b10fddb0e1b4efb280b0f6e38cab-refs/branch-heads/4844@{#788}
OS Ubuntu 18.04 LTS

Verified en_US locale as it is the only one that has VAC.

Verified conversions resource was loaded:

[11166:11166:0226/001838.502363:VERBOSE1:conversions_resource.cc(40)] Successfully loaded resource nnqccijfhvzwyrxpxwjrpmynaiazctqb
[11166:11166:0226/001838.502518:VERBOSE1:conversions_resource.cc(110)] Parsed verifiable conversion resource version 1
[11166:11166:0226/001838.502685:VERBOSE1:conversions_resource.cc(50)] Successfully initialized resource nnqccijfhvzwyrxpxwjrpmynaiazctqb

Replaced the content of the resource with fail word. No crash observed.

[11932:11932:0226/002137.529089:VERBOSE1:conversions_resource.cc(40)] Successfully loaded resource nnqccijfhvzwyrxpxwjrpmynaiazctqb
[11932:11932:0226/002137.529281:VERBOSE1:conversions_resource.cc(65)] Failed to load from JSON, root missing
[11932:11932:0226/002137.529501:VERBOSE1:conversions_resource.cc(43)] Failed to initialize resource nnqccijfhvzwyrxpxwjrpmynaiazctqb

Replaced the content of the resource with {} word. No crash observed.

[12231:12231:0226/002227.542363:VERBOSE1:conversions_resource.cc(40)] Successfully loaded resource nnqccijfhvzwyrxpxwjrpmynaiazctqb
[12231:12231:0226/002227.542420:VERBOSE1:conversions_resource.cc(79)] Failed to load from JSON, conversion patterns missing
[12231:12231:0226/002227.542470:VERBOSE1:conversions_resource.cc(43)] Failed to initialize resource nnqccijfhvzwyrxpxwjrpmynaiazctqb

Made the resource file empty. No crash

[12492:12492:0226/002331.263417:VERBOSE1:conversions_resource.cc(35)] Failed to load resource nnqccijfhvzwyrxpxwjrpmynaiazctqb

@tmancey tmancey added this to Ads Jun 10, 2024
@tmancey tmancey moved this to Done in Ads Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants