commit | 5d3825a594c018e7e7ce2564d38928bcde605b85 | [log] [tgz] |
---|---|---|
author | Thomas Viehweger <Thomas.Viehweger@rohde-schwarz.com> | Mon Jan 23 11:26:37 2023 +0100 |
committer | Thomas Viehweger <Thomas.Viehweger@rohde-schwarz.com> | Fri Feb 10 14:08:13 2023 +0100 |
tree | 2a477351ed8fc43345f9c76f82793632de8ab974 | |
parent | 27d45ca8bcbc8d4b7c0900759828230f6a2bcf8e [diff] |
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