Skip to content

Commit

Permalink
Initialize an uninitialized field in ijar
Browse files Browse the repository at this point in the history
This was reported in

--
Reviewed-on: #1197
MOS_MIGRATED_REVID=121257152
  • Loading branch information
shinh authored and damienmg committed May 2, 2016
1 parent 1977d92 commit a500443
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/ijar/zip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ u1* OutputZipFile::WriteLocalFileHeader(const char* filename, const u4 attr) {
memcpy(entry->file_name, filename, file_name_length_);
entry->extra_field_length = 0;
entry->extra_field = (const u1 *)"";
entry->crc32 = 0;

// Output the ZIP local_file_header:
put_u4le(q, LOCAL_FILE_HEADER_SIGNATURE);
Expand Down

0 comments on commit a500443

Please sign in to comment.