mirror of
https://github.com/python/cpython.git
synced 2024-11-24 00:38:00 +01:00
Co-authored-by: i.khabibulin <i.khabibulin@ngrsoftlab.ru>
This commit is contained in:
parent
42ae924d27
commit
63d6f2623e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user