tormoder / fit

A Go package for decoding and encoding Garmin FIT files
MIT License
245 stars 42 forks source link

Add support for large messages #54

Closed bpg closed 3 years ago

bpg commented 3 years ago

This fixes #43, and fixes #53

tormoder commented 3 years ago

@bpg Thanks for digging into this.

I'll try to take a look as soon as possible.

tormoder commented 3 years ago

Sorry for the delay...

Thanks for spotting the overflow.

Suggestion, could we just remove the maxFieldSize constant? And just set the array length for tmp to 255 * 3 directly?

bpg commented 3 years ago

Thanks, updated!