Closed pjfanning closed 1 year ago
Ok, so.... I think that.
Given this, I think length limits need to be caught at decoding time, not when converting. So tests are probably fine, but I think implementation needs to be different.
@cowtowncoder I added some checks where the binary encoded numbers are decoded. I've updated the tests to match.
Thank you @pjfanning !
These tests succeed despite the the large nums. This is because the numbers are represented in binary form and the text length checks do not get invoked. The question is whether we want to check the num lengths when we parse the binary nums.