Re: [PATCH 2/2] Fix menu entry selection based on ID and title

2024-04-22 Thread Vladimir 'phcoder' Serbinenko
I'm unsure whether an id starting with a numeral should be considered valid at all. Variable named 0x would be incorrect Le lun. 22 avr. 2024, 17:57, Marek Marczykowski-Górecki < marma...@invisiblethingslab.com> a écrit : > From: Peter Jones > > Currently if grub_strtoul(saved_entry_value, NULL,

[PATCH 2/2] Fix menu entry selection based on ID and title

2024-04-22 Thread Marek Marczykowski-Górecki
From: Peter Jones Currently if grub_strtoul(saved_entry_value, NULL, 0) does not return an error, we assume the value it has produced is a correct index into our menu entry list, and do not try to interpret the value as the "id" or "title" . In cases where "id" or "title" start with a numeral, t