mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
00_MQTT2_CLIENT.pm: defend against deep recursion(?) (Froum #92946)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17707 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dd61a87a89
commit
fb4c024cb2
@ -251,9 +251,10 @@ MQTT2_CLIENT_Read($@)
|
||||
}
|
||||
|
||||
my ($tlen, $off) = MQTT2_CLIENT_getRemainingLength($hash);
|
||||
if($tlen < 0) {
|
||||
if($tlen < 0 || $tlen+$off<=0) {
|
||||
Log3 $name, 1, "Bogus data from $name, closing connection";
|
||||
MQTT2_CLIENT_Disco($hash);
|
||||
return;
|
||||
}
|
||||
return if(length($hash->{BUF}) < $tlen+$off);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user