Introduce DataAccessor (FormData parser fuzzing support)
This is part of the effort to introduce a fuzzer for code parsing FormData into PasswordForms. As described in the design linked from https://crbug.com/827945#c2, in order to create FormData from an arbitrary input string supplied by the fuzzer framework, a DataAccessor class should be created to wrap turning the input string into bits, numbers and strings. This CL adds DataAccessor, including tests (because the contained logic is not straightforward). Bug: 827945 Change-Id: Ib7b2fe54d74bc096afa7e8bc8ff72ab68a8c5977 Reviewed-on: https://chromium-review.googlesource.com/992312 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#548772}
Showing
Please register or sign in to comment