summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorNGRsoftlab <78017794+NGRsoftlab@users.noreply.github.com>2024-03-22 11:25:38 (GMT)
committerGitHub <noreply@github.com>2024-03-22 11:25:38 (GMT)
commit63d6f2623ef2aa90f51c6a928b96845b9b380d89 (patch)
tree53e268dc1ef335b606c7ebe3d53b7f224f2157a7 /Modules/_io
parent42ae924d278c48a719fb0ab86357f3235a9f7ab9 (diff)
downloadcpython-63d6f2623ef2aa90f51c6a928b96845b9b380d89.zip
cpython-63d6f2623ef2aa90f51c6a928b96845b9b380d89.tar.gz
cpython-63d6f2623ef2aa90f51c6a928b96845b9b380d89.tar.bz2
gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069)
Co-authored-by: i.khabibulin <i.khabibulin@ngrsoftlab.ru>
Diffstat (limited to 'Modules/_io')
-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;