]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(tsp): loop / crash if mmap of region fails
authorThomas Viehweger <Thomas.Viehweger@rohde-schwarz.com>
Mon, 23 Jan 2023 10:26:37 +0000 (11:26 +0100)
committerThomas Viehweger <Thomas.Viehweger@rohde-schwarz.com>
Fri, 10 Feb 2023 13:08:13 +0000 (14:08 +0100)
commit8c353e0058e95cfa20c9a760ebd0908a9a9aa1c1
tree2a477351ed8fc43345f9c76f82793632de8ab974
parent344e5e8149f98fcbb2360cabc1dfc99db210ef82
fix(tsp): loop / crash if mmap of region fails

In test_memory_send the variable i is of unsigned type, so
it is never negative. If i is 0, the result of i-- is
4294967295. Don't know what happens if trying to
access composite->address_range_array[4294967295].
Made i a signed integer.

Signed-off-by: Thomas Viehweger <Thomas.Viehweger@rohde-schwarz.com>
Change-Id: I8b4e532749b5e86e4b5acd238e72c3f88e309ff2
bl32/tsp/tsp_ffa_main.c