Skip to content

Commit

Permalink
gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069)
Browse files Browse the repository at this point in the history
Co-authored-by: i.khabibulin <i.khabibulin@ngrsoftlab.ru>
  • Loading branch information
NGRsoftlab and ngr-ilmarh committed Mar 22, 2024
1 parent 42ae924 commit 63d6f26
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Modules/_io/bytesio.c
Expand Up @@ -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;
Expand Down

0 comments on commit 63d6f26

Please sign in to comment.