New submission from Pablo Galindo Salgado <pablog...@gmail.com>:

Compiling 3.8 in release mode emits this warning:

In function ‘getsockaddrarg’,
    inlined from ‘sock_bind’ at 
/home/pablogsal/github/python/3.8/Modules/socketmodule.c:3066:10:
/home/pablogsal/github/python/3.8/Modules/socketmodule.c:2288:9: warning: 
‘memset’ offset [17, 88] from the object at ‘addrbuf’ is out of the bounds of 
referenced subobject ‘sa’ with type ‘struct sockaddr’ at offset 0 
[-Warray-bounds]
 2288 |         memset(sa, 0, sizeof(*sa));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~

----------
messages: 354547
nosy: lukasz.langa, pablogsal, vstinner
priority: normal
severity: normal
status: open
title: ‘memset’ offset [17, 88] from the object at ‘addrbuf’ is out of the 
bounds of referenced subobject
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to