[Bug c/78973] New: [7 Regression] warning: ‘memcpy’: specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 3 09:25:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78973
Bug ID: 78973
Summary: [7 Regression] warning: ‘memcpy’: specified size
between 18446744071562067968 and 18446744073709551615
exceeds maximum object size 9223372036854775807
[-Wstringop-overflow=]
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: msebor at gcc dot gnu.org
Target Milestone: ---
The -Wstringop-overflow warning prints huge decimal numbers, e.g.:
warning: ‘memcpy’: specified size between 18446744071562067968 and
18446744073709551615 exceeds maximum object size 9223372036854775807
[-Wstringop-overflow=]
It would be better if they were printed in hex, or by using their symbolic
name.
...between 0xFFFFFFFF80000000 and 0xFFFFFFFFFFFFFFFF ... size
0x7FFFFFFFFFFFFFFF
...between 0xFFFFFFFF80000000 and INT_MAX ... size INT_MAX/2
More information about the Gcc-bugs
mailing list