[settings] Handle errors in fetchf_uristring()
authorMichael Brown <mcb30@etherboot.org>
Thu, 12 Feb 2009 09:16:53 +0000 (09:16 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 12 Feb 2009 09:16:53 +0000 (09:16 +0000)
commit4e6b62c94627d1e05aa986f66054df5f841fe53b
treefb4b8e7ef50b599fe98c2e485177b7e050b85893
parent8e960eb67c3c3974f4eca34e1fe733791f70ca09
[settings] Handle errors in fetchf_uristring()

fetchf_uristring() was failing to handle error values from
fetch_setting(), resulting in its attempting to allocate extremely
large temporary buffers on the stack (and so overrunning the stack and
locking up the machine).

Problem reported by Shao Miller <Shao.Miller@yrdsb.edu.on.ca>.
src/core/settings.c