tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

prefreader.rs (517B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #![no_main]
      6 use libfuzzer_sys::fuzz_target;
      7 use std::io::Cursor;
      8 extern crate mozprofile;
      9 
     10 fuzz_target!(|data: &[u8]| {
     11    let buf = Vec::new();
     12    let mut out = Cursor::new(buf);
     13    mozprofile::prefreader::parse(data).map(|parsed| {
     14        mozprofile::prefreader::serialize(&parsed, &mut out);
     15    });
     16 });