Ignore unexpected single-column entry in uploads.log
There are two kind of formats used in the crash logging file. - [CSV format] the old version to deprecate. - [JSON format] the new version with better extensibility. To decide the format of a specific log entry. We should make sure it is not only a JSON type, but also a JSON dictionary type. Otherwise the invalid CSV entry with single column will be wrongly treated as JSON format, then enter the parsing logic. It may cause unexpected crash. Bug: 1142529 Change-Id: I899940eece378b0359188dc14d617fb0570dedfa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2538216Reviewed-by:Mark Mentovai <mark@chromium.org> Commit-Queue: Anqing Zhao <anqing@chromium.org> Cr-Commit-Position: refs/heads/master@{#829305}
Showing
Please register or sign in to comment