Closed Bug 871555 Opened 6 years ago Closed 6 years ago

Alignment problems in websocket channel

Categories

(Core :: Networking: WebSockets, defect)

Sun
NetBSD
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: martin, Assigned: martin)

Details

Attachments

(1 file)

There are a few dubious lhs pointer casts which may triger bus errors on alignment critical archtitectures. At least the last one (assignment of mask to the header) did actualy hit in testing on sparc64.

Attached patch fixes it by using temporary variables and memcpy.
Attachment #748823 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/4539a7706881
Assignee: nobody → martin
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.