OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5c7ccf
)
Parcel.cpp: use calloc instead of malloc
author
Nick Kralevich
<nnk@google.com>
Tue, 28 Apr 2015 23:21:30 +0000
(16:21 -0700)
committer
Nick Kralevich
<nnk@google.com>
Tue, 28 Apr 2015 23:21:30 +0000
(16:21 -0700)
Bug:
20669363
Change-Id: Ia4c8d8ca9d8b4b87954d7267e8b1c94cf4e570e1
libs/binder/Parcel.cpp
patch
|
blob
|
history
diff --git
a/libs/binder/Parcel.cpp
b/libs/binder/Parcel.cpp
index
2c566f9
..
0921186
100644
(file)
--- a/
libs/binder/Parcel.cpp
+++ b/
libs/binder/Parcel.cpp
@@
-1626,7
+1626,7
@@
status_t Parcel::continueWrite(size_t desired)
binder_size_t* objects = NULL;
if (objectsSize) {
- objects = (binder_size_t*)
malloc(objectsSize*
sizeof(binder_size_t));
+ objects = (binder_size_t*)
calloc(objectsSize,
sizeof(binder_size_t));
if (!objects) {
free(data);