Commit 29b06e92 authored by Bill Blough's avatar Bill Blough

Fix segfault in PSVIWriter

parent 591fcfcb
xerces-c (3.1.4+debian-2) UNRELEASED; urgency=medium
* Fix AC_LANG_SOURCE warnings. Patch forwarded.
* Fix AC_LANG_SOURCE warnings.
* Override dh_auto_clean to also clean generated doc directory.
Closes: 847799
* Fix segfault in PSVIWriter. Closes: 715592
-- William Blough <devel@blough.us> Sun, 11 Dec 2016 14:38:45 -0500
......
Description: Fix segfault in PSVIWriter
Author: Bill Blough <devel@blough.us>
Bug: https://issues.apache.org/jira/browse/XERCESC-2085
Last-Update: 2016-12-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/samples/src/PSVIWriter/PSVIWriter.cpp
+++ b/samples/src/PSVIWriter/PSVIWriter.cpp
@@ -270,7 +270,8 @@ int main(int argC, char* argV[])
if (strrchr(xmlFile, '\\')>strrchr(xmlFile, '/')) {
strcat(fileName, strrchr(xmlFile, '\\'));
} else {
- strcat(fileName, strrchr(xmlFile, '/'));
+ if(strrchr(xmlFile, '/'))
+ strcat(fileName, strrchr(xmlFile, '/'));
}
if (psviFormatter)
delete psviFormatter;
psviwriter_strrchr_fix
fix_fprintf_warnings.diff
fix_ac_lang_source_warnings
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment