Clouseau: Check we actually got data before we try to access it.
SVN revision: 78459
This commit is contained in:
parent
8f45b0c9f2
commit
5f083a50d4
|
@ -762,6 +762,9 @@ clouseau_data_packet_info_get(void *data, int size)
|
||||||
char *ch = data;
|
char *ch = data;
|
||||||
Variant_st *v;
|
Variant_st *v;
|
||||||
|
|
||||||
|
if (size <= 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
switch (*ch)
|
switch (*ch)
|
||||||
{
|
{
|
||||||
case BMP_RAW_DATA:
|
case BMP_RAW_DATA:
|
||||||
|
|
Loading…
Reference in New Issue