Closed
Bug 2720
Opened 26 years ago
Closed 26 years ago
byte order dependency in XDR'd strings
Categories
(Core :: JavaScript Engine, defect, P2)
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.
Comment 1•26 years ago
|
||
Marked TFV 1.4 indicating we want this bug fixed for 1.4.
Comment 2•26 years ago
|
||
Marking TFV blank; not required for 1.4.
Assignee | ||
Updated•26 years ago
|
Assignee: norris → brendan
Hardware: All
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Comment 4•26 years ago
|
||
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
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.
Description
•