Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
c0b7606f
Unverified
Commit
c0b7606f
authored
Jun 19, 2018
by
Dimitris Papastamos
Committed by
GitHub
Jun 19, 2018
Browse files
Merge pull request #1420 from Yann-lms/mm_cursor_size_check
xlat_v2: add a check on mm_cursor->size to avoid infinite loop
parents
ac0197d9
75df6269
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/xlat_tables_v2/xlat_tables_internal.c
View file @
c0b7606f
...
...
@@ -784,8 +784,8 @@ void mmap_add_region_ctx(xlat_ctx_t *ctx, const mmap_region_t *mm)
&&
mm_cursor
->
size
)
++
mm_cursor
;
while
((
mm_cursor
->
base_va
+
mm_cursor
->
size
-
1
==
end_va
)
&&
(
mm_cursor
->
size
<
mm
->
size
))
while
((
mm_cursor
->
base_va
+
mm_cursor
->
size
-
1
==
end_va
)
&&
(
mm_cursor
->
size
!=
0U
)
&&
(
mm_cursor
->
size
<
mm
->
size
))
++
mm_cursor
;
/*
...
...
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