diff options
author | sagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8> | 2010-08-10 13:02:58 (GMT) |
---|---|---|
committer | sagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8> | 2010-08-10 13:02:58 (GMT) |
commit | 12a480adb1db6632e59b553856545a83b4a65e00 (patch) | |
tree | 463579c7e421d84a39f989b93583933afaf16975 | |
parent | 59dc1509092a46bb18e08f54ac5c4f859ca0ffa8 (diff) | |
download | cv2pdb-12a480adb1db6632e59b553856545a83b4a65e00.zip cv2pdb-12a480adb1db6632e59b553856545a83b4a65e00.tar.gz cv2pdb-12a480adb1db6632e59b553856545a83b4a65e00.tar.bz2 |
fixed crash when working with -C (introduced in last version)
-rw-r--r-- | CHANGES | 6 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | src/cv2pdb.cpp | 2 |
3 files changed, 9 insertions, 1 deletions
@@ -119,3 +119,9 @@ Version history table pointer
* structs, classes and interfaces now have an internal qualifier attached that allows
the preview in autoexp.dat to show better info for structs and interfaces
+
+2010-08-10 Version 0.16
+
+ * fixed crash when working with -C (introduced in last version)
+
+
@@ -1 +1 @@ -VERSION = 0.15
+VERSION = 0.16
diff --git a/src/cv2pdb.cpp b/src/cv2pdb.cpp index 27fbb28..025c212 100644 --- a/src/cv2pdb.cpp +++ b/src/cv2pdb.cpp @@ -1872,6 +1872,8 @@ void CV2PDB::ensureUDT(int type, const codeview_type* cvtype) int value, leaf_len = numeric_leaf(&value, &cvtype->struct_v1.structlen);
pstrcpy_v(true, (BYTE*) name, (const BYTE*) &cvtype->struct_v1.structlen + leaf_len);
+ checkUserTypeAlloc();
+
codeview_reftype* rdtype = (codeview_reftype*) (userTypes + cbUserTypes);
rdtype->fieldlist.id = LF_FIELDLIST_V2;
int helpfieldlistType = nextUserType++;
|