summaryrefslogtreecommitdiffstats
path: root/components/tracing/trace_config_file.h
diff options
context:
space:
mode:
authorkouhei <kouhei@chromium.org>2015-10-06 00:52:31 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-06 07:53:17 +0000
commit20783544a35e815bd4ddfcf9bfae447d0778b9ca (patch)
tree62887b91c071c35933db9d0eed18c0df8b8ad6b5 /components/tracing/trace_config_file.h
parent4148513e2c1d40f3206396f8fff62f23b870459b (diff)
downloadchromium_src-20783544a35e815bd4ddfcf9bfae447d0778b9ca.zip
chromium_src-20783544a35e815bd4ddfcf9bfae447d0778b9ca.tar.gz
chromium_src-20783544a35e815bd4ddfcf9bfae447d0778b9ca.tar.bz2
Fix crash: HTMLDocumentParser::flush() may be called without any appendBytes()
In some cases, like when encoding detector detected that document has started parsing in wrong encoding, HTMLDocumentParser may be invoked flush() without any appendBytes(). Before this CL, HTMLDocumentParser that shouldUseThreading() could end up going into non-threading parser code path when flush() was called without any previous appendBytes(). This CL avoids such situation by checking the shouldUseThreading() flag and by properly initializing non-threading parser. BUG=534791, 529133 Review URL: https://codereview.chromium.org/1372323002 Cr-Commit-Position: refs/heads/master@{#352563}
Diffstat (limited to 'components/tracing/trace_config_file.h')
0 files changed, 0 insertions, 0 deletions