]> granicus.if.org Git - python/commit
Issue #15381: Fixed a bug in BytesIO.write().
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 3 Feb 2015 16:51:58 +0000 (18:51 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 3 Feb 2015 16:51:58 +0000 (18:51 +0200)
commit38c30e6c8e34241a1ea226fdd4ff74be6a8ee846
treecfbe7c536c08399090a715862da78e6f98003eb2
parent06bb1226d18e657a36ddd492ec88c16c9108323b
Issue #15381: Fixed a bug in BytesIO.write().
It was expected that string_size == PyBytes_GET_SIZE(buf) if the buffer is
shared, but truncate() and __setstate__() can set string_size without
unsharing the buffer.
Modules/_io/bytesio.c