]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[settings] Allow numeric_setting_value() to handle long setting values
authorMichael Brown <mcb30@ipxe.org>
Mon, 12 Aug 2013 17:23:25 +0000 (18:23 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 12 Aug 2013 17:25:18 +0000 (18:25 +0100)
commit55daa953fb82412e2e4dced4a39c6f7a3ff39b46
tree0ecd41cdad183030d25a047224b51a399adb0b7a
parentd105627928b90c2031894e1771098848cc74a7c0
[settings] Allow numeric_setting_value() to handle long setting values

Allow numeric_setting_value() to handle e.g. the byte sequence

  00:00:00:00:12:34:56:78

by returning -ERANGE only if the value actually overflows the return
type.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/settings.c
src/tests/settings_test.c