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

Address -Warray-bounds warnings in net/socket.c #314

Open
GustavoARSilva opened this issue Jun 13, 2023 · 2 comments
Open

Address -Warray-bounds warnings in net/socket.c #314

GustavoARSilva opened this issue Jun 13, 2023 · 2 comments

Comments

@GustavoARSilva
Copy link
Collaborator

A total of 28 warnings

net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[3397917]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[4709393]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[5478274]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[5592405]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[5711392]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[5835553]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[5965232]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[6100805]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[6242685]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[6316128]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[6391320]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[6468324]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[6547206]' [-Warray-bounds=]
net/socket.c:654:21: warning: array subscript -1 is outside array bounds of 'struct inode[6628035]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[3397917]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[4709393]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[5478274]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[5592405]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[5711392]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[5835553]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[5965232]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[6100805]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[6242685]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[6316128]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[6391320]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[6468324]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[6547206]' [-Warray-bounds=]
net/socket.c:655:26: warning: array subscript -1 is outside array bounds of 'struct inode[6628035]' [-Warray-bounds=]
@kees
Copy link

kees commented Feb 7, 2024

I can't reproduce this. What was the compiler and version, and what sha is this from?

@GustavoARSilva
Copy link
Collaborator Author

I can't reproduce this. What was the compiler and version, and what sha is this from?

GCC 13.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants