https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102896
Bug ID: 102896
Summary: src/moxie/ffi.c:239:arrayIndexOutOfBounds
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libffi
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Static analyser cppcheck says:
trunk.git/libffi/src/moxie/ffi.c:239:46: error: Array 'register_args[6]'
accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds]
Source code is
unsigned register_args[6] =
{ arg1, arg2, arg3, arg4, arg5, arg6 };
...
else if (ptr == (char *) ®ister_args[7])