move (MaxEnd / BOUNDARY) * BOUNDARY to upper function
This commit is contained in:
parent
ed470a1014
commit
643027dd31
@ -367,7 +367,7 @@
|
||||
+ Section += 0x28;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if ((read32(buffer, 0) == 0xfeedface) || // MH_MAGIC
|
||||
@ -397,7 +397,7 @@
|
||||
+ Command += cmdsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if (read32(buffer, 0) == 0x464c457f) { // ELF
|
||||
@ -424,7 +424,7 @@
|
||||
+ SectionHeader += e_shentsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ }
|
||||
+
|
||||
@ -486,7 +486,7 @@
|
||||
+ }
|
||||
+
|
||||
+ char env[64];
|
||||
+ int position = FindMeatEnd(file); int size;
|
||||
+ int position = (FindMeatEnd(file) / BOUNDARY) * BOUNDARY; int size;
|
||||
+ char* bakery = NULL;
|
||||
+
|
||||
+ if (GetSentryPosition(file, position, 0x4818c4df,
|
||||
|
||||
@ -443,7 +443,7 @@
|
||||
+ Section += 0x28;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if ((read32(buffer, 0) == 0xfeedface) || // MH_MAGIC
|
||||
@ -473,7 +473,7 @@
|
||||
+ Command += cmdsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if (read32(buffer, 0) == 0x464c457f) { // ELF
|
||||
@ -500,7 +500,7 @@
|
||||
+ SectionHeader += e_shentsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ }
|
||||
+
|
||||
@ -562,7 +562,7 @@
|
||||
+ }
|
||||
+
|
||||
+ char env[64];
|
||||
+ int position = FindMeatEnd(file); int size;
|
||||
+ int position = (FindMeatEnd(file) / BOUNDARY) * BOUNDARY; int size;
|
||||
+ char* bakery = NULL;
|
||||
+
|
||||
+ if (GetSentryPosition(file, position, 0x4818c4df,
|
||||
|
||||
@ -455,7 +455,7 @@
|
||||
+ Section += 0x28;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if ((read32(buffer, 0) == 0xfeedface) || // MH_MAGIC
|
||||
@ -485,7 +485,7 @@
|
||||
+ Command += cmdsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if (read32(buffer, 0) == 0x464c457f) { // ELF
|
||||
@ -512,7 +512,7 @@
|
||||
+ SectionHeader += e_shentsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ }
|
||||
+
|
||||
@ -574,7 +574,7 @@
|
||||
+ }
|
||||
+
|
||||
+ char env[64];
|
||||
+ int position = FindMeatEnd(file); int size;
|
||||
+ int position = (FindMeatEnd(file) / BOUNDARY) * BOUNDARY; int size;
|
||||
+ char* bakery = NULL;
|
||||
+
|
||||
+ if (GetSentryPosition(file, position, 0x4818c4df,
|
||||
|
||||
@ -455,7 +455,7 @@
|
||||
+ Section += 0x28;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if ((read32(buffer, 0) == 0xfeedface) || // MH_MAGIC
|
||||
@ -485,7 +485,7 @@
|
||||
+ Command += cmdsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ } else
|
||||
+ if (read32(buffer, 0) == 0x464c457f) { // ELF
|
||||
@ -512,7 +512,7 @@
|
||||
+ SectionHeader += e_shentsize;
|
||||
+ }
|
||||
+
|
||||
+ return (MaxEnd / BOUNDARY) * BOUNDARY;
|
||||
+ return MaxEnd;
|
||||
+
|
||||
+ }
|
||||
+
|
||||
@ -574,7 +574,7 @@
|
||||
+ }
|
||||
+
|
||||
+ char env[64];
|
||||
+ int position = FindMeatEnd(file); int size;
|
||||
+ int position = (FindMeatEnd(file) / BOUNDARY) * BOUNDARY; int size;
|
||||
+ char* bakery = NULL;
|
||||
+
|
||||
+ if (GetSentryPosition(file, position, 0x4818c4df,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user