Branch: Tag:

2015-07-27

2015-07-27 18:02:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.Buffer: Modifying read-only buffers is NOT a good idea...

Fixes SSL testsuite failure.

150:       static void io_trim( Buffer *io )    { -  if( io->malloced && (io->offset > 64 || io->len > 64)) +  if( io->malloced && (io->offset > 64 || io->len > 64) && !io->locked)    {    if( io->offset > 64 && (!io->locked_move && (io->offset > io_len(io))))    {