personnummer / java

Validate Swedish personal identity numbers
MIT License
8 stars 6 forks source link

Hotfix: Leap year should throw exception. #92

Closed Johannestegner closed 1 year ago

Johannestegner commented 1 year ago

Type of change

Description

Adds a test for leap-year check.
Changed date parsing implementation in date check to LocalDate. Updated error message for errors that have to do with dates.

Motivation

Fixes a potential vulnerability where valid would return true on dates which are not valid (out of range).

Checklist