]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-13733...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 18:43:12 +0000 (20:43 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 18:43:12 +0000 (20:43 +0200)
commitc4be405fe98e2e6176475c87d12ddf9668e8dda2
tree229ff66e08efe809dbb1a17ca8c8ff8bb4c42409
parentb414ad10434de87c8b04dc3d819fa01e712f550f
[3.14] gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338) (#137506)

gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338)

* 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