This PR fixes the classic resource writer map length which was being cast to uint16_t, smaller than it should have been.
It also adds an overflow check for name_offset (I swear I added this earlier...). Minor refactor was required to avoid throwing earlier than necessary.
This PR fixes the classic resource writer map length which was being cast to
uint16_t
, smaller than it should have been. It also adds an overflow check forname_offset
(I swear I added this earlier...). Minor refactor was required to avoid throwing earlier than necessary.