Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't warn when mbat_start is AVAIL instead of EOC (github #9).

  • Loading branch information...
commit 7919a72564243c7bd169909db99e984a59a3c29f 1 parent 975365b
@aquasync authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ole/storage/base.rb
View
2  lib/ole/storage/base.rb
@@ -385,7 +385,7 @@ def validate!
# 3 for this value.
# transacting_signature != "\x00" * 4 or
if threshold != 4096 or
- num_mbat == 0 && mbat_start != AllocationTable::EOC or
+ num_mbat == 0 && ![AllocationTable::EOC, AllocationTable::AVAIL].include?(mbat_start) or
reserved != "\x00" * 6
Log.warn "may not be a valid OLE2 structured storage file"
end
Please sign in to comment.
Something went wrong with that request. Please try again.