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

Scan text in 64KB chunks #1

Merged
merged 1 commit into from
May 4, 2023
Merged

Scan text in 64KB chunks #1

merged 1 commit into from
May 4, 2023

Conversation

ashmckenzie
Copy link

Extending the fantastic work by @ozfive at sirupsen#1376, this PR aims to illustrate the necessary fix, improved git commit message and fix CI.

This commit fixes a potential denial of service
vulnerability in logrus.Writer() that could be
triggered by logging text longer than 64KB
without newlines. Previously, the bufio.Scanner
used by Writer() would hang indefinitely when
reading such text without newlines, causing the
application to become unresponsive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants