Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Closed
Description
Feature or enhancement
struct.pack_into() raises IndexError if theoffset argument is too large for Py_ssize_t. It was introduced in75c3d6f (bpo-3694), because PyLong_AsSsize_t() at that time raised SystemError for non-long. This is the only IndexError in the module --struct.unpack_from() raises OverflowError. There were no tests for this, I only added tests just now (PR#143901).