Fixed use after free

This commit is contained in:
Armin Novak
2022-04-27 16:07:12 +02:00
committed by akallabeth
parent fb90ac280a
commit dfe89737a0
3 changed files with 8 additions and 4 deletions

View File

@@ -520,6 +520,7 @@ BOOL ber_read_{prefix}{defName}_array(wStream* s, {defName}_t** pitems, size_t*
free(retItems);
return FALSE;
}}
retItems = tmpRet;
memcpy(&retItems[ret], item, sizeof(*item));
free(item);