-
Notifications
You must be signed in to change notification settings - Fork 15
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 error util/dns.c Werror=array-bounds #108
Comments
I have run into the same problem. Something must have changed. This code appears to have come from https://github.com/wahern/dns/blob/master/src/dns.c and has not been touched for 4 years. |
Thanks for opening this. We've made a fix in 8ad9b8b related to this. Could you please try pulling the latest master and see if the error persists? edited to add: You will need to modify the unum Makefile line 22 in the minim-openwrt-feed to reference the commit |
Following up on this. I tried building this myself but it seems that because we've removed support for openwrt_generic, there is no way to produce a properly functioning build using the minim-openwrt-feed. It seems that going forward, the instructions for Sorry about the confusion on this one. I'm going to archive the minim-openwrt-feed project and update the README there with this guidance. Please reach out if you have any questions. Thanks again! |
Now getting these errors: util/dns.c:6523:2: error: array subscript 4294967294 is above array bounds of 'unsigned char[1]' [-Werror=array-bounds] |
Bummer, I was hoping just removing subscripts would be enough. |
System:
Linux mint 19.1
Ubuntu bionic
make 4.1
gcc 7.5.0
openwrt git master
unum git https://github.com/MinimSecure/minim-openwrt-feed.git
Compile stops with:
`util/dns.c: In function 'dns_so_check.part.57':
util/dns.c:6528:17: error: array subscript -2 is below array bounds of 'unsigned char[1]' [-Werror=array-bounds]
so->query->data[-2] = 0xff & (so->query->end >> 8);
The text was updated successfully, but these errors were encountered: