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

compile warning: core/rtw_br_ext.c:94:9: warning: ‘memcpy’ forming offset [40, 2051] is out of the bounds [0, 40] #28

Open
dsx724 opened this issue Sep 4, 2022 · 0 comments

Comments

@dsx724
Copy link

dsx724 commented Sep 4, 2022

In function ‘__nat25_add_pppoe_tag’,
inlined from ‘nat25_db_handle’ at /root/rtl8723du/core/rtw_br_ext.c:1121:11:
/root/rtl8723du/core/rtw_br_ext.c:94:9: warning: ‘memcpy’ forming offset [40, 2051] is out of the bounds [0, 40] of object ‘tag_buf’ with type ‘unsigned char[40]’ [-Warray-bounds]
94 | memcpy((unsigned char *)ph->tag, tag, data_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8723du/core/rtw_br_ext.c: In function ‘nat25_db_handle’:
/root/rtl8723du/core/rtw_br_ext.c:1090:63: note: ‘tag_buf’ declared here
1090 | unsigned char tag_buf[40];
| ^~~~~~~

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