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
Matombo
AndroidSystemCore
Commits
e89e09dd
Commit
e89e09dd
authored
Dec 10, 2013
by
Nick Kralevich
Browse files
Options
Downloads
Patches
Plain Diff
Fix overflow in adb_client
Change-Id: I7f8582bd8a69d61ce47d11a9ffd0e901fc371037 Credit: Joshua Drake Bug: 12060953
parent
5dc5bfef
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
adb/adb_client.c
+2
-2
2 additions, 2 deletions
adb/adb_client.c
with
2 additions
and
2 deletions
adb/adb_client.c
+
2
−
2
View file @
e89e09dd
...
...
@@ -228,7 +228,7 @@ int adb_connect(const char *service)
}
else
{
// if server was running, check its version to make sure it is not out of date
char
buf
[
100
];
in
t
n
;
size_
t
n
;
int
version
=
ADB_SERVER_VERSION
-
1
;
// if we have a file descriptor, then parse version result
...
...
@@ -237,7 +237,7 @@ int adb_connect(const char *service)
buf
[
4
]
=
0
;
n
=
strtoul
(
buf
,
0
,
16
);
if
(
n
>
(
int
)
sizeof
(
buf
))
goto
error
;
if
(
n
>
sizeof
(
buf
))
goto
error
;
if
(
readx
(
fd
,
buf
,
n
))
goto
error
;
adb_close
(
fd
);
...
...
...
...
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
sign in
to comment