diff options
author | Pierre-Marie de Rodat <derodat@adacore.com> | 2018-03-20 08:58:54 (GMT) |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2018-03-23 18:02:51 (GMT) |
commit | b54d04b5acc33d7077571aa2046718b81565bc2f (patch) | |
tree | 4f889d02f6a42598725203ef5be7a430fdb7e61b /src | |
parent | e1129b2c08c9a2b9974f97e22d2851dcf358bc28 (diff) | |
download | cv2pdb-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/cv2pdb.cpp | 4 |
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;
|