You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I just noticed this. So the original issue is rs/xid#71, and we need to reject invalid strings not generated by xid, which can be done efficiently by checking the last byte.
Thanks, I'll review the PR soon.
A bad case:
thread 'id::tests::test_from_str_should_check' panicked at 'assertion failed:
(left == right)
left:
"00000000000000jarvig"
,right:
"00000000000000jarvis"
'https://github.com/rs/xid/blob/master/id.go#L267
The text was updated successfully, but these errors were encountered: