Bug 70947
| Summary: | SIGBUS in PluginDatabase readTime on sparc/solaris 10 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | The Written Word <bugs-webkit> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, rniwa |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Other | ||
| OS: | Other | ||
The Written Word
Crashes in Source/WebCore/plugins/PluginDatabase.cpp:511 -
resultTime = *reinterpret_cast_ptr<time_t*>(start);
Because start is not aligned on a 32 bit boundary.
Using memcpy fixes this for us. i.e.
memcpy(&resultTime,start,sizeof(time_t));
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
Webkit > WebCore source on Github does not have "PluginDatabase.cpp" file:
https://github.com/WebKit/WebKit/tree/e4e4bba1f291d4773b907199bb5e6976d14c223d/Source/WebCore/plugins
Only reference to :PluginDatabase.cpp" exist in following file (in comment):
https://github.com/WebKit/WebKit/blob/e4e4bba1f291d4773b907199bb5e6976d14c223d/Source/WebCore/plugins/PluginData.h#L95
Which might be Not Applicable now.
There are two more reference to "PluginDatabase.cpp" but they are in WebkitLegacy (for Mac):
https://github.com/WebKit/WebKit/blob/1c6be76d456bf2887e32c236bdaf6f24c2b353ae/Source/WebKitLegacy/mac/WebView/WebViewData.h#L298
https://github.com/WebKit/WebKit/blob/5ddb4127ac4e4a104338422e546a1cdc7b698769/Source/WebKitLegacy/mac/WebView/WebView.mm#L1739
I think for Solaris / Spar port, the plugin support has been removed similar to other and I think this can be marked as "RESOLVED WONTFIX". Thanks!