Closed
Description
In _io_BytesIO_readinto_impl() len value is used in memcpy and then checked for being positive.
It's better to move assertions before memcpy.
This may be done with the following commit: da720c1
In _io_BytesIO_readinto_impl() len value is used in memcpy and then checked for being positive.
It's better to move assertions before memcpy.
This may be done with the following commit: da720c1
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant
Activity
corona10 commentedon Mar 20, 2025
Sounds reasonable please submit the patch.
[-]Checking len bounds after usage[/-][+]Checking len bounds after usage in bytesio.c[/+]gh-131505: Move len boundary assertions before using len. (#131536)
pythongh-131505: Move len boundary assertions before using len. (pyth…
gpshead commentedon May 19, 2025
thanks!
[3.14] gh-131505: Move len boundary assertions before using len. (GH-…