mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 05:35:07 +00:00
![]() When the size of the audio data was not a multiple of a page size, subtracting the page size from this unsigned variable would underflow it close to 2^32 and be clamped to the page size again. This would lead to writes into garbage addresses because of an incorrect write size, interestingly only causing the write() call to error out. Using saturating math neatly fixes this problem and allows buffer lengths that are not a multiple of a page size. |
||
---|---|---|
.. | ||
AC97.cpp | ||
AC97.h | ||
Channel.cpp | ||
Channel.h | ||
Controller.h | ||
Management.cpp | ||
Management.h |