1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Added some assertions.

committer: mfx <mfx> 977395014 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2000-12-21 10:36:54 +00:00
parent 2bb2124356
commit 166d91ac48

View File

@ -224,7 +224,10 @@ static Packer *getUnpacker(InputFile *f)
static void assertPacker(const Packer *p)
{
assert(p->getFormat() > 0);
assert(p->getFormat() <= 255);
assert(p->getVersion() >= 11);
assert(p->getVersion() < 255);
assert(strlen(p->getName()) <= 13);
}