Bug fix: iso_image_report_system_area() did not show GPT partitions of size 0.

This commit is contained in:
Thomas Schmitt 2015-04-18 13:54:54 +02:00
parent 003aa5832e
commit c8776e605e
1 changed files with 2 additions and 1 deletions

View File

@ -4213,7 +4213,8 @@ int iso_analyze_gpt(IsoImage *image, IsoDataSource *src, int flag)
start_block = iso_read_lsb64(part + 32);
block_count = iso_read_lsb64(part + 40);
flags = iso_read_lsb64(part + 48);
if (block_count < start_block)
if ((start_block == 0 && block_count == 0) ||
block_count + 1 < start_block)
continue;
block_count = block_count + 1 - start_block;
if (sai->gpt_req == NULL) {