commit | aacf7691537c820560c5784c77d77c84013a79ff | [log] [tgz] |
---|---|---|
author | Dan Harrington <harringtond@chromium.org> | Thu Apr 04 22:36:21 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Apr 04 22:36:21 2019 |
tree | c7fdd388327019da88ff1527c2327c9e99f55690 | |
parent | 54d690b417830bc66c6e14625ae3220822815d40 [diff] |
Remove unsafe int->enum casts In each case, we're storing integers in a database and casting to the enum when reading from the database. If the database is corrupt (or if we add an enum value and then the user downgrades), we're at risk of crashing later on. This should fix all occurences within offline_pages/ Bug: 944674 Change-Id: I37491a6aa132feef6e8e13f66f1734a18013acdb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1534472 Commit-Queue: Dan H <harringtond@google.com> Reviewed-by: Min Qin <qinmin@chromium.org> Reviewed-by: Carlos Knippschild <carlosk@chromium.org> Cr-Commit-Position: refs/heads/master@{#647952}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .