You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For all the following chunks of the long message the source metadata field will be nil, which will result in a panic.
Environment
OS: [e.g. iOS]
Version [e.g. 22]
Additional Context
It seems like we need to read the full message from the connection before parsing its metadata. The current approach with the limited buffer is to fragile.
References
#0000
The text was updated successfully, but these errors were encountered:
Please review the Community Note before submitting
TruffleHog Version
v3.88.2
Trace Output
trufflehog/pkg/sources/syslog/syslog.go
Lines 251 to 285 in b6b00bb
Expected Behavior
Syslog works without error
Actual Behavior
Panic while sending long messages via syslog
Steps to Reproduce
The main issue is if the syslog message field is longer than the buffer (8096 bytes), it will be chunked.
Then there will be attempt to extract metadata from each chunk, which will end with the error for chunks with numbers 1+.
For all the following chunks of the long message the source metadata field will be nil, which will result in a panic.
Environment
Additional Context
It seems like we need to read the full message from the connection before parsing its metadata. The current approach with the limited buffer is to fragile.
References
The text was updated successfully, but these errors were encountered: