Skip to content

Commit 4d6c4b5

Browse files
committed
fix:grown output buffer is used without init.
1 parent 628ac98 commit 4d6c4b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,6 +1830,7 @@ void passbuffer_update(int mbindex,char *message)
18301830
strcpy(passbuffer[0],"Insufficient memeory to extend the pass buffer. Some output was lost.\n");
18311831
else
18321832
{
1833+
memset(tmpalloc+passbuffersize[mbindex],0,passbuffersize[mbindex]); // zero the newly allocated buffer
18331834
passbuffer[mbindex] = tmpalloc;
18341835
passbuffersize[mbindex]=newsizerequired;
18351836
}

0 commit comments

Comments
 (0)