search for: catoffset

Displaying 5 results from an estimated 5 matches for "catoffset".

Did you mean: patoffset
2014 Jun 22
0
isohybrid has 2 variants
..... -D_FILE_OFFSET_BITS=64 ... Thus above message and patch of Kai Kang should be considered. (The patch looks ok to me.) Other occurences of fseek() might cause problems too. Each change to fseeko() has to be checked, whether the type of the offset argument is indeed off_t. Example: uint32_t catoffset = 0; ... if (fseek(fp, catoffset * 2048, SEEK_SET)) The call has to become something like if (fseeko(fp, ((off_t) catoffset) * 2048, SEEK_SET)) Adresses which are surely smaller than 31 bit could be left unchanged. E.g.: if (fseek(fp, 17 * 2048, SEEK_SET)) Kai Kang's cha...
2014 Jun 22
0
[PATCH 5/6] utils/isohybrid.c: Change all fseek(3) to fseeko(3)
...SEEK_SET)) + if (fseeko(fp, (off_t) 17 * 2048, SEEK_SET)) err(1, "%s: seek error - 1", argv[0]); bufz = buf = calloc(BUFSIZE, sizeof(char)); @@ -935,7 +935,7 @@ main(int argc, char *argv[]) if (mode & VERBOSE) printf("catalogue offset: %d\n", catoffset); - if (fseek(fp, catoffset * 2048, SEEK_SET)) + if (fseeko(fp, ((off_t) catoffset) * 2048, SEEK_SET)) err(1, "%s: seek error - 2", argv[0]); buf = bufz; @@ -985,7 +985,7 @@ main(int argc, char *argv[]) } } - if (fseek(fp, (de_lba * 2048 + 0x40), SEEK_S...
2014 Jun 22
16
Announcing a patch series for isohybrid.c
Hi, following will be 6 patch proposals for isohybrid.c 1: Encode GPT partition names as UTF-16LE 2: Correct blocking factor in APM partition block counts 3: Correct end block address of first GPT partition 4: Write GPT backup to the very end of the image 5: Change all fseek(3) to fseeko(3) 6: Introduce option --mbr and make isohybrid.c compilable standalone If the form needs adjustments,
2014 Jun 22
5
isohybrid has 2 variants
> Hi, > > > All the "isohybrid.exe" I know of are based on the Perl variant. > > I just got one from > http://www.filewatcher.com/m/isohybrid.exe.39568-0.html > > Its strings seem not to stem from isohybrid.pl. > > Digging in slitaz source brought a shell script (that would be > variant #5 then): >
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...tat isostat; +unsigned int padding = 0; + +uuid_t disk_uuid, part_uuid, iso_uuid; uint8_t mode = 0; -enum { VERBOSE = 1 }; +enum { VERBOSE = 1 , EFI = 2 , MAC = 4}; /* user options */ uint16_t head = 64; /* 1 <= head <= 256 */ @@ -61,10 +66,150 @@ uint16_t ve[16]; uint32_t catoffset = 0; uint32_t c = 0, cc = 0, cs = 0; +uint32_t psize = 0, isosize = 0; + /* boot catalogue parameters */ uint32_t de_lba = 0; uint16_t de_seg = 0, de_count = 0, de_mbz2 = 0; uint8_t de_boot = 0, de_media = 0, de_sys = 0, de_mbz1 = 0; +uint32_t efi_lba = 0, mac_lba = 0; +uint16_t efi_count =...