parent
1896b1491b
commit
17d53af105
@ -31,7 +31,7 @@ try:
|
|||||||
except:
|
except:
|
||||||
sys.exit("Could not open input file '{}'".format(args.ifile))
|
sys.exit("Could not open input file '{}'".format(args.ifile))
|
||||||
|
|
||||||
if len(idata) >= args.pad - 4:
|
if len(idata) > args.pad - 4:
|
||||||
sys.exit("Input file size ({} bytes) too large for final size ({} bytes)".format(len(idata), args.pad))
|
sys.exit("Input file size ({} bytes) too large for final size ({} bytes)".format(len(idata), args.pad))
|
||||||
|
|
||||||
idata_padded = idata + bytes(args.pad - 4 - len(idata))
|
idata_padded = idata + bytes(args.pad - 4 - len(idata))
|
||||||
|
Loading…
Reference in New Issue
Block a user