Closed Bug 310860 Opened 19 years ago Closed 19 years ago

Endian Problem in nsGTKRemoteService.cpp

Categories

(Thunderbird :: General, defect)

Sun
Solaris
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 312154

People

(Reporter: km, Assigned: mscott)

Details

User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9a1) Gecko/20050925 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9a1) Gecko/20050925 Firefox/1.6a1

remote commands (like mailto:) hang on Big Endian machines because of the TWO
instances of 

    // Failed to get the data off the window or it was the wrong type?
   if (!data || !*data)

(data is a char *, and the first 4 bytes in the buffer are an integer)

The easy fix is to change the test to

    if (!data || !*(int *)data)

Don't know if there is also a deeper problem between mixed byte order server and
client.


Reproducible: Always




Although this effects mailto this is not directly related to bug 281847.

*** This bug has been marked as a duplicate of 312154 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.