Searched hist:d796588b (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | libc.c | d796588b Thu Apr 18 09:53:54 CDT 2019 Markus Armbruster <armbru@redhat.com> pc-bios/s390-ccw: Clean up harmless misuse of isdigit() atoui() and get_index() pass char values to isdigit(). With a standard isdigit(), we'd get undefined behavior when the value is negative. Can't happen as char is unsigned on s390x. Even if it ould, we're actually using isdigit() from pc-bios/s390-ccw/libc.h here, which works fine for negative values. Clean up anyway, just to avoid setting a bad example. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190418145355.21100-6-armbru@redhat.com> [thuth: updated the commit message] Signed-off-by: Thomas Huth <thuth@redhat.com>
|
H A D | menu.c | d796588b Thu Apr 18 09:53:54 CDT 2019 Markus Armbruster <armbru@redhat.com> pc-bios/s390-ccw: Clean up harmless misuse of isdigit() atoui() and get_index() pass char values to isdigit(). With a standard isdigit(), we'd get undefined behavior when the value is negative. Can't happen as char is unsigned on s390x. Even if it ould, we're actually using isdigit() from pc-bios/s390-ccw/libc.h here, which works fine for negative values. Clean up anyway, just to avoid setting a bad example. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190418145355.21100-6-armbru@redhat.com> [thuth: updated the commit message] Signed-off-by: Thomas Huth <thuth@redhat.com>
|