Commit 52edb2d 1 parent 8416fe9 commit 52edb2d Copy full SHA for 52edb2d
File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 58
58
path : ' ./pages/dist/'
59
59
- name : Deploy to GitHub Pages
60
60
id : deployment
61
- uses : actions/deploy-pages@v2
61
+ uses : actions/deploy-pages@v2
62
+ fuzz :
63
+ runs-on : ubuntu-latest
64
+ steps :
65
+ - uses : actions/checkout@v2
66
+ - uses : actions-rs/toolchain@v1
67
+ with :
68
+ toolchain : nightly
69
+ override : true
70
+ - name : Install cargo-fuzz
71
+ uses : baptiste0928/cargo-install@v3
72
+ with :
73
+ crate : cargo-fuzz
74
+ locked : false
75
+ - name : Fuzz
76
+ run : RUST_BACKTRACE=1 cargo fuzz run fuzz -- -max_total_time=900
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ libfuzzer-sys = "0.4"
13
13
14
14
[dependencies .rustrict ]
15
15
path = " .."
16
- features = [" width" ]
16
+ features = [" pii " , " width" ]
17
17
18
18
# Prevent this from interfering with workspaces
19
19
[workspace ]
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ fuzz_target!(|data: &[u8]| {
10
10
if let Ok ( text) = std:: str :: from_utf8( input) {
11
11
let _ = rustrict:: width_str( text) ;
12
12
let _ = rustrict:: trim_to_width( text, 10 ) ;
13
+ let _ = rustrict:: censor_and_analyze_pii( text) ;
13
14
14
15
let ( _censored, _analysis) = Censor :: from_str( text)
15
16
. with_ignore_self_censoring( flag( flags, 0 ) )
You can’t perform that action at this time.
0 commit comments