]> git.ipfire.org Git - thirdparty/curl.git/commit
smtp: check for and bail out on too short EHLO response
authorDaniel Stenberg <daniel@haxx.se>
Mon, 2 Sep 2019 21:04:26 +0000 (23:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Sep 2019 06:25:23 +0000 (08:25 +0200)
commit4d0306c6982ad80be532438265c52c39a55889a0
tree82a332eb3444e02c07b306d072148fac2d326c63
parent198b73d12ce36256fb7db85a256920d536b20a72
smtp: check for and bail out on too short EHLO response

Otherwise, a three byte response would make the smtp_state_ehlo_resp()
function misbehave.

Credit to OSS-Fuzz
Bug: https://crbug.com/oss-fuzz/16918

Assisted-by: Max Dymond
Closes #4287
lib/smtp.c