Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

honeybadgerdontcare
Copy link
Contributor

This is an automatically generated pull request.

PiperOrigin-RevId: 327119354
@google-cla google-cla bot added the cla: yes label Aug 17, 2020
@amp-owners-bot
Copy link

amp-owners-bot bot commented Aug 17, 2020

Hey @ampproject/wg-caching! These files were changed:

validator/cpp/htmlparser/benchmarks/allocator_benchmarks.cc
validator/cpp/htmlparser/benchmarks/json_validator_benchmarks.cc
validator/cpp/htmlparser/minimal_recursion_test.cc
validator/cpp/htmlparser/strings.cc

…nt in

  parser not to use temporary. This fix the fuzz test asan error.
- The testdata/* doesn't work as it contains .dat (binary files) and parser
  always fails (crashes) for non-text files. Copied some test dataset from
  similar project which seems to be working and well tested.
- After running parser on binary content, we saw a few generally unreachable
  code triggering runtime exceptions in the form of LOG(FATAL) statements.
  Supress such exceptions by replacing invalid utf8 char with replacement
  character \U+FFFD

  This remove one more exception that may potentially terminate servers for one
  bad document.

PiperOrigin-RevId: 327121381
@honeybadgerdontcare honeybadgerdontcare merged commit 3124f0a into master Aug 18, 2020
@rsimha rsimha deleted the piper_sedano_2 branch October 19, 2020 22:35
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
* Internal Refactoring

PiperOrigin-RevId: 327119354

* - Fix ASAN error memory accessed after its freed error. Updated comment in
  parser not to use temporary. This fix the fuzz test asan error.
- The testdata/* doesn't work as it contains .dat (binary files) and parser
  always fails (crashes) for non-text files. Copied some test dataset from
  similar project which seems to be working and well tested.
- After running parser on binary content, we saw a few generally unreachable
  code triggering runtime exceptions in the form of LOG(FATAL) statements.
  Supress such exceptions by replacing invalid utf8 char with replacement
  character \U+FFFD

  This remove one more exception that may potentially terminate servers for one
  bad document.

PiperOrigin-RevId: 327121381

Co-authored-by: Amaltas Bohra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants