Handle the special case of an invalid non-child primitive value #1

Closed
opened 5 years ago by coolaj86 · 1 comments
coolaj86 commented 5 years ago
Owner

Example of malformed data:

-----BEGIN PUBLIC KEY-----
BEleay9rUXWPOlAucJVcPgPTrGfxKiDJe5MStHHKu4gaJqDloeAJwtiC9T3+H02QhmoQ0xjmIIvozvcUO4mUvW0
-----END PUBLIC KEY-----

This should fail to parse because it appears to contain a primitive value and that value's length is much longer that the data that's put in.

Also:

-----BEGIN PUBLIC KEY-----
BOCi/0nLmTodhUUbI+GIyRxWvk8JaBu8HCFy46FJ/qO2hcfVPrUhXs5T3I2m6S2Jt65mDPS44EmIO0OCiRVbcXCvD6WjEC2+TirJ291sFVreisQvguuuKfLtnuVNhhfV7w
-----END PUBLIC KEY-----

the lenlen is longer than the whole string

Example of malformed data: ``` -----BEGIN PUBLIC KEY----- BEleay9rUXWPOlAucJVcPgPTrGfxKiDJe5MStHHKu4gaJqDloeAJwtiC9T3+H02QhmoQ0xjmIIvozvcUO4mUvW0 -----END PUBLIC KEY----- ``` This should fail to parse because it appears to contain a primitive value and that value's length is much longer that the data that's put in. Also: ``` -----BEGIN PUBLIC KEY----- BOCi/0nLmTodhUUbI+GIyRxWvk8JaBu8HCFy46FJ/qO2hcfVPrUhXs5T3I2m6S2Jt65mDPS44EmIO0OCiRVbcXCvD6WjEC2+TirJ291sFVreisQvguuuKfLtnuVNhhfV7w -----END PUBLIC KEY----- ``` the `lenlen` is longer than the whole string
Poster
Owner

Fixed it last night.

Fixed it last night.
coolaj86 closed this issue 5 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.