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

Issue 215833002: window.atob() returns wrong value when given a string container only white spaces (Closed)

Created:
6 years, 9 months ago by Inactive
Modified:
6 years, 9 months ago
CC:
blink-reviews, Mikhail, adamk+blink_chromium.org, Inactive, abarth-chromium, tkent
Visibility:
Public.

Description

window.atob() returns wrong value when given a string container only white spaces window.atob() returns wrong value when given a string container only white spaces. The reason was that base64DecodeInternal() was calling Vector::grow() before the loop but failed to call Vector::shrink() in case of early return. R= BUG=357332 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170264

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -5 lines) Patch
M LayoutTests/fast/dom/Window/atob-btoa.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/atob-btoa-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/wtf/text/Base64.cpp View 1 chunk +17 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Inactive
6 years, 9 months ago (2014-03-27 23:51:05 UTC) #1
tkent
lgtm
6 years, 9 months ago (2014-03-28 03:17:38 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/215833002/1
6 years, 9 months ago (2014-03-28 03:17:44 UTC) #3
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 04:25:18 UTC) #4
Message was sent while issue was closed.
Change committed as 170264

Powered by Google App Engine
This is Rietveld 408576698