From: Philippe Waroquiers Date: Thu, 31 Jul 2014 16:44:51 +0000 (+0000) Subject: cfsi_m_ix array should only be indexed according to sizeof_m_ix, X-Git-Tag: svn/VALGRIND_3_10_0~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc60a627eda488df56efc462ed7db9ea810e225;p=thirdparty%2Fvalgrind.git cfsi_m_ix array should only be indexed according to sizeof_m_ix, so decalre as a void*. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14218 --- diff --git a/coregrind/m_debuginfo/priv_storage.h b/coregrind/m_debuginfo/priv_storage.h index ccf6742e7e..d0d4be9aec 100644 --- a/coregrind/m_debuginfo/priv_storage.h +++ b/coregrind/m_debuginfo/priv_storage.h @@ -904,7 +904,9 @@ struct _DebugInfo { cfsi_exprs. */ Addr* cfsi_base; UInt sizeof_cfsi_m_ix; /* size in byte of indexes stored in cfsi_m_ix. */ - UInt* cfsi_m_ix; /* Each index occupies sizeof_cfsi_m_ix bytes. */ + void* cfsi_m_ix; /* Each index occupies sizeof_cfsi_m_ix bytes. + The void* is an UChar* or UShort* or UInt* + depending on sizeof_cfsi_m_ix. */ DiCfSI* cfsi_rd; /* Only used during reading, NULL once info is read. */