Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE for content that only has XML declaration and unknown encoding #123

Closed
cowtowncoder opened this issue Apr 3, 2021 · 1 comment
Closed
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: found by OssFuzz at https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32872)

Looks like a specific combination of input can trigger an NPE, where in bootstrapper reads all content and then fails to construct an input stream.

@cowtowncoder
Copy link
Member Author

Specific constraints include:

  • Must pass input as Stax2ByteArraySource
  • Content ends immediately after (valid) XML declaration
  • Encoding is declared but is unknown to Woodstox, delegated to JDK

and with that, NPE occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant