]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-13733...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Aug 2025 09:37:02 +0000 (11:37 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Aug 2025 09:37:02 +0000 (09:37 +0000)
commit8905f7a99bd9c2851bec9db1d09bc4e1820b5f7d
tree9cc120c42bf5871575bea32aab5249333d1b5ec3
parent751a890f160cfc2b810d093aed7570fb98e2de62
[3.13] gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338) (GH-137507)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
(cherry picked from commit baefaa6cba1d69efd2f930cdc56bca682c54b139)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_resource.py
Misc/NEWS.d/next/Library/2025-08-03-13-16-39.gh-issue-137044.0hPVL_.rst [new file with mode: 0644]
Modules/clinic/resource.c.h
Modules/resource.c