Skip to content

Commit

Permalink
Fix trailer_len size in frame_update_trailer to match uint32_t in fra…
Browse files Browse the repository at this point in the history
…me_from_cframe
  • Loading branch information
milesgranger authored and FrancescAlted committed May 13, 2024
1 parent 8ab3ef6 commit a5a14a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blosc/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ int frame_update_trailer(blosc2_frame_s* frame, blosc2_schunk* schunk) {
}

// Create the trailer in msgpack (see the frame format document)
int64_t trailer_len = FRAME_TRAILER_MINLEN;
uint32_t trailer_len = FRAME_TRAILER_MINLEN;
uint8_t* trailer = (uint8_t*)calloc((size_t)trailer_len, 1);
uint8_t* ptrailer = trailer;
*ptrailer = 0x90 + 4; // fixarray with 4 elements
Expand Down

0 comments on commit a5a14a7

Please sign in to comment.