[pm] Mailbox `open` array on overflow
Closed this issue · 0 comments
rafael0121 commented
Description
The array open
in file omailboxes.c, is indexed using the process PID directly as position. So if the system create a PROCESS_MAX + 1, and this process try use mailbox, it will access a invalid memory address.
Code Snippet
Process intializer PID assignment
Mailbox bug tracked
Declaration array open
Function - omailboxes_alloc
Function - omailboxes_lookup
Function - omailboxes_get
Function - omailboxes_release