Skip to content

[APP-108180] Update by merge v1.9.3 #7

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

Merged
merged 252 commits into from
Mar 17, 2025
Merged

[APP-108180] Update by merge v1.9.3 #7

merged 252 commits into from
Mar 17, 2025

Conversation

kevinliu0430
Copy link

@kevinliu0430 kevinliu0430 commented Mar 16, 2025

n10v and others added 30 commits September 2, 2017 15:05
Add a CallerPrettyfier callback to the json formatter
…formatter

Add a CallerPrettyfier callback to the text formatter
Fix error formatting based on best practices from Code Review Comments
fixes issue where terminal_check_notappengine.go can't access terminal
package since terminal package is in an internal package
dgsb and others added 27 commits September 12, 2021 15:58
reduce the list of cross build target
bump version of golang.org/x/sys dependency
update gopkg.in/yaml.v3 to v3.0.1
…-hooks-test-pkg

Fix data race in hooks.test package
This commit adds instructions to the syslog readme about how to
send different log levels to local logging (`log.SetLevel`) and
syslog hook.

fixes sirupsen#1369
…us.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.
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.
This commit fixes a potential denial of service vulnerability in logrus.Writer() that could be triggered by logging text longer than 64kb without newlines.
Use text when shows the logrus output
This reverts commit 6acd903, reversing
changes made to e59b167.
Commit 766cfec introduced this bug by defining an incorrect split
function. First it breaks the old behavior because it never splits at
newlines now. Second, it causes a panic because it never tells the
scanner to stop. See the bufio.ScanLines function, something like:
```
if atEOF && len(data) == 0 {
	return 0, nil, nil
}
```
is needed to do that.

This commit fixes it by restoring the old behavior and calling
bufio.ScanLines but also keep the 64KB check in place to avoid buffering
for to long.

Two tests are added to ensure it is working as expected.

Fixes sirupsen#1383

Signed-off-by: Paul Holzinger <[email protected]>
@kevinliu0430 kevinliu0430 merged commit 0c5b5a0 into master Mar 17, 2025
1 of 4 checks passed
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.