tmj controller status

padded_prop_len is the length including the properties type and length, so this will overrun your buffer if you start at the properties->uri pointer.  You need to either subtract off the 4 bytes of type,length, or move this memset to before you set the type and length and start the memset at properties, rather than properties->uri.