-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Labels
C-calendarComponent: CalendarsComponent: CalendarsT-bugType: Bad behavior, security, privacyType: Bad behavior, security, privacy
Milestone
Description
Steps to reproduce
Run
use icu_calendar::Calendar;
fn main() {
let mut fields = icu_calendar::types::DateFields::default();
fields.era = Some("ah");
fields.era_year = Some(1600);
fields.day = Some(12.try_into().unwrap());
fields.ordinal_month = Some(30.try_into().unwrap());
let mut options = icu_calendar::options::DateFromFieldsOptions::default();
options.missing_fields_strategy = Some(icu_calendar::options::MissingFieldsStrategy::Ecma);
let uaq = icu_calendar::cal::Hijri::new_umm_al_qura();
let end = uaq.from_fields(fields, options).unwrap();
}
Actual results
thread 'main' panicked at /opt/Projects/icu4x/components/calendar/src/provider/hijri.rs:92:18:
attempt to shift left with overflow
Metadata
Metadata
Assignees
Labels
C-calendarComponent: CalendarsComponent: CalendarsT-bugType: Bad behavior, security, privacyType: Bad behavior, security, privacy