Sebastian Rittau
ef834dee89
gh-128546: Document that getaddrinfo() can return raw data ( #128547 )
...
Document that getaddrinfo() can return raw data
This is the case for IPv6 addresses if Python was compiled with
--disable-ipv6.
2025-12-29 21:23:30 -08:00
Thanos
79c03ac001
gh-69686: Remove untrue part of __import__ replacement docs ( #143261 )
...
Remove untrue part of `__import__` replacement docs
The original statement effectively says that replacing `__import__` at global scope affects import statements, and not only that, but only import statements within the rest of the executing module. None of that has been true since at least Python 2.7, I think.
This was likely missed in python/cpython#69686 .
2025-12-29 21:16:54 -08:00
Bénédikt Tran
b6b0e14b3d
gh-143200: fix UAFs in Element.__{set,get}item__ when the element is concurrently mutated ( #143226 )
2025-12-29 18:30:51 +01:00
Ken Jin
6cb245d260
gh-143183: Link trace to side exits, rather than stop (GH-143268)
2025-12-29 15:10:42 +00:00
Samuel
f37f57dfe6
gh-131421: Fix ASDL kw_defaults being expr* instead of expr?* (GH-133773)
...
Also fix docs ASDL highlighting.
2025-12-29 13:43:09 +02:00
Ken Jin
daa9aa4c0a
gh-143183: Rewind stop tracing to previous target (GH-143187)
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-28 22:12:31 +00:00
Tomas R.
713684de53
gh-131798: Remove bounds check when indexing into tuples with a constant index ( #137607 )
...
* Remove bounds check when indexing into tuples with a constant index
* Add news entry
* fixup after rebase
2025-12-28 22:06:06 +01:00
Loïc Simon
c3febba73b
gh-140870: Full coverage for _pyrepl._module_completer ( #143244 )
...
Full coverage for _pyrepl._module_completer
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2025-12-28 20:06:06 +01:00
wangxiaolei
0efbad60e1
gh-142994, gh-142996: document missing async generator and coroutine field entries in inspect ( #142997 )
2025-12-28 19:03:30 +01:00
Prithviraj Chaudhuri
fa9a4254e8
gh-142195: Fixed Popen.communicate indefinite loops (GH-143203)
...
Changed condition to evaluate if timeout is less than or equals to 0. This is needed for simulated time environments such as Shadow where the time will match exactly on the boundary.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2025-12-28 16:57:44 +00:00
AN Long
c3bfe5d5aa
gh-63016: fix failing mmap.flush tests on FreeBSD ( #143230 )
...
Fix `mmap.flush` tests introduced in 1af21ea320
where some flag combinations are not supported on FreeBSD.
2025-12-28 16:36:52 +01:00
Fatih Çelik
3ca1f2a370
gh-143241: Fix infinite loop in zoneinfo._common.load_data ( #143243 )
...
Correctly reject truncated TZif files in `ZoneInfo.from_file`.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-12-28 15:48:43 +01:00
Pablo Galindo Salgado
3ccc76f036
gh-143228: Fix UAF in perf trampoline during finalization ( #143233 )
2025-12-28 13:50:23 +00:00
Pablo Galindo Salgado
836b2810d5
gh-136186: Fix more flaky tests in test_external_inspection ( #143235 )
2025-12-28 12:52:32 +00:00
Serhiy Storchaka
522563549a
gh-143003: Fix possible shared buffer overflow in bytearray.extend() (GH-143086)
...
When __length_hint__() returns 0 for non-empty iterator, the data can be
written past the shared 0-terminated buffer, corrupting it.
2025-12-28 12:30:36 +00:00
Ken Jin
23abbf1f2b
gh-139922: Link to results in MSVC tail calling in What's New 3.15 (GH-143242)
...
Link to results in MSVC tail calling for whats new in 3.15
2025-12-28 12:15:24 +00:00
Bénédikt Tran
61ee04834b
gh-142557: fix UAF in bytearray.__mod__ when object is mutated while formatting %-style arguments ( #143213 )
2025-12-27 14:57:13 +00:00
Bénédikt Tran
84fcdbd86e
gh-142664: fix PyObject_Hash invokation post GH-143217 ( #143223 )
2025-12-27 14:30:09 +00:00
Pablo Galindo Salgado
3a728e5f93
gh-131591: Do not free page caches that weren't allocated ( #143205 )
2025-12-27 13:38:11 +00:00
Bénédikt Tran
00e24b80e0
gh-142664: fix UAF in memoryview.__hash__ via re-entrant data's __hash__ ( #143217 )
2025-12-27 13:12:03 +00:00
Bénédikt Tran
7726119651
gh-138122: fix AC warnings in Modules/_remote_debugging/module.c ( #143218 )
2025-12-27 12:57:03 +00:00
Bénédikt Tran
9976c2b634
gh-143195: fix UAF in {bytearray,memoryview}.hex(sep) via re-entrant sep.__len__ ( #143209 )
2025-12-27 13:32:52 +01:00
Rafael Fontenelle
f5e11facf2
no-issue: Fix override value in os.rst (gh-123522)
2025-12-27 19:48:01 +09:00
AN Long
1af21ea320
gh-63016: Add flags parameter on mmap.flush ( #139553 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-12-27 10:33:56 +00:00
SYan212
57d569942c
Fix typos in docs ( #143193 )
2025-12-27 09:52:28 +02:00
Duane Hilton
5d1e78f7b5
gh-143181: Fix 'overriden' -> 'overridden' in c-api/module.rst ( #143182 )
...
* Doc: Fix typo 'overriden' -> 'overridden' in c-api/module.rst
* Fix 'overriden' -> 'overridden' in tests
2025-12-27 02:23:57 -05:00
Pablo Galindo Salgado
54362898f3
gh-140739: Fix missing exception on allocation failure in BinaryWriter ( #143204 )
2025-12-27 01:39:21 +00:00
Marta Gómez Macías
9d92ac1225
gh-143040: Exit taychon live mode gracefully and display profiled script errors ( #143101 )
2025-12-27 00:36:15 +00:00
Hai Zhu
a1c6308346
gh-134584: Eliminate redundant refcounting from IS_OP (GH-143171)
...
Eliminate redundant refcounting from IS_OP
2025-12-26 20:30:02 +00:00
Hai Zhu
b3f2d80569
gh-134584: Eliminate redundant refcounting from _COMPARE_OP_X (GH-143186)
2025-12-26 16:12:28 +00:00
Pablo Galindo Salgado
d3d4cf9432
gh-140739: Fix crashes from corrupted remote memory ( #143190 )
2025-12-26 16:06:48 +00:00
Yongtao Huang
de22e718bb
Remove redundant pycore_optimizer.h includes ( #143184 )
...
`pycore_optimizer.h` was included redundantly in
Objects/frameobject.c and Python/instrumentation.c.
Both includes are unnecessary and can be safely removed.
No functional change.
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-12-26 11:11:11 +00:00
László Kiss Kollár
888d101445
gh-138122: Remove default duration for statistical profiling ( #143174 )
...
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
2025-12-25 19:21:16 +00:00
Hugo van Kemenade
ea3fd785cb
gh-142927: Tachyon: Fix contrast ratio in top panel ( #142936 )
2025-12-25 18:28:13 +00:00
ivonastojanovic
59ede34c8c
gh-138122: Convert GIL/GC/exception stats from tiles to progress bars ( #143177 )
2025-12-25 18:22:54 +00:00
Yongtao Huang
b9a4806430
gh-143164: Fix incorrect error message for ctypes bitfield overflow (GH-143165)
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-12-25 19:08:43 +02:00
Peter Bierma
8611f74e08
gh-142975: During GC, mark frozen objects with a merged zero refcount for destruction (GH-143156)
2025-12-25 16:31:41 +00:00
Yongtao Huang
579c5b496b
gh-143145: Fix possible reference leak in ctypes _build_result() (GH-143131)
...
The result tuple was leaked if __ctypes_from_outparam__() failed for any item.
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-12-25 14:24:25 +00:00
Hauke D
8d46f961c3
gh-143103: Added pad parameter to base64.z85encode() (GH-143106)
...
This makes it analogous to a85encode() and b85encode() and allows the
user to more easily meet the Z85 specification, which requires input
lengths to be a multiple of 4.
2025-12-25 13:34:44 +02:00
kaushal trivedi
86d904588e
gh-143004: Fix possible use-after-free in collections.Counter.update() (GH-143044)
...
This happened when the Counter was mutated when incrementing
the value for an existing key.
2025-12-25 09:13:39 +00:00
Ken Jin
cf6758ff9e
gh-143092: Make CALL_LIST_APPEND and BINARY_OP_INPLACE_ADD_UNICODE normal instructions (GH-143124)
...
These super instructions need many special cases in the interpreter, specializer, and JIT. It's best we convert them to normal instructions.
2025-12-24 22:03:00 +00:00
Sam Gross
594a4631c3
gh-120321: Fix TSan reported races on gi_frame_state (gh-143128)
2025-12-24 16:10:43 -05:00
Cody Maloney
305aff0a66
Move News for gh-142560 to Core and Builtins (GH-143154)
2025-12-24 21:03:10 +02:00
R. David Murray
7342890ed7
gh-142517: Fix typo in news item. ( #143150 )
2025-12-24 13:14:23 -05:00
Stan Ulbrych
3509fa5a12
gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136)
2025-12-24 19:56:59 +02:00
Tom Kuson
84b7e6970f
gh-140717: Add exc_text to LogRecord attributes table (GH-140718)
2025-12-24 17:30:20 +00:00
Pablo Galindo Salgado
7c44f37170
gh-138122: Extend binary profiling format with full source location and opcode ( #143088 )
...
Co-authored-by: Stan Ulbrych <stan@ulbrych.org>
2025-12-24 16:15:11 +00:00
R. David Murray
1e17ccd030
Correctly fold unknown-8bit originating from encoded words. ( #142517 )
...
The unknown-8bit trick was designed to deal with unknown bytes in an
ASCII message, and it works fine for that. However, I also tried to
extend it to handle bytes that can't be decoded using the charset
specified in an encoded word, and there it fails because there can be
other non-ASCII characters that were *successfully* decoded. The fix is
simple: do the unknown-8bit encoding using the utf-8 codec. This is
especially appropriate since anyone trying to do recovery on an unknown
byte string will probably attempt utf-8 first.
2025-12-24 09:14:39 -05:00
László Kiss Kollár
d4dc3dd9aa
gh-138122: Replace --interval with --sampling-rate ( #143085 )
2025-12-24 13:46:33 +00:00
Sam Gross
e8e044eda3
gh-143100: Fix memcpy data race in setobject.c (gh-143127)
2025-12-24 08:02:19 -05:00