From 03f43b795f662616c7fd2d965477cc912551921c Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Wed, 20 Apr 2016 17:48:57 +0200 Subject: [PATCH 1/2] - fixed initialization problem with uninitialized integer values --- src/mms/asn1/asn1_ber_primitive_value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mms/asn1/asn1_ber_primitive_value.c b/src/mms/asn1/asn1_ber_primitive_value.c index 5571d924..26564ee8 100644 --- a/src/mms/asn1/asn1_ber_primitive_value.c +++ b/src/mms/asn1/asn1_ber_primitive_value.c @@ -30,7 +30,7 @@ Asn1PrimitiveValue_create(int size) { Asn1PrimitiveValue* self = (Asn1PrimitiveValue*) GLOBAL_MALLOC(sizeof(Asn1PrimitiveValue)); - self->size = size; + self->size = 1; self->maxSize = size; self->octets = (uint8_t*) GLOBAL_CALLOC(1, size); From 8864bdb02d5687b00f538f3c028b2d81a4825bd7 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 28 Apr 2016 10:39:07 +0200 Subject: [PATCH 2/2] - added some functions to vs def files --- src/vs/libiec61850-wo-goose.def | 4 ++++ src/vs/libiec61850.def | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/vs/libiec61850-wo-goose.def b/src/vs/libiec61850-wo-goose.def index d6a8f31b..8354e2fa 100644 --- a/src/vs/libiec61850-wo-goose.def +++ b/src/vs/libiec61850-wo-goose.def @@ -520,3 +520,7 @@ EXPORTS CDC_CTE_create CDC_SPV_create CDC_TMS_create + MmsValue_getUtcTimeQuality + MmsConnection_getMmsConnectionParameters + IedServer_updateVisibleStringAttributeValue + diff --git a/src/vs/libiec61850.def b/src/vs/libiec61850.def index 2520762a..7ad6426e 100644 --- a/src/vs/libiec61850.def +++ b/src/vs/libiec61850.def @@ -597,3 +597,7 @@ EXPORTS CDC_CTE_create CDC_SPV_create CDC_TMS_create + MmsValue_getUtcTimeQuality + MmsConnection_getMmsConnectionParameters + IedServer_updateVisibleStringAttributeValue +