Skip to content

Allocated buffer of size UINT_MAX #675

Closed
@sth

Description

@sth

A 4GB buffer is allocated internally when formatting this:

fmt::format("{:= }", 1.0)

In format.h:2790, as.width_ is zero and wraps to UINT_MAX when being decremented.

I'm not sure if the calculation is also off by one in other cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions