Closed Bug 297164 Opened 20 years ago Closed 20 years ago

fix endian issues in asdecode

Categories

(Core Graveyard :: File Handling, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jaas, Assigned: jaas)

Details

Attachments

(1 file)

We are assuming big endian in asdecode, which isn't OK for Intel-based macs. A patch was provided by Apple to fix the problem.
Attached patch Apple fix v1.0Splinter Review
Attachment #185752 - Flags: superreview?(sfraser_bugs)
Attachment #185752 - Flags: review+
Attachment #185752 - Flags: superreview?(sfraser_bugs) → superreview+
Attachment #185752 - Flags: approval1.8b3?
Attachment #185752 - Flags: approval1.8b3? → approval1.8b3+
Checked in to trunk. Checking in asdecode.cpp; /cvsroot/mozilla/config/asdecode.cpp,v <-- asdecode.cpp new revision: 3.5; previous revision: 3.4
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 185752 [details] [diff] [review] Apple fix v1.0 >+ entry *swap = &entries[i]; >+ swap->id = OSSwapBigToHostInt32(swap->id); >+ swap->offset = OSSwapBigToHostInt32(swap->offset); >+ swap->length = OSSwapBigToHostInt32(swap->length); >+ > entry& entry = entries[i]; No need for the |swap| variable; you can just use the existing |entry| variable.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: