Commit 5a65dab7 authored by Nick Harper's avatar Nick Harper Committed by Commit Bot

Fix bug in parsing HSTS certificates file

Bug: 817979
Change-Id: I0a7ac6811306123f1bd55ef2def0f00283116b55
Reviewed-on: https://chromium-review.googlesource.com/944516Reviewed-by: default avatarEric Lawrence <elawrence@chromium.org>
Reviewed-by: default avatarChris Palmer <palmer@chromium.org>
Commit-Queue: Nick Harper <nharper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540361}
parent 5dcf67cb
......@@ -205,7 +205,7 @@ bool ParseCertificatesFile(base::StringPiece certs_input, Pinsets* pinsets) {
for (const base::StringPiece& line : SplitStringPiece(
certs_input, "\n", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL)) {
if (line[0] == '#') {
if (!line.empty() && line[0] == '#') {
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment