Skip to content

Commit

Permalink
Merge pull request #1042 from onekey-sec/update_flake_lock_action
Browse files Browse the repository at this point in the history
Update flake.lock
  • Loading branch information
qkaiser authored Jan 6, 2025
2 parents d0a276e + c2fd63b commit 6639679
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 84 deletions.
54 changes: 24 additions & 30 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ final: prev:
--replace-fail \
'aligned_offset = offset & ~(4096 - 1);' \
'aligned_offset = offset & ~(sysconf(_SC_PAGESIZE) - 1);'
substituteInPlace backed_block.cpp \
--replace-fail \
'reinterpret_cast<backed_block_list*>(calloc(sizeof(struct backed_block_list), 1));' \
'reinterpret_cast<backed_block_list*>(calloc(1, sizeof(struct backed_block_list)));'
substituteInPlace sparse.cpp \
--replace-fail \
'struct sparse_file* s = reinterpret_cast<sparse_file*>(calloc(sizeof(struct sparse_file), 1));' \
'struct sparse_file* s = reinterpret_cast<sparse_file*>(calloc(1, sizeof(struct sparse_file)));'
substituteInPlace simg2simg.cpp \
--replace-fail \
'out_s = (struct sparse_file**)calloc(sizeof(struct sparse_file*), files);' \
'out_s = (struct sparse_file**)calloc(files, sizeof(struct sparse_file*));'
'';
});

Expand Down
94 changes: 44 additions & 50 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ python-magic = "^0.4.27"
pyperscan = "^0.3.0"
lark = "^1.1.8"
lz4 = "^4.3.2"
lief = "^0.15.1"
cryptography = ">=41.0,<44.0"
lief = "^0.16.1"
cryptography = ">=41.0"
treelib = "^1.7.0"
unblob-native = "^0.1.5"
jefferson = "^0.4.5"
Expand Down
4 changes: 2 additions & 2 deletions unblob/handlers/executable/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def is_valid_header(self, header) -> bool:
lief.ELF.Header.FILE_TYPE(header.e_type)
lief.ELF.ARCH(header.e_machine)
lief.ELF.Header.VERSION(header.e_version)
except RuntimeError:
except ValueError:
return False
return True

Expand All @@ -170,7 +170,7 @@ def get_last_section_end(
== lief.ELF.Section.TYPE.NOBITS
):
continue
except RuntimeError:
except ValueError:
continue

section_end = section_header.sh_offset + section_header.sh_size
Expand Down

0 comments on commit 6639679

Please sign in to comment.