robur-coop / miou

A simple scheduler for OCaml 5
https://docs.osau.re/miou/index.html
MIT License
93 stars 7 forks source link

`orphans` is not domain-safe. #31

Closed dinosaure closed 3 months ago

dinosaure commented 4 months ago

About orphans, the underlying Sequence.t used is not domain-safe. Even if a parallel insertion is forbidden due to Miou's rules, the ability to insert a bad promise into the orphans Sequence.t can lead to an undefined behavior: so we should protect orphans against a bad use. Spotted by @polytypic.

dinosaure commented 3 months ago

Fixed by #32