Browse code

bb#11514 - initialize cpio name buffer

Kevin Lin authored on 2016/03/10 07:07:06
Showing 1 changed files
... ...
@@ -256,6 +256,7 @@ int cli_scancpio_newc(cli_ctx *ctx, int crc)
256 256
 	int ret;
257 257
 	off_t pos = 0;
258 258
 
259
+    memset(name, 0, 513);
259 260
 
260 261
     while(fmap_readn(*ctx->fmap, &hdr_newc, pos, sizeof(hdr_newc)) == sizeof(hdr_newc)) {
261 262
 	pos += sizeof(hdr_newc);