[Webkit-unassigned] [Bug 89787] alignment crash in MIMESniffer
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 11 14:29:30 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=89787
--- Comment #2 from Rob Buis <rwlbuis at gmail.com> 2012-07-11 14:29:30 PST ---
(In reply to comment #1)
> One way to fix this is by simply not using reinterpret_cast_ptr:
>
> - const uint32_t* data32 = reinterpret_cast_ptr<const uint32_t*>(data);
> + const uint32_t* data32 = static_cast<const uint32_t*>(static_cast<const void*>(data));
>
> For ARMv7/BLACKBERRY this works fine, no warning and no ASSERT hit.
Forgot to say, ARMv7 allows the possible unalignment, there is a speed penalty but the unaligned case seems to be rare.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list