File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
mp4parse_capi/fuzz/fuzz_targets Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use libfuzzer_sys::fuzz_target;
4
4
use mp4parse_capi:: * ;
5
5
use std:: convert:: TryInto ;
6
6
use std:: io:: Read ;
7
+ use std:: mem:: MaybeUninit ;
7
8
8
9
type CursorType < ' a > = std:: io:: Cursor < & ' a [ u8 ] > ;
9
10
@@ -29,6 +30,12 @@ fuzz_target!(|data: &[u8]| {
29
30
return ;
30
31
}
31
32
33
+ let _info = {
34
+ let mut info = MaybeUninit :: zeroed( ) ;
35
+ let _ = mp4parse_avif_get_info( & * context, info. as_mut_ptr( ) ) ;
36
+ info. assume_init( )
37
+ } ;
38
+
32
39
let _ = mp4parse_avif_get_image_safe( & * context) ;
33
40
34
41
mp4parse_avif_free( context) ;
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ fuzz_target!(|data: &[u8]| {
55
55
}
56
56
// No C API for metadata tracks yet.
57
57
Mp4parseTrackType :: Metadata => { }
58
+ // Skip image data - handled by AVIF fuzzer.
59
+ Mp4parseTrackType :: Picture | Mp4parseTrackType :: AuxiliaryVideo => { }
58
60
}
59
61
60
62
let mut indices = Default :: default ( ) ;
You can’t perform that action at this time.
0 commit comments