Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request from GHSA-ggw7-xr6h-mmr8
net bugfix: potential buffer overrun
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/bin/bash | ||
| # added 2022-04-25 by RGerhards, released under ASL 2.0 | ||
| . ${srcdir:=.}/diag.sh init | ||
| generate_conf | ||
| add_conf ' | ||
| $MaxMessageSize 128 | ||
| global(processInternalMessages="on" | ||
| oversizemsg.input.mode="accept") | ||
| module(load="../plugins/imptcp/.libs/imptcp") | ||
| input(type="imptcp" port="0" listenPortFileName="'$RSYSLOG_DYNNAME'.tcpflood_port") | ||
| action(type="omfile" file="'$RSYSLOG_OUT_LOG'") | ||
| ' | ||
| startup_vg | ||
| echo "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000 <120> 2011-03-01T11:22:12Z host tag: this is a way too long message that has to be truncatedtest1 test2 test3 test4 test5 ab" > $RSYSLOG_DYNNAME.inputfile | ||
| tcpflood -I $RSYSLOG_DYNNAME.inputfile | ||
| shutdown_when_empty | ||
| wait_shutdown_vg | ||
| check_exit_vg | ||
|
|
||
| # the prime objective is to see if valgrind check is ok, but we also do a quick content check (just in case) | ||
| content_check "received oversize message from peer" | ||
| exit_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/bin/bash | ||
| # added 2022-04-25 by RGerhards, released under ASL 2.0 | ||
| . ${srcdir:=.}/diag.sh init | ||
| generate_conf | ||
| add_conf ' | ||
| $MaxMessageSize 128 | ||
| global(processInternalMessages="on" | ||
| oversizemsg.input.mode="accept") | ||
| module(load="../plugins/imtcp/.libs/imtcp") | ||
| input(type="imtcp" port="0" listenPortFileName="'$RSYSLOG_DYNNAME'.tcpflood_port") | ||
| action(type="omfile" file="'$RSYSLOG_OUT_LOG'") | ||
| ' | ||
| startup_vg | ||
| echo "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000 <120> 2011-03-01T11:22:12Z host tag: this is a way too long message that has to be truncatedtest1 test2 test3 test4 test5 ab" > $RSYSLOG_DYNNAME.inputfile | ||
| tcpflood -I $RSYSLOG_DYNNAME.inputfile | ||
| shutdown_when_empty | ||
| wait_shutdown_vg | ||
| check_exit_vg | ||
|
|
||
| # the prime objective is to see if valgrind check is ok, but we also do a quick content check (just in case) | ||
| content_check "received oversize message from peer" | ||
| exit_test |