aboutsummaryrefslogtreecommitdiff
path: root/osc
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2014-11-07 16:41:29 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2014-11-07 16:41:29 +0000
commitc207b4fd7a3bc509035693b3316ee51df3f8917e (patch)
treec1bc06f09413495db9043a138672595f95b07428 /osc
parent922ed758ffaf2b42ffe5bb61cf3c22f7aa7fbe23 (diff)
Added check for valid data while building a blob packet in packOSC_sendtyped. Any bad data will cause the packet to be dropped.
svn path=/trunk/externals/mrpeach/; revision=17371
Diffstat (limited to 'osc')
-rw-r--r--osc/packOSC.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/osc/packOSC.c b/osc/packOSC.c
index 8af8770..63714a8 100644
--- a/osc/packOSC.c
+++ b/osc/packOSC.c
@@ -434,6 +434,8 @@ static void packOSC_sendtyped(t_packOSC *x, t_symbol *s, int argc, t_atom *argv)
for (; k < nArgs; ++k)
{
args[k] = packOSC_blob(&argv[k+2]);
+ /* Make sure it was blobbable */
+ if (args[k].type != BLOB_osc) goto cleanup;
}
}
else if (!(c == 'T' || c == 'F' || c == 'N' || c == 'I')) /* not no data */