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

Skip to content

Reject JSON bodies with trailing chars#3453

Merged
jplatte merged 1 commit intotokio-rs:mainfrom
avandecreme:json_extra_chars
Sep 2, 2025
Merged

Reject JSON bodies with trailing chars#3453
jplatte merged 1 commit intotokio-rs:mainfrom
avandecreme:json_extra_chars

Conversation

@avandecreme
Copy link
Contributor

Motivation

Fix for #3452

Solution

Call deserializer.end() to ensure we reached the end of the stream. See https://docs.rs/serde_json/latest/serde_json/struct.Deserializer.html#method.end

@jplatte jplatte enabled auto-merge (squash) September 2, 2025 19:31
@jplatte jplatte merged commit 86868de into tokio-rs:main Sep 2, 2025
18 checks passed
@avandecreme avandecreme deleted the json_extra_chars branch September 3, 2025 07:35
jplatte pushed a commit that referenced this pull request Sep 28, 2025
jplatte pushed a commit that referenced this pull request Sep 28, 2025
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.

3 participants

Comments