seL4 / sel4test

Test suite for seL4.
http://sel4.systems
Other
24 stars 60 forks source link

Fix: NULL-terminate existing_frames[] array #99

Closed heshamelmatary closed 1 year ago

heshamelmatary commented 1 year ago

libsel4utils/reserve_initial_task_regions iterates over existing_frames[] and expects it to be null-terminated. Without this commit, the behaviour will rely on whatever the stack had before allocating existing_frames[] in the stack, and subsequent calls may fail, hang, or reserve incorrect frames; depending on the stack values.