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

arp-ioctl.c:221: 3 * off by one error #71

Closed
dcb314 opened this issue Apr 3, 2022 · 1 comment
Closed

arp-ioctl.c:221: 3 * off by one error #71

dcb314 opened this issue Apr 3, 2022 · 1 comment
Assignees

Comments

@dcb314
Copy link

dcb314 commented Apr 3, 2022

Static analyser cppcheck says:

arp-ioctl.c:221:7: error: Width 100 given in format string (no. 4) is larger than destination buffer 'macbuf[100]', use %99s to prevent overflowing it. [invalidScanfFormatWidth]
arp-ioctl.c:221:7: error: Width 100 given in format string (no. 5) is larger than destination buffer 'maskbuf[100]', use %99s to prevent overflowing it. [invalidScanfFormatWidth]
arp-ioctl.c:221:7: error: Width 100 given in format string (no. 6) is larger than destination buffer 'devbuf[100]', use %99s to prevent overflowing it. [invalidScanfFormatWidth]
route-linux.c:223:8: error: Width 16 given in format string (no. 1) is larger than destination buffer 'ifbuf[16]', use %15s to prevent overflowing it. [invalidScanfFormatWidth]

@ofalk ofalk self-assigned this Apr 5, 2022
@ofalk
Copy link
Owner

ofalk commented Apr 5, 2022

This is already fixed in the devel branch with commit 661c728 .

@ofalk ofalk closed this as completed Apr 5, 2022
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

2 participants