fix for CAN-2004-0797 zlib-1.2.x vulnerability (patch #1018094)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-08-29 09:16:03 +00:00
parent 6707bb9406
commit e7baa6764f
2 changed files with 6 additions and 0 deletions

View File

@ -434,6 +434,9 @@ void FAR *out_desc;
}
}
if (state->mode == BAD)
break;
/* build code tables */
state->next = state->codes;
state->lencode = (code const FAR *)(state->next);

View File

@ -861,6 +861,9 @@ int flush;
}
}
if (state->mode == BAD)
break;
/* build code tables */
state->next = state->codes;
state->lencode = (code const FAR *)(state->next);