Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
4956c0fe
Commit
4956c0fe
authored
Aug 20, 2015
by
Sergio Giro
Committed by
Android Git Automerger
Aug 20, 2015
Browse files
Options
Downloads
Plain Diff
am
5b85b1d4
: libutils: fix overflow in String8::allocFromUTF8
* commit '
5b85b1d4
': libutils: fix overflow in String8::allocFromUTF8
parents
e8582d65
5b85b1d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libutils/String8.cpp
+3
-0
3 additions, 0 deletions
libutils/String8.cpp
with
3 additions
and
0 deletions
libutils/String8.cpp
+
3
−
0
View file @
4956c0fe
...
...
@@ -78,6 +78,9 @@ void terminate_string8()
static
char
*
allocFromUTF8
(
const
char
*
in
,
size_t
len
)
{
if
(
len
>
0
)
{
if
(
len
==
SIZE_MAX
)
{
return
NULL
;
}
SharedBuffer
*
buf
=
SharedBuffer
::
alloc
(
len
+
1
);
ALOG_ASSERT
(
buf
,
"Unable to allocate shared buffer"
);
if
(
buf
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment