Skip to content

[ErrorHandler] Formatting binary strings causes memory exhausion #53005

Closed
@aleho

Description

@aleho

Symfony version(s) affected

5.4

Description

If the trace content contains binary strings, e.g. images, var_dump leads to memory exhaustion (Allowed memory size of X bytes exhausted).

How to reproduce

Cause an error with a code path that passes a longer binary string to a method.

Possible Solution

Check for non-unicode characters in a string and skip adding it to the formatted output.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions