mqtt: handle POST/PUBLISH without a set POSTFIELDSIZE

Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28735

Added test 1916 and 1917 to verify.

Closes #6338
This commit is contained in:
Daniel Stenberg 2020-12-17 13:34:38 +01:00
parent 92fe66c510
commit debf23eead
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 191 additions and 4 deletions

View file

@ -30,7 +30,7 @@ mqtt
MQTT PUBLISH empty payload, no topic
</name>
<command option="binary-trace">
"mqtt:/%HOSTIP:%MQTTPORT/" -d ""
mqtt://%HOSTIP:%MQTTPORT -d ""
</command>
</client>