Skip to content

_remote_debugging: prevent 32-bit integer overflow when decoding stack data from .pyb files #148252

@pablogsal

Description

@pablogsal

On 32-bit builds the new profiler binary reader can mis-handle large stack-depth values while decoding certain .pyb inputs because currently computes the final depth with size_t arithmetic; if that arithmetic wraps, the later bounds check is performed on the wrong value and decoding can fail incorrectly.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions