You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2018/03/08 05:17:49 UTC
svn commit: r1826175 -
/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMChar.cpp
Author: scantor
Date: Thu Mar 8 05:17:49 2018
New Revision: 1826175
URL: http://svn.apache.org/viewvc?rev=1826175&view=rev
Log:
Fix raw buffer case to allow for embedded nulls.
Modified:
santuario/xml-security-cpp/trunk/xsec/transformers/TXFMChar.cpp
Modified: santuario/xml-security-cpp/trunk/xsec/transformers/TXFMChar.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/transformers/TXFMChar.cpp?rev=1826175&r1=1826174&r2=1826175&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/transformers/TXFMChar.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/transformers/TXFMChar.cpp Thu Mar 8 05:17:49 2018
@@ -65,13 +65,10 @@ void TXFMChar::setInput(const char* in)
void TXFMChar::setInput(const char* in, unsigned int bSize) {
- // Assume this is a string
+ // Assume this is a raw buffer
buf = in;
- if (bSize > (in ? strlen(in) : 0))
- toOutput = in ? strlen(in) : 0;
- else
- toOutput = bSize;
+ toOutput = bSize;
sbs = toOutput;
}