0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 00:38:00 +01:00

gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069)

Co-authored-by: i.khabibulin <i.khabibulin@ngrsoftlab.ru>
This commit is contained in:
NGRsoftlab 2024-03-22 14:25:38 +03:00 committed by GitHub
parent 42ae924d27
commit 63d6f2623e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;