Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
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
Clea OS
bsp
nxp
linux-seco-imx
Commits
a07461ec
Commit
a07461ec
authored
19 years ago
by
Dmitry Torokhov
Browse files
Options
Downloads
Patches
Plain Diff
Input: gunze - fix out-of-bound array access reported by Adrian Bunk.
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
f24949e8
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
drivers/input/touchscreen/gunze.c
+1
-2
1 addition, 2 deletions
drivers/input/touchscreen/gunze.c
with
1 addition
and
2 deletions
drivers/input/touchscreen/gunze.c
+
1
−
2
View file @
a07461ec
...
@@ -68,8 +68,7 @@ static void gunze_process_packet(struct gunze* gunze, struct pt_regs *regs)
...
@@ -68,8 +68,7 @@ static void gunze_process_packet(struct gunze* gunze, struct pt_regs *regs)
if
(
gunze
->
idx
!=
GUNZE_MAX_LENGTH
||
gunze
->
data
[
5
]
!=
','
||
if
(
gunze
->
idx
!=
GUNZE_MAX_LENGTH
||
gunze
->
data
[
5
]
!=
','
||
(
gunze
->
data
[
0
]
!=
'T'
&&
gunze
->
data
[
0
]
!=
'R'
))
{
(
gunze
->
data
[
0
]
!=
'T'
&&
gunze
->
data
[
0
]
!=
'R'
))
{
gunze
->
data
[
10
]
=
0
;
printk
(
KERN_WARNING
"gunze.c: bad packet: >%.*s<
\n
"
,
GUNZE_MAX_LENGTH
,
gunze
->
data
);
printk
(
KERN_WARNING
"gunze.c: bad packet: >%s<
\n
"
,
gunze
->
data
);
return
;
return
;
}
}
...
...
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