FreeBSD Bugzilla – Attachment 200637 Details for
Bug 234515
upgrade devel/jech-dht to 0.26
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Upgrade to 0.26
jech-dht-update.diff (text/plain), 6.20 KB, created by
Mikhail Teterin
on 2018-12-31 00:33:40 UTC
(
hide
)
Description:
Upgrade to 0.26
Filename:
MIME Type:
Creator:
Mikhail Teterin
Created:
2018-12-31 00:33:40 UTC
Size:
6.20 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 488751) >+++ Makefile (working copy) >@@ -2,7 +2,7 @@ > # $FreeBSD$ > > PORTNAME= dht >-PORTVERSION= 0.25 >+PORTVERSION= 0.26 > CATEGORIES= devel > MASTER_SITES= http://www.pps.univ-paris-diderot.fr/~jch/software/files/ > >Index: distinfo >=================================================================== >--- distinfo (revision 488751) >+++ distinfo (working copy) >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1543790466 >-SHA256 (dht-0.25.tar.gz) = 1e0fd849a780699212f13052a4c9812d0af6f524c9cbf70a65e92eb3580372f6 >-SIZE (dht-0.25.tar.gz) = 29198 >+TIMESTAMP = 1546215463 >+SHA256 (dht-0.26.tar.gz) = d2843d5d80783f2951a801020439d327f8f36d734522ca11e59bbbd3b19af8ff >+SIZE (dht-0.26.tar.gz) = 29008 >Index: files/patch-warns >=================================================================== >--- files/patch-warns (revision 488751) >+++ files/patch-warns (working copy) >@@ -1,6 +1,6 @@ >---- dht.c 2018-02-09 16:44:37.000000000 -0500 >-+++ dht.c 2018-12-02 18:00:11.873381000 -0500 >-@@ -365,5 +365,5 @@ >+--- dht.c 2018-12-16 08:38:37.000000000 -0500 >++++ dht.c 2018-12-30 19:22:30.679020000 -0500 >+@@ -382,5 +382,5 @@ > switch(sa->sa_family) { > case AF_INET: { > - struct sockaddr_in *sin = (struct sockaddr_in*)sa; >@@ -7,7 +7,7 @@ > + const struct sockaddr_in *sin = (const struct sockaddr_in*)sa; > const unsigned char *address = (const unsigned char*)&sin->sin_addr; > return sin->sin_port == 0 || >-@@ -373,5 +373,5 @@ >+@@ -390,5 +390,5 @@ > } > case AF_INET6: { > - struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa; >@@ -14,7 +14,7 @@ > + const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6*)sa; > const unsigned char *address = (const unsigned char*)&sin6->sin6_addr; > return sin6->sin6_port == 0 || >-@@ -1427,13 +1427,13 @@ >+@@ -1444,13 +1444,13 @@ > int i, len; > struct storage *st; > - unsigned char *ip; >@@ -33,7 +33,7 @@ > + ip = (const unsigned char*)&sin6->sin6_addr; > len = 16; > } else { >-@@ -1552,15 +1552,15 @@ >+@@ -1569,15 +1569,15 @@ > make_token(const struct sockaddr *sa, int old, unsigned char *token_return) > { > - void *ip; >@@ -52,7 +52,7 @@ > + const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6*)sa; > ip = &sin6->sin6_addr; > iplen = 16; >-@@ -2038,5 +2038,5 @@ >+@@ -2047,5 +2047,5 @@ > } > > - if(((char*)buf)[buflen] != '\0') { >@@ -59,59 +59,52 @@ > + if(((const char*)buf)[buflen] != '\0') { > debugf("Unterminated message.\n"); > errno = EINVAL; >-@@ -2905,5 +2905,5 @@ >+@@ -2904,5 +2904,5 @@ > > #define CHECK(ptr, len) \ > - if(((unsigned char*)ptr) + (len) > (buf) + (buflen)) goto overflow; > + if(((const unsigned char*)ptr) + (len) > (buf) + (buflen)) goto overflow; > >- if(tid_return) { >-@@ -2912,5 +2912,5 @@ >- long l; >- char *q; >-- l = strtol((char*)p + 3, &q, 10); >-+ l = strtol((const char*)p + 3, &q, 10); >- if(q && *q == ':' && l > 0 && l < *tid_len) { >- CHECK(q + 1, l); >-@@ -2944,5 +2944,5 @@ >- long l; >- char *q; >-- l = strtol((char*)p + 7, &q, 10); >-+ l = strtol((const char*)p + 7, &q, 10); >- if(q && *q == 'e' && l > 0 && l < 0x10000) >- *port_return = l; >-@@ -2957,5 +2957,5 @@ >- long l; >- char *q; >-- l = strtol((char*)p + 16, &q, 10); >-+ l = strtol((const char*)p + 16, &q, 10); >- if(q && *q == 'e' && l > 0 && l < 0x10000) >- *implied_port_return = l; >-@@ -2979,5 +2979,5 @@ >- long l; >- char *q; >-- l = strtol((char*)p + 7, &q, 10); >-+ l = strtol((const char*)p + 7, &q, 10); >- if(q && *q == ':' && l > 0 && l < *token_len) { >- CHECK(q + 1, l); >-@@ -2995,5 +2995,5 @@ >- long l; >- char *q; >-- l = strtol((char*)p + 7, &q, 10); >-+ l = strtol((const char*)p + 7, &q, 10); >- if(q && *q == ':' && l > 0 && l <= *nodes_len) { >- CHECK(q + 1, l); >-@@ -3011,5 +3011,5 @@ >- long l; >- char *q; >-- l = strtol((char*)p + 8, &q, 10); >-+ l = strtol((const char*)p + 8, &q, 10); >- if(q && *q == ':' && l > 0 && l <= *nodes6_len) { >- CHECK(q + 1, l); >-@@ -3030,5 +3030,5 @@ >- long l; >- char *q; >-- l = strtol((char*)buf + i, &q, 10); >-+ l = strtol((const char*)buf + i, &q, 10); >- if(q && *q == ':' && l > 0) { >- CHECK(q + 1, l); >+ p = dht_memmem(buf, buflen, "1:t", 3); >+@@ -2910,5 +2910,5 @@ >+ long l; >+ char *q; >+- l = strtol((char*)p + 3, &q, 10); >++ l = strtol((const char*)p + 3, &q, 10); >+ if(q && *q == ':' && l > 0 && l < PARSE_TID_LEN) { >+ CHECK(q + 1, l); >+@@ -2934,5 +2934,5 @@ >+ long l; >+ char *q; >+- l = strtol((char*)p + 7, &q, 10); >++ l = strtol((const char*)p + 7, &q, 10); >+ if(q && *q == 'e' && l > 0 && l < 0x10000) >+ m->port = l; >+@@ -2943,5 +2943,5 @@ >+ long l; >+ char *q; >+- l = strtol((char*)p + 16, &q, 10); >++ l = strtol((const char*)p + 16, &q, 10); >+ if(q && *q == 'e' && l > 0 && l < 0x10000) >+ m->implied_port = l; >+@@ -2958,5 +2958,5 @@ >+ long l; >+ char *q; >+- l = strtol((char*)p + 7, &q, 10); >++ l = strtol((const char*)p + 7, &q, 10); >+ if(q && *q == ':' && l > 0 && l < PARSE_TOKEN_LEN) { >+ CHECK(q + 1, l); >+@@ -2970,5 +2970,5 @@ >+ long l; >+ char *q; >+- l = strtol((char*)p + 7, &q, 10); >++ l = strtol((const char*)p + 7, &q, 10); >+ if(q && *q == ':' && l > 0 && l <= PARSE_NODES_LEN) { >+ CHECK(q + 1, l); >+@@ -2982,5 +2982,5 @@ >+ long l; >+ char *q; >+- l = strtol((char*)p + 8, &q, 10); >++ l = strtol((const char*)p + 8, &q, 10); >+ if(q && *q == ':' && l > 0 && l <= PARSE_NODES6_LEN) { >+ CHECK(q + 1, l);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234515
: 200637