You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing 'encoded_body_length' in url_response_head.mojom is default
to -1. In some cases, this default value is not overwritten and is
propagated all the way to JS code and caused number overflow. See
details in the last comments of crbug.com/1324812.
This CL wraps the `encoded_body_length` without default value into a
struct which is made optional. This way, the case it is not set and it
is set to 0 and when it is not set, 0 would be used explicitly in the
downstream code.
Also the type of the field is changed into uint64_t to align with the V8
binding. And because uint64_t and int64 has different range, so
variables passed from and into the mojom field also changed their types.
Most of files touched are just of this change.
Bug: 1336219,1324812
Change-Id: I67f7bd3e47e4f71f719bab9b56cfaa9d388c6f7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4126836
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: Hao Liu <haoliuk@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Matt Menke <mmenke@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1091612}
0 commit comments