summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Marie de Rodat <derodat@adacore.com>2018-03-20 08:58:54 (GMT)
committerPierre-Marie de Rodat <derodat@adacore.com>2018-03-23 18:02:51 (GMT)
commitb54d04b5acc33d7077571aa2046718b81565bc2f (patch)
tree4f889d02f6a42598725203ef5be7a430fdb7e61b
parente1129b2c08c9a2b9974f97e22d2851dcf358bc28 (diff)
downloadcv2pdb-b54d04b5acc33d7077571aa2046718b81565bc2f.zip
cv2pdb-b54d04b5acc33d7077571aa2046718b81565bc2f.tar.gz
cv2pdb-b54d04b5acc33d7077571aa2046718b81565bc2f.tar.bz2
CV2PDB::appendModifierType: uncomment code to add padding
This prevents the generation of corrupt TPI streams, as padding is required at the end of leaves.
-rw-r--r--src/cv2pdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cv2pdb.cpp b/src/cv2pdb.cpp
index b14a0d0..95749bc 100644
--- a/src/cv2pdb.cpp
+++ b/src/cv2pdb.cpp
@@ -1860,8 +1860,8 @@ int CV2PDB::appendModifierType(int type, int attr)
dtype->modifier_v2.type = translateType(type);
dtype->modifier_v2.attribute = attr;
int len = sizeof(dtype->modifier_v2);
- //for (; len & 3; len++)
- // userTypes[cbUserTypes + len] = 0xf4 - (len & 3);
+ for (; len & 3; len++)
+ userTypes[cbUserTypes + len] = 0xf4 - (len & 3);
dtype->modifier_v2.len = len - 2;
cbUserTypes += len;