File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
mp4parse_capi/fuzz/fuzz_targets Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,8 @@ fuzz_target!(|data: &[u8]| {
24
24
userdata: & mut cursor as * mut _ as * mut std:: os:: raw:: c_void,
25
25
} ;
26
26
unsafe {
27
- let context = mp4parse_avif_new( & io) ;
28
-
29
- if mp4parse_avif_read( context) != Mp4parseStatus :: Ok {
30
- mp4parse_avif_free( context) ;
27
+ let mut context = std:: ptr:: null_mut( ) ;
28
+ if mp4parse_avif_new( & io, & mut context) != Mp4parseStatus :: Ok {
31
29
return ;
32
30
}
33
31
Original file line number Diff line number Diff line change @@ -24,10 +24,8 @@ fuzz_target!(|data: &[u8]| {
24
24
userdata: & mut cursor as * mut _ as * mut std:: os:: raw:: c_void,
25
25
} ;
26
26
unsafe {
27
- let context = mp4parse_new( & io) ;
28
-
29
- if mp4parse_read( context) != Mp4parseStatus :: Ok {
30
- mp4parse_free( context) ;
27
+ let mut context = std:: ptr:: null_mut( ) ;
28
+ if mp4parse_new( & io, & mut context) != Mp4parseStatus :: Ok {
31
29
return ;
32
30
}
33
31
You can’t perform that action at this time.
0 commit comments