This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix 'array subscript is above array bounds' warning in res_send.c


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

Attachment: pgpGsq6fxcPW_.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]