Compare commits

...

4 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa 6d347e56ef Update man pages 2016-11-13 21:24:32 +09:00
Tatsuhiro Tsujikawa 751e223692 Bump up version number to 1.16.1, LT revision to 26:1:12 2016-11-13 21:21:29 +09:00
Matt Rudary b87066da92 Prevent undefined behavior in decode_length 2016-11-13 21:19:36 +09:00
Tatsuhiro Tsujikawa d8b13bd417 nghttpx: Reset flags as well 2016-11-13 21:19:36 +09:00
10 changed files with 22 additions and 13 deletions

View File

@ -32,6 +32,7 @@ Etienne Cimon
Fabian Möller
Fabian Wiesel
Gabi Davar
Google Inc.
Jacob Champion
Jan-E
Janusz Dziemidowicz

View File

@ -24,12 +24,12 @@
cmake_minimum_required(VERSION 3.0)
# XXX using 1.8.90 instead of 1.9.0-DEV
project(nghttp2 VERSION 1.16.0)
project(nghttp2 VERSION 1.16.1)
# See versioning rule:
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
set(LT_CURRENT 26)
set(LT_REVISION 0)
set(LT_REVISION 1)
set(LT_AGE 12)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

View File

@ -25,7 +25,7 @@ dnl Do not change user variables!
dnl http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
AC_PREREQ(2.61)
AC_INIT([nghttp2], [1.16.0], [t-tujikawa@users.sourceforge.net])
AC_INIT([nghttp2], [1.16.1], [t-tujikawa@users.sourceforge.net])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
@ -45,7 +45,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl See versioning rule:
dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
AC_SUBST(LT_CURRENT, 26)
AC_SUBST(LT_REVISION, 0)
AC_SUBST(LT_REVISION, 1)
AC_SUBST(LT_AGE, 12)
major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/[^0-9]//g"`

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "H2LOAD" "1" "Oct 24, 2016" "1.16.0" "nghttp2"
.TH "H2LOAD" "1" "Nov 13, 2016" "1.16.1" "nghttp2"
.SH NAME
h2load \- HTTP/2 benchmarking tool
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "NGHTTP" "1" "Oct 24, 2016" "1.16.0" "nghttp2"
.TH "NGHTTP" "1" "Nov 13, 2016" "1.16.1" "nghttp2"
.SH NAME
nghttp \- HTTP/2 client
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "NGHTTPD" "1" "Oct 24, 2016" "1.16.0" "nghttp2"
.TH "NGHTTPD" "1" "Nov 13, 2016" "1.16.1" "nghttp2"
.SH NAME
nghttpd \- HTTP/2 server
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "NGHTTPX" "1" "Oct 24, 2016" "1.16.0" "nghttp2"
.TH "NGHTTPX" "1" "Nov 13, 2016" "1.16.1" "nghttp2"
.SH NAME
nghttpx \- HTTP/2 proxy
.
@ -524,7 +524,7 @@ in the preference order. The supported curves depend on
the linked OpenSSL library. This function requires
OpenSSL >= 1.0.2.
.sp
Default: \fBP\-256:P\-384:P\-521\fP
Default: \fBX25519:P\-256:P\-384:P\-521\fP
.UNINDENT
.INDENT 0.0
.TP
@ -1238,7 +1238,7 @@ backend server, the custom error pages are not used.
.B \-\-server\-name=<NAME>
Change server response header field value to <NAME>.
.sp
Default: \fBnghttpx nghttp2/1.16.0\fP
Default: \fBnghttpx nghttp2/1.16.1\fP
.UNINDENT
.INDENT 0.0
.TP

View File

@ -482,7 +482,7 @@ SSL/TLS
the linked OpenSSL library. This function requires
OpenSSL >= 1.0.2.
Default: ``P-256:P-384:P-521``
Default: ``X25519:P-256:P-384:P-521``
.. option:: -k, --insecure
@ -1118,7 +1118,7 @@ HTTP
Change server response header field value to <NAME>.
Default: ``nghttpx nghttp2/1.16.0``
Default: ``nghttpx nghttp2/1.16.1``
.. option:: --no-server-rewrite

View File

@ -864,6 +864,11 @@ static ssize_t decode_length(uint32_t *res, size_t *shift_ptr, int *fin,
for (; in != last; ++in, shift += 7) {
uint32_t add = *in & 0x7f;
if (shift >= 32) {
DEBUGF("inflate: shift exponent overflow\n");
return -1;
}
if ((UINT32_MAX >> shift) < add) {
DEBUGF("inflate: integer overflow on shift\n");
return -1;

View File

@ -466,7 +466,10 @@ void FieldStore::append_last_header_value(const char *data, size_t len) {
headers_, data, len);
}
void FieldStore::clear_headers() { headers_.clear(); }
void FieldStore::clear_headers() {
headers_.clear();
header_key_prev_ = false;
}
void FieldStore::add_trailer_token(const StringRef &name,
const StringRef &value, bool no_index,