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:
parent
2bb2124356
commit
166d91ac48
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user