This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Some(ObjectEnd) panic when parsing str → Json #110
Comments
Could you provide the output of |
frewsxcv
changed the title
Some(ObjectEnd) when parsing str → Json
Some(ObjectEnd) panic when parsing str → Json
Jun 21, 2015
Here's the code I used: extern crate rustc_serialize;
use rustc_serialize::json::Json;
use std::io::{self, Read, Cursor};
fn main() {
let mut input = String::new();
let result = io::stdin().read_to_string(&mut input);
if result.is_ok() {
let data = Json::from_str(&input);
}
} And the log/backtrace:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attempting to parse:
Results in:
This bug was found using https://github.com/kmcallister/afl.rs 👍
The text was updated successfully, but these errors were encountered: