1
0
mirror of https://github.com/angr/pyvex synced 2026-06-21 13:47:01 +00:00

1335 Commits

Author SHA1 Message Date
pre-commit-ci[bot] 51a1670122 [pre-commit.ci] pre-commit autoupdate (#547)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.16 → v0.15.17](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.16...v0.15.17)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-06-15 12:48:11 -07:00
pre-commit-ci[bot] e8891e770d [pre-commit.ci] pre-commit autoupdate (#546)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.15 → v0.15.16](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.15...v0.15.16)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-06-08 11:46:29 -07:00
Kevin Phoenix 99a2c02ab4 Use abi3 (#545) 2026-06-04 11:29:56 -07:00
angr-bot d533d675d5 Update version to 9.2.222.dev0 [ci skip] 2026-06-03 23:36:07 +00:00
angr-bot 6cc1569a2a Update version to 9.2.221.dev0 [ci skip] 2026-06-01 19:16:11 +00:00
pre-commit-ci[bot] a7317570d7 [pre-commit.ci] pre-commit autoupdate (#544)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.14 → v0.15.15](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.14...v0.15.15)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-06-01 11:34:42 -07:00
angr-bot 4d679f983f Update version to 9.2.220.dev0 [ci skip] 2026-05-26 18:23:01 +00:00
pre-commit-ci[bot] a8f1da1882 [pre-commit.ci] pre-commit autoupdate (#543)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.13 → v0.15.14](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.13...v0.15.14)
- [github.com/psf/black-pre-commit-mirror: 26.5.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/26.5.0...26.5.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-05-25 12:58:34 -07:00
Kevin Phoenix 517ae70b2d Update scikit-build-core to 0.12.2 (#542) 2026-05-22 13:04:18 -07:00
angr-bot 9e07fb53bc Update version to 9.2.219.dev0 [ci skip] 2026-05-20 19:01:58 +00:00
angr-bot a5ac7c8d93 Update version to 9.2.218.dev0 [ci skip] 2026-05-20 18:50:35 +00:00
angr-bot 1a9d7437f7 Update version to 9.2.217.dev0 [ci skip] 2026-05-20 10:46:30 +00:00
Brian Caswell 6ef0032cf4 pyvex_c: widen HashHW value slot to ULong (fix 64-bit guest-pointer truncation on 32-bit hosts) (#541)
* pyvex_c: widen HashHW value slot to ULong

HashHW (lifted from libvex/ir_opt.c) caches (IR-temp -> resolved
constant) bindings during data_ref extraction. Values were typed
HWord (= unsigned long, host-pointer-width). On 32-bit hosts that's
4 bytes, but the guest can be 64-bit (AMD64, AArch64), so cached
guest pointers were silently truncated.

Symptom on wasm32-emscripten with an AMD64 guest: pyvex.lift returns
data_addr=0x6320 for a load whose actual target is 0x100006320 (high
32 bits dropped). Native x86-64 SysV hides the bug because long is
64-bit there.

Fix: store HashHW values as ULong unconditionally. Keys are
pyvex-internal IR-temp identifiers and can stay HWord.

Adds tests/test_data_refs_64bit_target.py to lock in the expected
value.

Fixes #539

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* tests: drop archinfo dep, add class docstring

archinfo isn't a pyvex test dependency, so the new test failed to
collect on all CI runners. Use the bundled pyvex.ARCH_AMD64 constant
instead. Also add the class docstring that the ecosystem lint flagged.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Brian Caswell <brian@demoray.net>
2026-05-18 20:03:44 -07:00
pre-commit-ci[bot] 5a3760552b [pre-commit.ci] pre-commit autoupdate (#540)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.12 → v0.15.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.12...v0.15.13)
- [github.com/psf/black-pre-commit-mirror: 26.3.1 → 26.5.0](https://github.com/psf/black-pre-commit-mirror/compare/26.3.1...26.5.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-05-18 11:32:55 -07:00
angr-bot 75e9afaa0d Update version to 9.2.216.dev0 [ci skip] 2026-05-12 18:08:32 +00:00
angr-bot faa88a96b0 Update version to 9.2.215.dev0 [ci skip] 2026-05-05 17:59:42 +00:00
Kevin Phoenix 45f4edd68b Upgrade to Python 3.12 (#538)
* Update CI for 3.12

* Update docs for 3.12

* Update pyproject.toml for 3.12
2026-05-01 12:39:40 -07:00
angr-bot 73a2625b0c Update version to 9.2.214.dev0 [ci skip] 2026-04-28 18:02:36 +00:00
pre-commit-ci[bot] b1a1b9269e [pre-commit.ci] pre-commit autoupdate (#537)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.11 → v0.15.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.11...v0.15.12)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-27 13:05:33 -07:00
angr-bot bd4f596530 Update version to 9.2.213.dev0 [ci skip] 2026-04-21 17:54:01 +00:00
pre-commit-ci[bot] 7b3c7fb752 [pre-commit.ci] pre-commit autoupdate (#535)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.10 → v0.15.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.10...v0.15.11)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-20 12:31:31 -07:00
angr-bot 36455aaaf2 Update version to 9.2.212.dev0 [ci skip] 2026-04-14 18:33:35 +00:00
angr-bot 24d30d2397 Update version to 9.2.211.dev0 [ci skip] 2026-04-14 17:58:30 +00:00
pre-commit-ci[bot] b07cdc7b08 [pre-commit.ci] pre-commit autoupdate (#534)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.9...v0.15.10)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-13 11:37:02 -07:00
angr-bot c950941638 Update version to 9.2.210.dev0 [ci skip] 2026-04-07 17:52:11 +00:00
pre-commit-ci[bot] 8ba37e8ac2 [pre-commit.ci] pre-commit autoupdate (#533)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.8 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.8...v0.15.9)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-06 13:32:11 -07:00
angr-bot cd30eb0472 Update version to 9.2.209.dev0 [ci skip] 2026-03-31 17:50:23 +00:00
pre-commit-ci[bot] 77085c6759 [pre-commit.ci] pre-commit autoupdate (#532)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.7 → v0.15.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.7...v0.15.8)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-30 10:55:01 -07:00
angr-bot 7da1e78599 Update version to 9.2.208.dev0 [ci skip] 2026-03-24 19:08:44 +00:00
pre-commit-ci[bot] efbeda95e6 [pre-commit.ci] pre-commit autoupdate (#531)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.6 → v0.15.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.6...v0.15.7)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-23 12:18:00 -07:00
angr-bot a4fe4b7059 Update version to 9.2.207.dev0 [ci skip] 2026-03-17 18:04:33 +00:00
DavidKorczynski bf1d476250 Fix broken OSS-Fuzz build.sh (#530)
Adds `--collect-submodules=bitstring` when packaging the harnesses.

Fixes: https://oss-fuzz-build-logs.storage.googleapis.com/log-850dd25a-c58a-4c37-abd4-c5a703638319.txt

```
...
Step #4 - "build-check-libfuzzer-address-x86_64": INFO: Instrumenting pyvex.data_ref
Step #4 - "build-check-libfuzzer-address-x86_64": INFO: Instrumenting pyvex.lifting
Step #4 - "build-check-libfuzzer-address-x86_64": INFO: Instrumenting pyvex.lifting.gym
Step #4 - "build-check-libfuzzer-address-x86_64": INFO: Instrumenting pyvex.lifting.gym.aarch64_spotter
Step #4 - "build-check-libfuzzer-address-x86_64": INFO: Instrumenting pyvex.lifting.util
Step #4 - "build-check-libfuzzer-address-x86_64": INFO: Instrumenting pyvex.lifting.util.instr_helper
Step #4 - "build-check-libfuzzer-address-x86_64": Traceback (most recent call last):
Step #4 - "build-check-libfuzzer-address-x86_64":   File "irsb_fuzzer.py", line 26, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
Step #4 - "build-check-libfuzzer-address-x86_64":   File "pyvex/__init__.py", line 41, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
Step #4 - "build-check-libfuzzer-address-x86_64":   File "pyvex/lifting/__init__.py", line 1, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
Step #4 - "build-check-libfuzzer-address-x86_64":   File "pyvex/lifting/gym/__init__.py", line 1, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
Step #4 - "build-check-libfuzzer-address-x86_64":   File "pyvex/lifting/gym/aarch64_spotter.py", line 3, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
Step #4 - "build-check-libfuzzer-address-x86_64":   File "pyvex/lifting/util/__init__.py", line 1, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
Step #4 - "build-check-libfuzzer-address-x86_64":   File "pyvex/lifting/util/instr_helper.py", line 4, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
Step #4 - "build-check-libfuzzer-address-x86_64":   File "bitstring/__init__.py", line 75, in <module>
Step #4 - "build-check-libfuzzer-address-x86_64":   File "importlib/__init__.py", line 126, in import_module
Step #4 - "build-check-libfuzzer-address-x86_64": ModuleNotFoundError: No module named 'bitstring.bitstore_bitarray'
Step #4 - "build-check-libfuzzer-address-x86_64": [PYI-106:ERROR] Failed to execute script 'irsb_fuzzer' due to unhandled exception!
Step #4 - "build-check-libfuzzer-address-x86_64": 
Step #4 - "build-check-libfuzzer-address-x86_64": ERROR: 100.0% of fuzz targets seem to be broken. See the list above for a detailed information.
```
2026-03-17 10:57:58 -07:00
pre-commit-ci[bot] d421f49e2c [pre-commit.ci] pre-commit autoupdate (#529)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.5 → v0.15.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.5...v0.15.6)
- [github.com/psf/black-pre-commit-mirror: 26.3.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/26.3.0...26.3.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-16 11:07:33 -07:00
angr-bot f968bf6b9d Update version to 9.2.206.dev0 [ci skip] 2026-03-10 17:57:58 +00:00
pre-commit-ci[bot] 268d4e3b20 [pre-commit.ci] pre-commit autoupdate (#528)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.4 → v0.15.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.4...v0.15.5)
- [github.com/psf/black-pre-commit-mirror: 26.1.0 → 26.3.0](https://github.com/psf/black-pre-commit-mirror/compare/26.1.0...26.3.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-09 11:25:38 -07:00
angr-bot d08b21d456 Update version to 9.2.205.dev0 [ci skip] 2026-03-03 17:58:34 +00:00
pre-commit-ci[bot] f824b07c26 [pre-commit.ci] pre-commit autoupdate (#527)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.2 → v0.15.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.2...v0.15.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-02 11:44:16 -07:00
Fish e15f553b6e Fix missing header files on Windows by pinning to scikit-build-core < 0.12.0. (#526) 2026-02-27 22:12:56 -07:00
angr-bot 90239ac8c0 Update version to 9.2.204.dev0 [ci skip] 2026-02-24 18:02:21 +00:00
pre-commit-ci[bot] 264afab4ab [pre-commit.ci] pre-commit autoupdate (#525)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.1 → v0.15.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.1...v0.15.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-02-23 12:01:03 -07:00
angr-bot 82c35e85b6 Update version to 9.2.203.dev0 [ci skip] 2026-02-20 21:41:31 +00:00
angr-bot df7031e1a7 Update version to 9.2.202.dev0 [ci skip] 2026-02-18 08:20:03 +00:00
Fish 6806009865 Update version to 9.2.201.dev0 [ci skip] 2026-02-17 15:11:39 -07:00
pre-commit-ci[bot] ea2fa3733a [pre-commit.ci] pre-commit autoupdate (#524)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.0 → v0.15.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.0...v0.15.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-02-16 12:11:47 -07:00
github-actions[bot] 19b5363b71 Update version to 9.2.200.dev0 [ci skip] 2026-02-12 23:29:25 +00:00
github-actions[bot] 55efa68a1b Update version to 9.2.199.dev0 [ci skip] 2026-02-10 18:02:52 +00:00
pre-commit-ci[bot] f67179563f [pre-commit.ci] pre-commit autoupdate (#523)
updates:
- [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.24.1...v0.25)
- [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-02-09 12:20:55 -07:00
github-actions[bot] ff1de26f67 Update version to 9.2.198.dev0 [ci skip] 2026-02-04 02:20:20 +00:00
github-actions[bot] 3f92fece71 Update version to 9.2.197.dev0 [ci skip] 2026-01-29 02:10:31 +00:00
github-actions[bot] 171597f837 Update version to 9.2.196.dev0 [ci skip] 2026-01-27 17:50:01 +00:00