Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

change panic to failure when parser-stack depleted #67

Merged
merged 2 commits into from
Feb 27, 2015

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Feb 27, 2015

closes #66

@rust-highfive
Copy link

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@wilsoniya
Copy link

LGTM 👍

I wasn't invited to review, but I'm the reporter of #66 and this appears to fix the original issue.

fn test_bad_json_stack_depleted() {
use json;
#[derive(Debug, RustcDecodable)]
enum ChatEvent {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange indentation; un-indent two levels on 3855-3860.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, i tried out RustDT and it uses tabs out of some reason. fixing...

@alexcrichton
Copy link
Contributor

Thanks!

alexcrichton added a commit that referenced this pull request Feb 27, 2015
change panic to failure when parser-stack depleted
@alexcrichton alexcrichton merged commit 4fceb09 into rust-lang-deprecated:master Feb 27, 2015
@oli-obk oli-obk deleted the fix_66 branch March 2, 2015 09:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json::decode() panics on malformed serialized JSON
5 participants