Skip to content

Validate JSON Lines input before chunk access#13

Open
SRO-SA wants to merge 1 commit into
masterfrom
fix/issue-2-parse-json-lines-null-input
Open

Validate JSON Lines input before chunk access#13
SRO-SA wants to merge 1 commit into
masterfrom
fix/issue-2-parse-json-lines-null-input

Conversation

@SRO-SA

@SRO-SA SRO-SA commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Fixes #2

Summary:

  • Validates JSON Lines input before any data access or chunk dereference.
  • Rejects NULL input.data with non-zero input.size.
  • Rejects zero chunkCount and inconsistent chunk metadata.
  • Rejects NULL chunk pointers when the corresponding chunk size is non-zero.
  • Updates the parse_json_lines header prototype to use cuJSONLinesInput, matching the implementation.

Testing:

  • I could not run the ASAN reproducer locally because my laptop does not have CUDA access.
  • I reviewed the entry-point validation and chunk access path manually.
  • Please rerun the ASAN reproducer from the issue to confirm the NULL pointer dereference is resolved.

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

Successfully merging this pull request may close these issues.

NULL pointer dereference in parse_json_lines (CWE-476)

1 participant