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])
git blame says: 92456a4e5658 (H.J. Lu 2021-08-31 07:14:47 -0700 239) else if (ptr == (char *) ®ister_args[7]) Adding HJ for their opinion.
Does it happen in libffi upstream? https://github.com/libffi/libffi
(In reply to H.J. Lu from comment #2) > Does it happen in libffi upstream? > > https://github.com/libffi/libffi Yes.
Then, please file it here: https://github.com/libffi/libffi/issues.
(In reply to Martin Liška from comment #4) > Then, please file it here: https://github.com/libffi/libffi/issues. Done. https://github.com/libffi/libffi/issues/666
Moved.