Skip to content

Add guard to handle index out of range exception#83

Merged
ianpartridge merged 1 commit intoKitura:masterfrom
redryerye:master
Dec 5, 2019
Merged

Add guard to handle index out of range exception#83
ianpartridge merged 1 commit intoKitura:masterfrom
redryerye:master

Conversation

@redryerye
Copy link
Copy Markdown
Contributor

This pull request is intended to address issue #73 where JWTDecoder may crash with ‘index out of range error’ if a passed String does not fit into the correct JWT format.

This PR adds a guard that checks the number of components separated by dots ( . ) inside the string.

@claassistantio
Copy link
Copy Markdown

claassistantio commented Dec 5, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@ianpartridge ianpartridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ianpartridge ianpartridge merged commit 0d43542 into Kitura:master Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants