bb#11514 - initialize cpio name buffer

pull/56/head
Kevin Lin 9 years ago
parent e67b75541b
commit c76e630507
  1. 1
      libclamav/cpio.c

@ -256,6 +256,7 @@ int cli_scancpio_newc(cli_ctx *ctx, int crc)
int ret;
off_t pos = 0;
memset(name, 0, 513);
while(fmap_readn(*ctx->fmap, &hdr_newc, pos, sizeof(hdr_newc)) == sizeof(hdr_newc)) {
pos += sizeof(hdr_newc);

Loading…
Cancel
Save