This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "sfcb - Small Footprint CIM Broker".
The branch, master has been updated
via 1f5ff60b4091c88868b0af39a980968d47784429 (commit)
from 81089c56ed95a93819baa6e97c38f5fc45a02442 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1f5ff60b4091c88868b0af39a980968d47784429
Author: Dave Heller <hel...@us...>
Date: Fri Feb 7 11:41:16 2014 -0500
[sfcb-tix:#98] sfcbmofpp segfaults if mof file ends with block comment without newline
-----------------------------------------------------------------------
Summary of changes:
contributions.txt | 4 ++++
mofpp.c | 5 ++++-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/contributions.txt b/contributions.txt
index 1a74b5d..f72a5ac 100644
--- a/contributions.txt
+++ b/contributions.txt
@@ -244,3 +244,7 @@ Rusty Peng
Ting Wang
----------
10/13/2013 [sfcb-tix:#81] Bad CMPIType assignment in cimXmlOps
+
+Vitezslav Crhonek, Red Hat
+----------
+02/07/2014 [sfcb-tix:#98] sfcbmofpp segfaults if mof file ends with block comment without newline
diff --git a/mofpp.c b/mofpp.c
index 9e39031..98b7396 100644
--- a/mofpp.c
+++ b/mofpp.c
@@ -128,7 +128,10 @@ processFile(char *fn, FILE * in, FILE * out)
}
} else if (comment == 2) { /* check for block comment */
if ((e = strstr(s, "*/"))) {
- strcpy(s, getLineEnding(e));
+ if (getLineEnding(e) != NULL)
+ strcpy(s, getLineEnding(e));
+ else
+ strcpy(s, e + 2);
comment = 0;
} else {
continue;
hooks/post-receive
--
sfcb - Small Footprint CIM Broker
|