-
Notifications
You must be signed in to change notification settings - Fork 887
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
strings should be UTF8, but also check ASCII without crashing in dev #1077
Conversation
if (!base::IsStringUTF8(notification_info.text) || | ||
!base::UTF8ToUTF16(notification_info.text.c_str(), | ||
notification_info.text.length(), &text)) { | ||
if (base::IsStringASCII(notification_info.text)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is probably not necessary, but doesn't hurt anything
d53036e
to
173599a
Compare
Please remember to set merged labels and adjust the associated issue milestone. |
I think it only landed in c61, so marking that. |
@bridiver Could you please confirm label is correct as I thought this was merged into 0.59.x, thanks |
strings should be UTF8, but also check ASCII without crashing in dev
0.60.x dbaa399 |
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: