|
From: <sv...@va...> - 2011-10-02 10:26:56
|
Author: tom
Date: 2011-10-02 11:22:08 +0100 (Sun, 02 Oct 2011)
New Revision: 12082
Log:
Use read_UInt to get the CRC as it may not be aligned. Fixes #283154.
Modified:
trunk/coregrind/m_debuginfo/readelf.c
Modified: trunk/coregrind/m_debuginfo/readelf.c
===================================================================
--- trunk/coregrind/m_debuginfo/readelf.c 2011-10-02 10:20:12 UTC (rev 12081)
+++ trunk/coregrind/m_debuginfo/readelf.c 2011-10-02 10:22:08 UTC (rev 12082)
@@ -2218,7 +2218,7 @@
vg_assert(crc_offset + sizeof(UInt) <= debuglink_sz);
/* Extract the CRC from the debuglink section */
- crc = *(UInt *)(debuglink_img + crc_offset);
+ crc = ML_(read_UInt)(debuglink_img + crc_offset);
/* See if we can find a matching debug file */
find_debug_file( di, di->fsm.filename, buildid,
|