Skip to content

infinite loop issues when parsing formating flags#17

Merged
urso merged 1 commit intourso:masterfrom
ph:fix/format-string-memleak-infinite-loop
Dec 16, 2019
Merged

infinite loop issues when parsing formating flags#17
urso merged 1 commit intourso:masterfrom
ph:fix/format-string-memleak-infinite-loop

Conversation

@ph
Copy link
Copy Markdown
Contributor

@ph ph commented Dec 16, 2019

When the parseFlags was invoked on string that contains a +, the parsing
code was entering into an infinite and would keep writing the same
string to the buffer until all the memory was consumed.

When the parseFlags was invoked on string that contains a +, the parsing
code was entering into an infinite and would keep writing the same
string to the buffer until all the memory was consumed.
@urso urso merged commit 5d80d27 into urso:master Dec 16, 2019
ph added a commit to elastic/beats that referenced this pull request Dec 17, 2019
This PR add the fix from urso/ecslog#17
Which fix the infinite loop when using parsing flags, the bug was making
the library consume all the available memory until the OS killed the
process.
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
This PR add the fix from urso/ecslog#17
Which fix the infinite loop when using parsing flags, the bug was making
the library consume all the available memory until the OS killed the
process.
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.

2 participants