Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
03bf22f5
Commit
03bf22f5
authored
13 years ago
by
Bradley Bolen
Committed by
Wolfgang Denk
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
stdio: Fix a possible buffer overflow
Signed-off-by: Bradley Bolen <bradleybolen at yahoo.com>
parent
0789dc14
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/stdio.c
+2
-2
2 additions, 2 deletions
common/stdio.c
with
2 additions
and
2 deletions
common/stdio.c
+
2
−
2
View file @
03bf22f5
...
...
@@ -160,7 +160,7 @@ int stdio_deregister(const char *devname)
int
l
;
struct
list_head
*
pos
;
struct
stdio_dev
*
dev
;
char
temp_names
[
3
][
8
];
char
temp_names
[
3
][
16
];
dev
=
stdio_get_by_name
(
devname
);
...
...
@@ -174,7 +174,7 @@ int stdio_deregister(const char *devname)
}
memcpy
(
&
temp_names
[
l
][
0
],
stdio_devices
[
l
]
->
name
,
sizeof
(
stdio_devices
[
l
]
->
name
));
sizeof
(
temp_names
[
l
]
));
}
list_del
(
&
(
dev
->
list
));
...
...
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