lean-0024: Buffer overflow in `lean_io_prim_handle_read`

`IO.FS.Handle.read` with a large value of `n` could cause a buffer overflow, leading to a crash. Not a soundness bug on its own, but software verified in Lean to be correct could still carry a runtime vulnerability through this primitive. Fixed in 4.28.1 and 4.29.1 (backports); 4.30.0+ carry the fix.

Statusfixed
Fixed inv4.28.1
Subsystemruntime
Guarantee broken—
Mechanism
memory-safety
Symptomcrash
Severitycrash
Fools—
Discovery
user-report
Features
iofile-handles
References