david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/hci
Michael Brown ed28c8304c [ifmgmt] Avoid relying on global variable within ifcommon_exec()
The getopt API defines optind as a global variable.  When used by the
"autoboot" command, the payload function passed to ifcommon_exec() may
result in a new iPXE script being executed; the commands therein would
then overwrite the value of optind.  On returning, ifcommon_exec()
would continue processing the list of interfaces from an undefined
point.

Fix by using a local variable to hold the index within the list of
interfaces.

Reported-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-07-15 17:35:48 +02:00
..
commands [ifmgmt] Avoid relying on global variable within ifcommon_exec() 2013-07-15 17:35:48 +02:00
keymap [console] Add "no_latin1" keymap 2012-03-27 21:08:22 +01:00
mucurses [build] Fix uses of literal 0 as a NULL pointer 2013-04-28 17:13:44 +01:00
tui [settings] Add support for navigation keys in "config" user interface 2013-07-15 12:01:08 +02:00
editstring.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
linux_args.c [build] Fix uses of literal 0 as a NULL pointer 2013-04-28 17:13:44 +01:00
readline.c [readline] Allow readline_history() to return a meaningful status 2012-10-24 23:24:43 -07:00
shell.c [readline] Allow readline_history() to return a meaningful status 2012-10-24 23:24:43 -07:00
strerror.c [hci] Use http://ipxe.org/<errno> instead of raw error numbers 2010-10-19 06:14:22 +01:00
wireless_errors.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00