summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2014-09-24 20:28:35 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2014-09-24 20:28:35 (GMT)
commit8d1b702903d863eee02a6b7a8e7a921d75682656 (patch)
treec7a5e5ed10b75b25a444ce5c62b568fd206f32c6
parente5292bd7617d75cddf8af0e97dd4fb54c3ce4684 (diff)
downloadcv2pdb-8d1b702903d863eee02a6b7a8e7a921d75682656.zip
cv2pdb-8d1b702903d863eee02a6b7a8e7a921d75682656.tar.gz
cv2pdb-8d1b702903d863eee02a6b7a8e7a921d75682656.tar.bz2
Ticket #15: Crash when parsing .reloc structure
-rw-r--r--src/dwarf2pdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp
index feeab8c..13bb426 100644
--- a/src/dwarf2pdb.cpp
+++ b/src/dwarf2pdb.cpp
@@ -1716,9 +1716,9 @@ bool CV2PDB::relocateDebugLineInfo()
char* p = img.RVA<char> (virtadr, 1);
if(p >= img.debug_line && p < img.debug_line + img.debug_line_length)
{
- for (unsigned int p = 8; p < chksize; p += 2)
+ for (unsigned int w = 8; w < chksize; w += 2)
{
- unsigned short entry = *(unsigned short*)(relocbase + p);
+ unsigned short entry = *(unsigned short*)(relocbase + w);
unsigned short type = (entry >> 12) & 0xf;
unsigned short off = entry & 0xfff;