Liblor / advanced_operating_systems_2020

Advanced Operating System Course at ETHZ
MIT License
19 stars 3 forks source link

Out ouf bounds write #138

Closed Liblor closed 4 years ago

Liblor commented 4 years ago

https://github.com/Liblor/advanced_operating_systems_2020/blob/4179c99176bb57dcc607a8d9dca5d5a387b78372/usr/init/serialserver.c#L17-L23 The memory at the following address is never "allocated" (it is on the stack, but it is not guaranteed, that it is unused)

    msg.msg.payload[0] = c;
abertschi commented 4 years ago

64eddeaea32a5783e061e783329b8eee81fe2553

I wonder what took longer, writing the fix or the issue :)