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

Possible string overflow #65

Open
K2IE opened this issue Oct 6, 2021 · 0 comments
Open

Possible string overflow #65

K2IE opened this issue Oct 6, 2021 · 0 comments

Comments

@K2IE
Copy link

K2IE commented Oct 6, 2021

When compiling under Raspberry Pi OS Buster, I received the following warning:

    inlined from ‘aprsis_main’ at aprsis.c:826:3,
    inlined from ‘aprsis_runthread’ at aprsis.c:929:2:
aprsis.c:459:4: warning: ‘memcpy’ specified size between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
    memcpy(A->rdbuf, A->rdbuf + A->rdbuf_cur,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      A->rdbuf_len - A->rdbuf_cur);
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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