From 3392e8fb11de35778cad1fb112e6eb5916aa7de0 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Tue, 20 Apr 2021 22:04:56 -0400 Subject: [PATCH] [core] update ls-hpack LiteSpeed ls-hpack v2.3.0 --- src/ls-hpack/README.md | 2 +- src/ls-hpack/lshpack.c | 4 +++- src/ls-hpack/lshpack.h | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ls-hpack/README.md b/src/ls-hpack/README.md index 3ea20555..28770c39 100644 --- a/src/ls-hpack/README.md +++ b/src/ls-hpack/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/litespeedtech/ls-hpack.svg?branch=master)](https://travis-ci.org/litespeedtech/ls-hpack) +[![Build Status](https://travis-ci.com/litespeedtech/ls-hpack.svg?branch=master)](https://travis-ci.com/litespeedtech/ls-hpack) [![Build Status](https://api.cirrus-ci.com/github/litespeedtech/ls-hpack.svg)](https://cirrus-ci.com/github/litespeedtech/ls-hpack) [![Build status](https://ci.appveyor.com/api/projects/status/6ev71ecmm3j2u9o5?svg=true)](https://ci.appveyor.com/project/litespeedtech/ls-hpack) diff --git a/src/ls-hpack/lshpack.c b/src/ls-hpack/lshpack.c index 4f6e90c6..1bf064ea 100644 --- a/src/ls-hpack/lshpack.c +++ b/src/ls-hpack/lshpack.c @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2018 LiteSpeed Technologies Inc +Copyright (c) 2018 - 2021 LiteSpeed Technologies Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -1549,6 +1549,8 @@ lshpack_dec_push_entry (struct lshpack_dec *dec, #endif memcpy(DTE_NAME(entry), lsxpack_header_get_name(xhdr), name_len); memcpy(DTE_VALUE(entry), lsxpack_header_get_value(xhdr), val_len); + + hdec_remove_overflow_entries(dec); return 0; } diff --git a/src/ls-hpack/lshpack.h b/src/ls-hpack/lshpack.h index 9166aa6b..d09767bd 100644 --- a/src/ls-hpack/lshpack.h +++ b/src/ls-hpack/lshpack.h @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2018 - 2020 LiteSpeed Technologies Inc +Copyright (c) 2018 - 2021 LiteSpeed Technologies Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -34,8 +34,8 @@ extern "C" { #include "lsxpack_header.h" #define LSHPACK_MAJOR_VERSION 2 -#define LSHPACK_MINOR_VERSION 2 -#define LSHPACK_PATCH_VERSION 1 +#define LSHPACK_MINOR_VERSION 3 +#define LSHPACK_PATCH_VERSION 0 #define lshpack_strlen_t lsxpack_strlen_t #define LSHPACK_MAX_STRLEN LSXPACK_MAX_STRLEN