File tree Expand file tree Collapse file tree 6 files changed +38
-2
lines changed
Expand file tree Collapse file tree 6 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 3131# already existing elements were commented out
3232
3333# /target
34+
35+ ci-local.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ target
2+ corpus
3+ artifacts
4+ coverage
Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " sql_docs-fuzz"
3+ version = " 0.0.0"
4+ publish = false
5+ edition = " 2024"
6+
7+ [package .metadata ]
8+ cargo-fuzz = true
9+
10+ [dependencies ]
11+ libfuzzer-sys = " 0.4"
12+
13+ [dependencies .sql_docs ]
14+ path = " .."
15+
16+ [[bin ]]
17+ name = " fuzz_target_1"
18+ path = " fuzz_targets/fuzz_target_1.rs"
19+ test = false
20+ doc = false
21+ bench = false
Original file line number Diff line number Diff line change 1+ #![ no_main]
2+
3+ use libfuzzer_sys:: fuzz_target;
4+
5+ fuzz_target ! ( |data: & [ u8 ] | {
6+ // fuzzed code goes here
7+ } ) ;
Original file line number Diff line number Diff line change @@ -116,7 +116,10 @@ impl SqlFile {
116116 ///
117117 /// Returns an [`io::Error`] if the file cannot be read.
118118 pub fn new ( path : & Path ) -> io:: Result < Self > {
119- let content = fs:: read_to_string ( path) ?;
119+ let mut content = fs:: read_to_string ( path) ?;
120+ if cfg ! ( windows) {
121+ content = content. replace ( "\r \n " , "\n " ) ;
122+ }
120123 Ok ( Self { path : path. to_owned ( ) , content } )
121124 }
122125
You can’t perform that action at this time.
0 commit comments