mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-17 06:02:19 -04:00
Needed_changes_to_compile_with_gcc_13.2.1 (#2224)
* Needed_changes_to_compile_with_gcc_13.2.1 * re-activate_length_binary_size_protect
This commit is contained in:
parent
c992780974
commit
6dc7e3dfc5
2 changed files with 8 additions and 2 deletions
|
@ -55,8 +55,12 @@ def write_image(data, path):
|
|||
|
||||
def patch_image(path, image_data, search_address, replace_address):
|
||||
if (len(image_data) % 4) != 0:
|
||||
print("file size not divideable by 4")
|
||||
sys.exit(-1)
|
||||
#sys.exit(-1)
|
||||
print("\n External App image file:", path, ", size not divideable by 4 :", len(image_data))
|
||||
j=0
|
||||
while (len(image_data) % 4) != 0:
|
||||
image_data += b'\x00' ; j+=1
|
||||
print("file size:", len(image_data)," after padded:",j, "bytes")
|
||||
|
||||
external_application_image = bytearray()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue