|
Message-ID: <CAFXk+9ZSUKoKYhBzmr=wRYEgtEw4wBZjzk0m2k4=t8rCtbTCXQ@mail.gmail.com>
Date: Sat, 4 Jul 2015 23:17:16 +0800
From: Yu Lu <pentium.luyu@...il.com>
To: musl@...ts.openwall.com
Subject: [PATCH] ns_parse.c: fix ns_skiprr
Hi,
there is a bug in ns_parse.c
http://git.musl-libc.org/cgit/musl/tree/src/network/ns_parse.c#n98
That line should be "return p - ptr;".
The patch:
--- a/src/network/ns_parse.c
+++ b/src/network/ns_parse.c
@@ -95,7 +95,7 @@ int ns_skiprr(const unsigned char *ptr, const unsigned
char *eom, ns_sect sectio
p += r;
}
}
- return ptr - p;
+ return p - ptr;
bad:
errno = EMSGSIZE;
return -1;
Best Regards
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.