openrasta/openfilesystem — pull request #12 by flq (2012-03-18 22:29:44+00:00)
Title: Fix: Resizing action of inmemory file throws exception on subsequent write when writing a large array

See test. It seems that double of 40xx bytes would already kill the in-memory file implementation.

I have included a fix, but I don't know why you multiply the relevant length by 2.