]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/CalendarEvent.pm
calendarevent: check range for start also without repetition
[pve-common.git] / src / PVE / CalendarEvent.pm
index 2714841c1aab6039c4f6337e348d61d68231734d..a053f389d5c3b1ed7cdf862174e362a7dfde116f 100644 (file)
@@ -55,6 +55,7 @@ sub parse_calendar_event {
                    $$matchall_ref = 1;
                } else {
                    $start = int($start);
+                   die "value '$start' out of range\n" if $start >= $max;
                    $res_hash->{$start} = 1;
                }
            }