File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ osx_fat_readert::osx_fat_readert(
85
85
if (!in)
86
86
throw system_exceptiont (" failed to read OSX fat header" );
87
87
88
- if (!is_osx_fat_header (reinterpret_cast <char *>(&(fh.magic ))))
88
+ static_assert (sizeof (fh) >= 8 , " fat_header is at least 8 bytes" );
89
+ if (!is_osx_fat_header (reinterpret_cast <char *>(&fh)))
89
90
throw deserialization_exceptiont (" OSX fat header malformed" );
90
91
91
92
static_assert (
Original file line number Diff line number Diff line change @@ -74,6 +74,6 @@ class osx_mach_o_readert
74
74
void process_sections_64 (uint32_t nsects, bool need_swap);
75
75
};
76
76
77
- bool is_osx_mach_object (char hdr[8 ]);
77
+ bool is_osx_mach_object (char hdr[4 ]);
78
78
79
79
#endif // CPROVER_GOTO_PROGRAMS_OSX_FAT_READER_H
You can’t perform that action at this time.
0 commit comments