Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit string repeat #129

Open
MiSawa opened this issue Mar 16, 2022 · 0 comments
Open

Limit string repeat #129

MiSawa opened this issue Mar 16, 2022 · 0 comments

Comments

@MiSawa
Copy link
Owner

MiSawa commented Mar 16, 2022

fuzz found

$ cargo fuzz fmt xq artifacts/xq/minimized-from-35b822bd4dbd5db9bca8f9b3c812cec01a6503fd

Output of `std::fmt::Debug`:

(
    "tostring*8E18   ",
    "8 ",
)

Essentially this is "a" * 8E18 that cause an allocation with a huge amount of bytes causing an memory allocation failure.
Though we can't fully prevent memory allocation issue anyway...

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

No branches or pull requests

1 participant