[PATCH] `Date._<format>(nil)` should return an empty Hash
authorJean Boussier <jean.boussier@gmail.com>
Mon, 15 Nov 2021 10:37:40 +0000 (11:37 +0100)
committerUtkarsh Gupta <utkarsh@debian.org>
Sun, 5 Dec 2021 23:55:44 +0000 (23:55 +0000)
commit50b85f6b1b5f90c25355706c303480aead36f5ea
tree2fe0aed541717713b716841962d0b4dde77c3ce8
parent608f46e05092f461031675ffe3b0cba8220e83b8
[PATCH] `Date._<format>(nil)` should return an empty Hash

Fix: https://github.com/ruby/date/issues/39

This is how versions previous to 3.2.1 behaved and Active Support
currently rely on this behavior.

https://github.com/rails/rails/blob/90357af08048ef5076730505f6e7b14a81f33d0c/activesupport/lib/active_support/values/time_zone.rb#L383-L384

Any Rails application upgrading to date `3.2.1` might run into unexpected errors.

Gbp-Pq: Name CVE-2021-41817-followup.patch
ext/date/date_core.c
test/date/test_date_parse.rb