Staging: binder: Add more offset validation.
authorArve Hjønnevåg <arve@android.com>
Mon, 6 Apr 2009 22:12:56 +0000 (15:12 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 18:06:26 +0000 (11:06 -0700)
commitea5c4cc68e2b5f4ec41d666376d3606d4d5c3426
tree3d6a9b0ceca8d1f0583bda79bfc05d09f887b073
parent4ddfc911e39a01f95ad9765d3b9e6f43e14eeff4
Staging: binder: Add more offset validation.

Check that datasize is not smaller than one flat_binder_object.
Check that offsets are aligned.
Check that offsets_size is aligned.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/binder.c