PLTools / Lama

Teaching language LaMa for a compiler course
GNU General Public License v3.0
70 stars 37 forks source link

Fix incorrect handling of mmap error #22

Closed Soarex16 closed 1 year ago

Soarex16 commented 1 year ago

If mmap returns MAP_FAILED during initialization (for example, if there is not enough RAM), then the error was ignored and from_space.begin contained an incorrect pointer 0xfff.

Soarex16 commented 1 year ago

@dboulytchev

dboulytchev commented 1 year ago

Cool.