mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-11-07 09:25:58 -10:00
Test on Python 3.15 (#2792)
* Test on Python 3.15 * Use `RLIM_INFINITY` instead of `-1` constant for rlimit modification Python 3.15 warns against using negative values instead of the constant: DeprecationWarning: Use RLIM_INFINITY instead of negative limit value. It has been available since Python 2. * Update CHANGELOG
This commit is contained in:
1 parent
f8432266cd
commit
b83a0ddc8c
3 files changed
+5
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user