mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
2369. [bug] libbind: Array bounds overrun on read in bitncmp().
[RT #18054]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
2369. [bug] libbind: Array bounds overrun on read in bitncmp().
|
||||||
|
[RT #18054]
|
||||||
|
|
||||||
2368. [port] Linux: use libcap for capability management if
|
2368. [port] Linux: use libcap for capability management if
|
||||||
possible. [RT# 18026]
|
possible. [RT# 18026]
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
static const char rcsid[] = "$Id: bitncmp.c,v 1.3 2005/04/27 04:56:35 sra Exp $";
|
static const char rcsid[] = "$Id: bitncmp.c,v 1.4 2008/05/12 00:17:27 marka Exp $";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "port_before.h"
|
#include "port_before.h"
|
||||||
@@ -48,7 +48,7 @@ bitncmp(const void *l, const void *r, int n) {
|
|||||||
|
|
||||||
b = n / 8;
|
b = n / 8;
|
||||||
x = memcmp(l, r, b);
|
x = memcmp(l, r, b);
|
||||||
if (x)
|
if (x || (n % 8) == 0)
|
||||||
return (x);
|
return (x);
|
||||||
|
|
||||||
lb = ((const u_char *)l)[b];
|
lb = ((const u_char *)l)[b];
|
||||||
|
Reference in New Issue
Block a user