VKPinCodeView icon indicating copy to clipboard operation
VKPinCodeView copied to clipboard

VKPinCodeView crashes if I paste in text longer than my PIN length

Open andreasamygdala opened this issue 5 years ago • 2 comments

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** __boundsFail: index 20 beyond bounds [0 .. 4]'

Right here: 0x0000000101be4e73 $s13VKPinCodeViewAAC10appendChar33_DE70FA91AF22EA7F25E32F03782F5828LLyySSF + 323

andreasamygdala avatar Sep 15 '20 13:09 andreasamygdala

@andreasamygdala Could you provide steps for reproduce?

Sunspension avatar Sep 24 '20 20:09 Sunspension

Sure thing - it's very easy to do in simulator... Just cmd-p something when the textfield is active.

I don't have my external keyboard with me at the mo, so I can't try it on device before sometime next week. In the meantime I tried inputting text from messages containing longer-than-expected pins. That worx.

So - not sure if this is actually a thing on target device. But it's an edge case, and doesn't seem like a problem at all, without external keys.

... Oh, and thanks for your effort with this whole thing! 👏👏👏

andreasamygdala avatar Sep 25 '20 06:09 andreasamygdala