Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

ensure endian safety for non-little-endian machines

#85

I bet that parts of the libiphone code are not endian safe, esp. in the AFC implementation, e.g. when passing file offsets over to the device. For now, the values are just copied, but this would not work on big endian machines and perhaps break things on the device. I think we should resolve this before releasing 1.0

Reported by Nikias Bassen · November 8th, 2009 @ 10:25 PM

State: hold
Milestone: 1.2.0 Release
Assigned to: nobody

Activity

  1. Nikias Bassen
    Nikias Bassen
    • State changed from new to open
    • Assigned user set to Matt Colyer

    I did some investigation and found out that libiphone's code except AFC should be endian safe. For AFC a patch is attached that should make it work on big endian machines too. However I have no hardware to test it on, so perhaps somebody may verify this.

    November 16th, 2009 @ 11:26 PM

  2. Matt Colyer
    Matt Colyer

    I need someone to test this on the proper machine before I can apply.

    November 18th, 2009 @ 03:22 AM

  3. Martin S.
    Martin S.
    • Assigned user cleared.
    • State changed from open to hold
    • Milestone changed from 1.0 Release to 1.2.0 Release

    Following options to test:

    • Some QEMU image
    • An older Mac
    • ARM distro packages in big-endian mode

    I think we can for sure hold this back until we have properly tested it.
    As whatever issues it might cause, it still won't affect the public API, only private code.

    If anyone takes the challenge to make it run on a big endian machine, he'll sure be able to verify this patch and libiphone functionality.

    Once verified we can then ship a new release with the internals taking endianness into account which should easily be possible past 1.0.

    Moving this on hold unless someone comes up with a test of course. :)

    November 19th, 2009 @ 01:02 PM

  4. Matt Colyer
    Matt Colyer
    • State changed from hold to resolved

    (from [12a44afce569c2cdf31018c259745e09b13bffc3]) added endian safety to AFC

    This should make libiphone compatible with big endian machines.

    [#85 ensure endian safety for non-little-endian machines state:resolved]

    Signed-off-by: Matt Colyer matt@colyer.name
    http://github.com/MattColyer/libiphone/commit/12a44afce569c2cdf3101...

    December 1st, 2009 @ 05:01 AM

  5. Matt Colyer

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.