summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_io/bytesio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c
index 4a15c8e..fb66d3d 100644
--- a/Modules/_io/bytesio.c
+++ b/Modules/_io/bytesio.c
@@ -155,9 +155,6 @@ resize_buffer(bytesio *self, size_t size)
alloc = size + 1;
}
- if (alloc > ((size_t)-1) / sizeof(char))
- goto overflow;
-
if (SHARED_BUF(self)) {
if (unshare_buffer(self, alloc) < 0)
return -1;