AgonConsole8 / agon-vdp

Official Firmware for the Agon Console8: ESP32 VDP
MIT License
42 stars 17 forks source link

fix MultiBufferStream read and peek #242

Closed stevesims closed 1 month ago

stevesims commented 3 months ago

ensure that calls to read and peek will return -1 if there is there isn’t a currently valid buffer block in MultiBufferStream

this fixes an issue where calling a buffer that ends with an incomplete VDU command would cause the VDP to fatally crash

Fixes #241