summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2010-08-10 13:02:58 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2010-08-10 13:02:58 (GMT)
commit12a480adb1db6632e59b553856545a83b4a65e00 (patch)
tree463579c7e421d84a39f989b93583933afaf16975
parent59dc1509092a46bb18e08f54ac5c4f859ca0ffa8 (diff)
downloadcv2pdb-12a480adb1db6632e59b553856545a83b4a65e00.zip
cv2pdb-12a480adb1db6632e59b553856545a83b4a65e00.tar.gz
cv2pdb-12a480adb1db6632e59b553856545a83b4a65e00.tar.bz2
fixed crash when working with -C (introduced in last version)
-rw-r--r--CHANGES6
-rw-r--r--VERSION2
-rw-r--r--src/cv2pdb.cpp2
3 files changed, 9 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 1cf36d1..f271b89 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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)
+
+
diff --git a/VERSION b/VERSION
index d44ad2b..73cc80e 100644
--- a/VERSION
+++ b/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++;