Closed Bug 2720 Opened 26 years ago Closed 26 years ago

byte order dependency in XDR'd strings

Categories

(Core :: JavaScript Engine, defect, P2)

All
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: shaver, Assigned: brendan)

Details

(This bug imported from BugSplat, Netscape's internal bugsystem.  It
was known there as bug #299794
http://scopus.netscape.com/bugsplat/show_bug.cgi?id=299794
Imported into Bugzilla on 01/27/99 15:35)

Strings produced by Script.prototype.freeze have a byte-order dependency.

From Bernhard Marschall (bmarsch@hyperwave.com):
> After taking a closer look, I got the impression the byte-swapping is done
> twice: once by the JS_XDRxxx calls and once in the #ifdef IS_BIG_ENDIAN
> section in script_freeze.
Marked TFV 1.4 indicating we want this bug fixed for 1.4.
Marking TFV blank; not required for 1.4.
this bug belongs with Norris now.

bjorn
Assignee: norris → brendan
Hardware: All
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
The byte-swapping is necessary to make strings (unicode vectors) platform
independent.  Viewed as byte-vectors, they'll have different contents depending
on endian-ness -- but the byte-vector in one machine is never visible to another
(only strings may be passed among machines).

/be
Status: RESOLVED → VERIFIED
Changing component to "Javascript Engine".  "Javascript" component is being
retired.
Changing component to "Javascript Engine".  "Javascript" component is being

retired.
You need to log in before you can comment on or make changes to this bug.