Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/moxie/ffi.c:239:arrayIndexOutOfBounds #666

Open
dcb314 opened this issue Oct 22, 2021 · 0 comments
Open

src/moxie/ffi.c:239:arrayIndexOutOfBounds #666

dcb314 opened this issue Oct 22, 2021 · 0 comments

Comments

@dcb314
Copy link

dcb314 commented Oct 22, 2021

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 *) &register_args[7])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant