-/* $OpenBSD: inflate.c,v 1.13 2022/08/09 07:37:35 tb Exp $ */
+/* $OpenBSD: inflate.c,v 1.14 2022/08/15 12:29:19 tb Exp $ */
/* inflate.c -- zlib decompression
* Copyright (C) 1995-2022 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
if (state->head != Z_NULL &&
state->head->extra != Z_NULL &&
(len = state->head->extra_len - state->length) <
- state->head->extra_max) {
+ state->head->extra_max) {
zmemcpy(state->head->extra + len, next,
len + copy > state->head->extra_max ?
state->head->extra_max - len : copy);
-/* $OpenBSD: inflate.c,v 1.19 2022/08/09 07:39:00 tb Exp $ */
+/* $OpenBSD: inflate.c,v 1.20 2022/08/15 12:29:19 tb Exp $ */
/* inflate.c -- zlib decompression
* Copyright (C) 1995-2022 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
if (state->head != Z_NULL &&
state->head->extra != Z_NULL &&
(len = state->head->extra_len - state->length) <
- state->head->extra_max) {
+ state->head->extra_max) {
zmemcpy(state->head->extra + len, next,
len + copy > state->head->extra_max ?
state->head->extra_max - len : copy);