Browse Source

Bug fix: The header indicator of the last El Torito catalog section header

was set to 0x90 rather than 0x91 if more than one boot image is in that
section.
release-1.5.4.branch
Thomas Schmitt 7 years ago
parent
commit
0fc4421e15
  1. 3
      libisofs/eltorito.c

3
libisofs/eltorito.c

@ -814,7 +814,8 @@ write_section_header(uint8_t *buf, Ecma119Image *t, int idx, int num_entries)
(struct el_torito_section_header *) buf;
/* 0x90 = more section headers follow , 0x91 = final section */
e->header_indicator[0] = 0x90 + (idx == t->catalog->num_bootimages - 1);
e->header_indicator[0] =
0x90 + (idx == t->catalog->num_bootimages - num_entries);
e->platform_id[0] = t->catalog->bootimages[idx]->platform_id;
e->num_entries[0] = num_entries & 0xff;
e->num_entries[1] = (num_entries >> 8) & 0xff;;

Loading…
Cancel
Save