#1 Patch for platforms where unsigned long != 32 bits

closed-accepted
nobody
None
5
2006-01-28
2005-01-29
Nils Nordman
No

Running extract-xiso on Debian Linux amd64 gives the
following error:

[nino@cohen:~/download]% extract-xiso -l somexiso.iso
extract-xiso v2.4b2 for linux - written by in
<in@fishtank.com>

seek error: Invalid argument

The problem is that extract-xiso incorrectly assumes
that unsigned long are 32 bits, which causes problems
in verify_xiso where it tries to read in a 32-bit
number into out_root_dir_sector and out_root_dir_size.
The attached patch simply changes the unsigned longs
into int32_t which should work on unix platforms, for
windows platforms it might be neccessary to #define
int32_t _int32 or something.

Discussion

  • Nils Nordman
    Nils Nordman
    2005-01-29

    extract-xiso size patch.

     
    Attachments
  • in
    in
    2006-01-28

    Logged In: YES
    user_id=1034425

    Added to v2.5

     
  • in
    in
    2006-01-28

    • status: open --> closed-accepted