2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

configDB.pm: add length check for reading value (max 64k) #112486

git-svn-id: https://svn.fhem.de/fhem/trunk@22289 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2020-06-27 17:50:46 +00:00
parent 815d27b00f
commit 6740362c9a

View File

@ -537,7 +537,7 @@ sub cfgDB_SaveState {
$val =~ s/\n/\\\n/g;
$out = "setstate $d $rd->{TIME} $c $val";
if (length($out) > 65530) {
Debug "setstate $d $c: value too long!";
Log3(undef, 1, "Device $d Reading $c: value exceeds length of 64k and will be ignored");
} else {
push @rowList, $out;
}