Zeke-OS / zeke

A POSIX-like OS for ARM processors.
Other
86 stars 9 forks source link

Fix issues with undividable bitmap sizes #183

Closed OlliV closed 3 years ago

OlliV commented 3 years ago

https://github.com/Zeke-OS/zeke/blob/08d93b40abcaddb0da49c3eac4a6a6e6cb446092/kern/include/bitmap.h#L60-L67

If 4*8 doesn't divide the number of entires then the bitmap will be allocated using an invalid size and later on accessed past the end of the bitmap.