angler-fishThe Vulnerability History Project

Fix InMemoryUrlProtocol available_bytes computation.

      Fixed available_bytes computation to properly handle large buffers and
add defensive logic to Read() to protect against negative sizes.

BUG=364065
TESTS=InMemoryUrlProtocolTest.*

Review URL: https://codereview.chromium.org/253923002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267280 0039d316-1c4b-4281-b951-d872f2087c98
    
commit ecc4d3b3f6f131387b8c0e01598a702a09e259d9
+3 -11
-51
-4
expand_less