Philip Martin writes: > Here's a simple patch (with no ABI change I believe) that avoids the > buffer overflow, it sets failbit intead. OK, I sent something very similar to gcc-patches, but it doesn't handle all the cases; your patch is better.