https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118729
--- Comment #2 from uecker at gcc dot gnu.org --- A broken read should be fine, as write would only access the part that was read. I agree that for I/O it probably does not matter, but for other cases it might.