10000 gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069) · python/cpython@63d6f26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63d6f26

Browse files
NGRsoftlabngr-ilmarh
NGRsoftlab
andauthored
gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069)
Co-authored-by: i.khabibulin <i.khabibulin@ngrsoftlab.ru>
1 parent 42ae924 commit 63d6f26

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Modules/_io/bytesio.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ resize_buffer(bytesio *self, size_t size)
155155
alloc = size + 1;
156156
}
157157

158-
if (alloc > ((size_t)-1) / sizeof(char))
159-
goto overflo 4E27 w;
160-
161158
if (SHARED_BUF(self)) {
162159
if (unshare_buffer(self, alloc) < 0)
163160
return -1;

0 commit comments

Comments
 (0)
0