Skip to content

Fix #675#680

Merged
RobertoPrevato merged 6 commits into
mainfrom
fix/675
May 11, 2026
Merged

Fix #675#680
RobertoPrevato merged 6 commits into
mainfrom
fix/675

Conversation

@RobertoPrevato
Copy link
Copy Markdown
Member

No description provided.

RobertoPrevato and others added 6 commits May 11, 2026 21:11
…rror for large files

Fixes #675. The C int type used for the loop variable in get_chunks overflows
for data larger than ~2GB. Py_ssize_t matches Python's indexing size and
handles arbitrarily large buffers correctly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
cdef int max_age in cookies.pxd/.pyx overflows for max-age values > 2^31.
Same class of bug as the scribe.pyx get_chunks overflow (issue #675).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…_age param type

- scribe.pyx: cdef int MAX_RESPONSE_CHUNK_SIZE is not exported as a Python name
  from .so files; expose as Python-level constant and use private C alias internally
- cookies.pyx: Cookie.__init__ param was still typed as C int, causing OverflowError
  before assignment to the long long field; changed param to long long

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@RobertoPrevato RobertoPrevato merged commit 50cbbd6 into main May 11, 2026
16 checks passed
@RobertoPrevato RobertoPrevato deleted the fix/675 branch May 11, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant