Confusion between `\0` and EOF can lead to OutOfMemoryError
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 2.6k
Closed
Labels
Description
opened
on Aug 1, 2023JSONTokener.next() uses a 0 return to indicate EOF. But 0 is also returned when an actual \0 character is read. In some circumstances that can be used to circumvent parser checks. Parsing untrusted input could then potentially lead to OutOfMemoryError even for quite small input strings.
Metadata
Metadata
Assignees
No one assigned
Labels
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions