diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87da5fc5..4c61e099 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ jobs: test: strategy: matrix: - python_version: ['3.10', '3.12', '3.13', '3.14'] + python_version: ['3.10', '3.12', '3.13', '3.14', '3.15'] os: [ubuntu-latest] runs-on: ${{ matrix.os }} timeout-minutes: 30 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bb729b6..abf25e05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -155,6 +155,7 @@ The table below shows which release corresponds to each branch, and what date th - [#2750][2750] Fix DeprecationWarning with remote(ssl=True), checking remote certificates now - [#2761][2761] fix: don't truncate the last byte of `FileStructure.struntil` - [#2727][2727] feat(cli): add 'pwn errno --list' + perror-string lookup +- [#2792][2792] Fix deprecation warning for not using `RLIM_INFINITY` in `resource.setrlimit` (Python 3.15) [2784]: https://github.com/Gallopsled/pwntools/pull/2784 [2675]: https://github.com/Gallopsled/pwntools/pull/2675 @@ -235,6 +236,7 @@ The table below shows which release corresponds to each branch, and what date th [2750]: https://github.com/Gallopsled/pwntools/pull/2750 [2761]: https://github.com/Gallopsled/pwntools/pull/2761 [2727]: https://github.com/Gallopsled/pwntools/pull/2727 +[2792]: https://github.com/Gallopsled/pwntools/pull/2792 ## 4.15.1 diff --git a/pwnlib/util/misc.py b/pwnlib/util/misc.py index 438d958f..8e4d2f9d 100644 --- a/pwnlib/util/misc.py +++ b/pwnlib/util/misc.py @@ -948,7 +948,7 @@ if not %(aslr)r: ADDR_NO_RANDOMIZE = 0x0040000 ctypes.CDLL('libc.so.6').personality(ADDR_NO_RANDOMIZE) - resource.setrlimit(resource.RLIMIT_STACK, (-1, -1)) + resource.setrlimit(resource.RLIMIT_STACK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY)) # Attempt to dump ALL core file regions try: @@ -959,7 +959,7 @@ except Exception: # Assume that the user would prefer to have core dumps. try: - resource.setrlimit(resource.RLIMIT_CORE, (-1, -1)) + resource.setrlimit(resource.RLIMIT_CORE, (resource.RLIM_INFINITY, resource.RLIM_INFINITY)) except Exception: pass