Skip to content

Commit 70bed90

Browse files
author
inoahdev
committed
Fix spaces/tabs in container.cc
1 parent a70b517 commit 70bed90

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/mach-o/container.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,22 @@ namespace macho {
109109
for (auto i = 0; i < ncmds; i++) {
110110
auto load_cmd = (struct load_command *)&cached[cached_index];
111111
const auto &cmdsize = load_cmd->cmdsize;
112-
112+
113113
if (created_cache) {
114114
if (is_big_endian) {
115115
swap_load_command(load_cmd);
116116
}
117-
117+
118118
if (cmdsize < sizeof(struct load_command)) {
119119
fprintf(stderr, "Load-command (at index %d) of mach-o container (at base 0x%.8lX) is too small to be valid\n", i, base);
120120
exit(1);
121121
}
122-
122+
123123
if (cmdsize >= sizeofcmds) {
124124
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);
125125
exit(1);
126126
}
127-
127+
128128
size_used += cmdsize;
129129
if (size_used > sizeofcmds) {
130130
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);
@@ -237,15 +237,15 @@ namespace macho {
237237
for (auto i = 0; i < symbol_table_count; i++) {
238238
const auto &symbol_table_entry = symbol_table[i];
239239
const auto &symbol_table_entry_string_table_index = symbol_table_entry.n_un.n_strx;
240-
240+
241241
if (symbol_table_entry_string_table_index > string_table_max_index) {
242242
fprintf(stderr, "Symbol-table entry (at index %d) has symbol-string past end of string-table of mach-o container (at base 0x%.8lX)\n", i, base);
243243
exit(1);
244244
}
245245

246246
const auto symbol_table_string_table_string = &string_table[symbol_table_entry_string_table_index];
247247
const auto result = callback(symbol_table_entry, symbol_table_string_table_string);
248-
248+
249249
if (!result) {
250250
break;
251251
}
@@ -275,11 +275,11 @@ namespace macho {
275275
for (auto i = 0; i < symbol_table_count; i++) {
276276
const auto &symbol_table_entry = symbol_table[i];
277277
const auto &symbol_table_entry_string_table_index = symbol_table_entry.n_un.n_strx;
278-
278+
279279
if (i == 10956) {
280280
printf("");
281281
}
282-
282+
283283
if (symbol_table_entry_string_table_index > string_table_max_index) {
284284
fprintf(stderr, "Symbol-table entry (at index %d) has symbol-string past end of string-table of mach-o container (at base 0x%.8lX)\n", i, base);
285285
exit(1);

0 commit comments

Comments
 (0)