net/smtp buffers a server reply of any length, so a mail server, or anyone on the path before STARTTLS, could send a greeting or EHLO reply that never ends and grow the panel's heap until the 30 s deadline, on every notification. Each session now reads at most 1 MiB from the server, below TLS, and fails with a clear error past it. |
||
|---|---|---|
| .. | ||
| email.go | ||
| email_deadline_test.go | ||
| email_test.go | ||
| ratelimiter_test.go | ||
| subscriber.go | ||