Clouseau: Check we actually got data before we try to access it.

SVN revision: 78459
This commit is contained in:
Tom Hacohen 2012-10-25 15:15:13 +00:00
parent 8f45b0c9f2
commit 5f083a50d4
1 changed files with 3 additions and 0 deletions

View File

@ -762,6 +762,9 @@ clouseau_data_packet_info_get(void *data, int size)
char *ch = data;
Variant_st *v;
if (size <= 0)
return NULL;
switch (*ch)
{
case BMP_RAW_DATA: