mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37:00 +02:00
The consume(size_t) overload consumes "at most" as many bytes as requested, but consume() consumes exactly one byte. This commit makes sure to avoid consuming past EOF. Fixes #18324. Fixes #18325.