We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd3204a commit e3e93a3Copy full SHA for e3e93a3
src/main.cpp
@@ -380,7 +380,10 @@ int main(int argc, char **argv)
380
381
delete bit;
382
} else if (args.prg_type == Device::RD_FLASH) {
383
- flash.dump(args.bit_file, args.offset, args.file_size);
+ if (args.file_size == 0)
384
+ printError("Error: 0 size for dump");
385
+ else
386
+ flash.dump(args.bit_file, args.offset, args.file_size);
387
}
388
389
if (args.unprotect_flash && args.bit_file.empty())
0 commit comments