You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mach-o/container.cc
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -109,22 +109,22 @@ namespace macho {
109
109
for (auto i = 0; i < ncmds; i++) {
110
110
auto load_cmd = (structload_command *)&cached[cached_index];
111
111
constauto &cmdsize = load_cmd->cmdsize;
112
-
112
+
113
113
if (created_cache) {
114
114
if (is_big_endian) {
115
115
swap_load_command(load_cmd);
116
116
}
117
-
117
+
118
118
if (cmdsize < sizeof(structload_command)) {
119
119
fprintf(stderr, "Load-command (at index %d) of mach-o container (at base 0x%.8lX) is too small to be valid\n", i, base);
120
120
exit(1);
121
121
}
122
-
122
+
123
123
if (cmdsize >= sizeofcmds) {
124
124
fprintf(stderr, "Load-command (at index %d) of mach-o container (at base 0x%.8lX) is larger than/or equal to entire area allocated for load-commands\n", i, base);
125
125
exit(1);
126
126
}
127
-
127
+
128
128
size_used += cmdsize;
129
129
if (size_used > sizeofcmds) {
130
130
fprintf(stderr, "Load-command (at index %d) of mach-o container (at base 0x%.8lX) goes past end of area allocated for load-commands\n", i, base);
0 commit comments