From c207b4fd7a3bc509035693b3316ee51df3f8917e Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Fri, 7 Nov 2014 16:41:29 +0000 Subject: 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 --- osc/packOSC.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- cgit v1.2.1