Change #246796
| Category | curl |
| Changed by | TheBitBrine <blacknomex08@gmail.com> |
| Changed at | Sun 26 Oct 2025 10:59:20 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | a49e4e3d16991465144558f405b2d7972824abb0 |
Comments
pop3: fix CAPA response termination detection The code was checking if a line starts with '.', which would incorrectly match capability names starting with dots. Per RFC 2449, the terminator must be a line containing only a single dot. RFC 2449 also explicitly excludes '.' from valid capability name starting characters, so this is purely theoretical, but the code should match the spec. Changed to check for exact match: line length of 3 with '.\r' or length 2 with '.\n' to handle both CRLF and LF-only servers. (Mistake detected with ZeroPath) Fixes #19228 Reported-by: Joshua Rogers Closes #19245
Changed files
- lib/pop3.c