diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-12-16 16:53:05 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-12-16 16:55:23 +0530 |
commit | a0d424ef9d7fc34f7d1a516f38c8efb1e8692a03 (patch) | |
tree | e30a4786facc2274751209651c05de9b043f082f /ChangeLog | |
parent | 8b460906cdb8ef1501fa5dcff54206b201e527d5 (diff) | |
download | glibc-a0d424ef9d7fc34f7d1a516f38c8efb1e8692a03.tar.gz glibc-a0d424ef9d7fc34f7d1a516f38c8efb1e8692a03.tar.xz glibc-a0d424ef9d7fc34f7d1a516f38c8efb1e8692a03.zip |
Fix 'array subscript is above array bounds' warning in res_send.c
I see this warning in my build on F21 x86_64, which seems to be due to a weak check for array bounds. Fixed by making the bounds check stronger. This is not an actual bug since nscount is never set to anything greater than MAXNS. The compiler however does not know this, so we need the stronger bounds check to quieten the compiler.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 9bee8199a1..2a3e0b7bf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-12-16 Siddhesh Poyarekar <siddhesh@redhat.com> + + * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap + bounds. + 2014-12-16 Arjun Shankar <arjun.is@lostca.se> * libio/tst-fopenloc.c: Use test-skeleton.c. |