Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
15756178
Commit
15756178
authored
Jun 02, 2016
by
John Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apparmor: add missing id bounds check on dfa verification
Signed-off-by:
John Johansen
<
john.johansen@canonical.com
>
parent
ff118479
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
security/apparmor/include/match.h
security/apparmor/include/match.h
+1
-0
security/apparmor/match.c
security/apparmor/match.c
+2
-0
No files found.
security/apparmor/include/match.h
View file @
15756178
...
...
@@ -62,6 +62,7 @@ struct table_set_header {
#define YYTD_ID_ACCEPT2 6
#define YYTD_ID_NXT 7
#define YYTD_ID_TSIZE 8
#define YYTD_ID_MAX 8
#define YYTD_DATA8 1
#define YYTD_DATA16 2
...
...
security/apparmor/match.c
View file @
15756178
...
...
@@ -47,6 +47,8 @@ static struct table_header *unpack_table(char *blob, size_t bsize)
* it every time we use td_id as an index
*/
th
.
td_id
=
be16_to_cpu
(
*
(
u16
*
)
(
blob
))
-
1
;
if
(
th
.
td_id
>
YYTD_ID_MAX
)
goto
out
;
th
.
td_flags
=
be16_to_cpu
(
*
(
u16
*
)
(
blob
+
2
));
th
.
td_lolen
=
be32_to_cpu
(
*
(
u32
*
)
(
blob
+
8
));
blob
+=
sizeof
(
struct
table_header
);
...
...
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