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 Signed-off-by: Glenn Strauss --- 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(-) --- 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_d #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; } --- 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