[PATCH] Fix 'array subscript is above array bounds' warning in res_send.c
Siddhesh Poyarekar
siddhesh@redhat.com
Tue Dec 16 13:05:00 GMT 2014
On Tue, Dec 16, 2014 at 10:59:10AM -0200, Adhemerval Zanella wrote:
> My understanding is to not shadow possible compiler issues with unrequired
> code.
I don't think this is a compiler issue since I don't think the
compiler will ever be able to evaluate that the range for the nscounts
will be limited to MAXNS. In fact, given the wide usage of nscount
within the code, a bug could technically send the nscounts beyond
MAXNS.
Siddhesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20141216/26ace206/attachment.sig>
More information about the Libc-alpha
mailing list