pointer_math: check for (int *)p += sizeof(int);
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Dec 2012 11:57:46 +0000 (14:57 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Dec 2012 11:57:46 +0000 (14:57 +0300)
commit3cefb266242450008ccf35b11c1422338451e2c8
treea43c6aacb3954d7d5b982ba1ec4539afcace29d1
parent74750f68dd7869c61962593b460005d7e5b19a42
pointer_math: check for (int *)p += sizeof(int);

This finds two bugs in staging.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_pointer_math.c