mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
00_MQTT2_CLIENT.pm: defend against deep recursion(?) (Froum #92946)
git-svn-id: https://svn.fhem.de/fhem/trunk@17707 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
00592fe634
commit
706b47adf6
@ -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