-
Notifications
You must be signed in to change notification settings - Fork 362
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
Address parser hangs #212
Comments
Thanks!
…On Thu, 13 Aug 2020, 11:09 int01, ***@***.***> wrote:
Hi,
The address parser (mail/rfc5321/parse.go) hangs in some cases.
This code will hangs.
package main
import (
"github.com/flashmob/go-guerrilla/mail"
)
func main() {
mail.NewAddress("test")
}
You need to fix next() function.
func (s *Parser) next() byte {
if s.pos+1 < len(s.buf) {
s.pos++
s.ch = s.buf[s.pos]
} else {
s.ch = 0
}
return s.ch
}
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#212>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE6MPZPUIK2IF6JOVLFMPTSANDMNANCNFSM4P5TURRA>
.
|
Is this merged anywhere? Getting hit by this bug as well, causing OOM system hangups. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The address parser (mail/rfc5321/parse.go) hangs in some cases.
This code will hang.
You need to fix next() function.
Thanks.
The text was updated successfully, but these errors were encountered: