librasn / rasn

A Safe #[no_std] ASN.1 Codec Framework
Other
199 stars 50 forks source link

fix(types): stack overflow in ObjectIdentifier PartialEq #223

Closed 6d7a closed 7 months ago

6d7a commented 7 months ago

The implementation of PartialEq<[u32]> for ObjectIdentifier did not compare the inner Cow<[u32]> but 'self' with the other [u32]. This triggered an infinite ping pong between Deref::deref and PartialEq::eq.

Closes #222

XAMPPRocky commented 7 months ago

Thank you for your PR!