Kaydet (Commit) 28b98516 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1079093 Uncaught exception

Change-Id: I4b09963e2daf22dcd006fee0ce0bb130c7c18342
üst bc9e8231
......@@ -8,7 +8,6 @@
*/
#include "Util.hxx"
#include <rtl/ustrbuf.hxx>
using namespace ::connectivity;
......@@ -39,11 +38,18 @@ void firebird::evaluateStatusVector(ISC_STATUS_ARRAY& aStatusVector,
const ISC_STATUS* pStatus = (const ISC_STATUS*) &aStatusVector;
buf.appendAscii("firebird_sdbc error:");
while(fb_interpret(msg, sizeof(msg), &pStatus))
try
{
while(fb_interpret(msg, sizeof(msg), &pStatus))
{
// TODO: verify encoding
buf.appendAscii("\n*");
buf.append(OUString(msg, strlen(msg), RTL_TEXTENCODING_UTF8));
}
}
catch (...)
{
// TODO: verify encoding
buf.appendAscii("\n*");
buf.append(OUString(msg, strlen(msg), RTL_TEXTENCODING_UTF8));
SAL_WARN("connectivity.firebird", "ignore fb_interpret exception");
}
buf.appendAscii("\ncaused by\n'").append(aCause).appendAscii("'\n");
......
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