-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SBv5] Ensure response is valid and successful before returning the t…
…hreat type Add the following checks before returning the threat type in safe_browsing_api_handler_bridge: * Validate that the returned values are defined in the enum. They can be undefined if there is a version mismatch. The response status is not checked in case there is a new success value added before it is integrated in Chrome. * Check that the response is successful based on lookup result and response status. * Add a note on why threat metadata is currently not returned and the requirement to support it. Bug: 1444511 Change-Id: I4a5640ac525f18a0154ab9a7e94a9240f9ff5fe0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4779056 Reviewed-by: thefrog <thefrog@chromium.org> Commit-Queue: Xinghui Lu <xinghuilu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1185022}
- Loading branch information
Xinghui Lu
authored and
Chromium LUCI CQ
committed
Aug 18, 2023
1 parent
65c72d5
commit b769c5f
Showing
4 changed files
with
287 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.