aboutsummaryrefslogtreecommitdiff
path: root/titlecomp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'titlecomp.pl')
-rw-r--r--titlecomp.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/titlecomp.pl b/titlecomp.pl
index 94d36b1..c8da677 100644
--- a/titlecomp.pl
+++ b/titlecomp.pl
@@ -38,6 +38,9 @@ for(split //, $data . chr(0xff)) {
if($_ eq "\0") {
if($run) {
$run++;
+ if($run == 256) {
+ die "can't handle runs >= 256, sorry\n";
+ }
} else {
$run = 1;
}