Skip to content

Commit

Permalink
Ensure that serialized padding bytes are 0
Browse files Browse the repository at this point in the history
Helps creating reproducible build of precompiled Perl 6 modules
  • Loading branch information
niner committed Aug 5, 2017
1 parent 600c2e9 commit aa740f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/6model/serialization.c
Expand Up @@ -804,7 +804,7 @@ static MVMString * concatenate_outputs(MVMThreadContext *tc, MVMSerializationWri
output_size += MVM_ALIGN_SECTION(writer->param_interns_data_offset);

/* Allocate a buffer that size. */
output = (char *)MVM_malloc(output_size);
output = (char *)MVM_calloc(1, output_size);

/* Write version into header. */
write_int32(output, 0, CURRENT_VERSION);
Expand Down

0 comments on commit aa740f6

Please sign in to comment.