# HG changeset patch # User mas01cr # Date 1194366596 0 # Node ID ea6936b829154a7a1f91e779ea661dfce7ea7f06 # Parent 324699d5642946f479050e2bc8fd0f4767504780 Defensive treatment of SOAP input Ensure that things that are assumed to be supplied are actually supplied, so that we will fail gracefully rather than trip over broken assumptions... diff -r 324699d56429 -r ea6936b82915 audioDB.cpp --- a/audioDB.cpp Tue Nov 06 10:52:32 2007 +0000 +++ b/audioDB.cpp Tue Nov 06 16:29:56 2007 +0000 @@ -2629,13 +2629,13 @@ COM_QUERY, queryType, // Need to pass a parameter COM_DATABASE, - dbName, + ENSURE_STRING(dbName), COM_FEATURES, - qKey, + ENSURE_STRING(qKey), COM_KEYLIST, - keyList==0?"":keyList, + ENSURE_STRING(keyList), COM_TIMES, - timesFileName==0?"":timesFileName, + ENSURE_STRING(timesFileName), COM_QPOINT, qPosStr, COM_POINTNN, diff -r 324699d56429 -r ea6936b82915 audioDB.h --- a/audioDB.h Tue Nov 06 10:52:32 2007 +0000 +++ b/audioDB.h Tue Nov 06 16:29:56 2007 +0000 @@ -83,6 +83,8 @@ #define ALIGN_UP(x,w) ((x) + ((1<