1
0
mirror of https://github.com/mtrojnar/osslsigncode.git synced 2025-04-10 19:18:05 -05:00

Initialize indata variable

This commit is contained in:
olszomal 2023-05-08 14:41:54 +02:00 committed by Michał Trojnara
parent 76bb06bf7e
commit cb80c7d188

2
msi.c

@ -1672,7 +1672,7 @@ static int stream_handle(MSI_FILE *msi, MSI_DIRENT *dirent, u_char *p_msi, uint3
} }
} else { /* DIR_STREAM */ } else { /* DIR_STREAM */
char buf[MAX_SECTOR_SIZE]; char buf[MAX_SECTOR_SIZE];
char *indata; char *indata = NULL;
uint32_t inlen = GET_UINT32_LE(child->entry->size); uint32_t inlen = GET_UINT32_LE(child->entry->size);
if (inlen >= MAXREGSECT) { if (inlen >= MAXREGSECT) {
printf("Corrupted stream length 0x%08X\n", inlen); printf("Corrupted stream length 0x%08X\n", inlen);