Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_native
Commits
0d776982
Commit
0d776982
authored
9 years ago
by
Samuel Tan
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Fix format specifiers for size_t types"
parents
aca58acb
715dec70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libs/binder/PersistableBundle.cpp
libs/binder/PersistableBundle.cpp
+2
-2
No files found.
libs/binder/PersistableBundle.cpp
View file @
0d776982
...
...
@@ -109,7 +109,7 @@ status_t PersistableBundle::writeToParcel(Parcel* parcel) const {
parcel
->
setDataPosition
(
length_pos
);
size_t
length
=
end_pos
-
start_pos
;
if
(
length
>
std
::
numeric_limits
<
int32_t
>::
max
())
{
ALOGE
(
"Parcel length (%u) too large to store in 32-bit signed int"
,
length
);
ALOGE
(
"Parcel length (%
z
u) too large to store in 32-bit signed int"
,
length
);
return
BAD_VALUE
;
}
RETURN_IF_FAILED
(
parcel
->
writeInt32
(
static_cast
<
int32_t
>
(
length
)));
...
...
@@ -271,7 +271,7 @@ status_t PersistableBundle::writeToParcelInner(Parcel* parcel) const {
*/
size_t
num_entries
=
size
();
if
(
num_entries
>
std
::
numeric_limits
<
int32_t
>::
max
())
{
ALOGE
(
"The size of this PersistableBundle (%u) too large to store in 32-bit signed int"
,
ALOGE
(
"The size of this PersistableBundle (%
z
u) too large to store in 32-bit signed int"
,
num_entries
);
return
BAD_VALUE
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment