Commit 4d9279cb authored by Yang Tse's avatar Yang Tse
Browse files

Fix potential out-of-bounds read
parent 640e4997
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ ares_bitncmp(const void *l, const void *r, int n) {

	b = n / 8;
	x = memcmp(l, r, b);
	if (x)
	if (x || (n % 8) == 0)
		return (x);

	lb = ((const unsigned char *)l)[b];