diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-03-29 12:14:40 +0300 |
|---|---|---|
| committer | Martijn Coenen <maco@android.com> | 2018-07-17 12:48:05 +0200 |
| commit | 02d82286734d9195913adf42300523c41f1008ab (patch) | |
| tree | 0b342a42bcaf3142f31c645ed26e9c15678e3cc5 /tools/perf/scripts/python | |
| parent | 44343a7b30db28f6d140a23b46653d9fdd0a17c2 (diff) | |
UPSTREAM: ANDROID: binder: re-order some conditions
It doesn't make any difference to runtime but I've switched these two
checks to make my static checker happy.
The problem is that "buffer->data_size" is user controlled and if it's
less than "sizeo(*hdr)" then that means "offset" can be more than
"buffer->data_size". It's just cleaner to check it in the other order.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 361f2ddbb0c9f9b4f336025a7bd0212cea4a34f0)
Change-Id: I098d525ba63d125caa9840e6e1d5004bf70edc3c
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
