From 3749d61e1f7a59f5ec5067e560af1eb610c82015 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 12 Aug 2012 09:27:39 +0200 Subject: Imported WebKit commit a77350243e054f3460d1137301d8b3faee3d2052 (http://svn.webkit.org/repository/webkit/trunk@125365) New snapshot with build fixes for latest API changes in Qt and all WK1 Win MSVC fixes upstream --- Source/WebCore/plugins/PluginDatabase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/WebCore/plugins/PluginDatabase.cpp') diff --git a/Source/WebCore/plugins/PluginDatabase.cpp b/Source/WebCore/plugins/PluginDatabase.cpp index 9508c5b8c..e021bad0e 100644 --- a/Source/WebCore/plugins/PluginDatabase.cpp +++ b/Source/WebCore/plugins/PluginDatabase.cpp @@ -510,7 +510,8 @@ static bool readTime(time_t& resultTime, char*& start, const char* end) if (start + sizeof(time_t) >= end) return false; - resultTime = *reinterpret_cast_ptr(start); + // The stream is not necessary aligned. + memcpy(&resultTime, start, sizeof(time_t)); start += sizeof(time_t); return true; -- cgit v1.2.1