uci: use a delete-safe iterator in the Lua :foreach() function The following test...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 1 Nov 2010 00:20:00 +0000 (00:20 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 1 Nov 2010 00:20:00 +0000 (00:20 +0000)
commitf52274bf2fae35c07e0a1801b46b68b9e8179c25
tree6e1a82a2e81ef879a89713e5fdb06ee74de617bc
parent21aeb28779a02c1c0cac637981f2a6cee155d457
uci: use a delete-safe iterator in the Lua :foreach() function The following test case exposed a NULL pointer dereference in uci_lua_foreach(): lua -luci -e 'x=uci.cursor(); x:foreach("firewall", "forwarding", function(s) x:delete("firewall", s[".name"]) end)'

SVN-Revision: 23757
package/uci/Makefile
package/uci/patches/130-lua_fix_nested_foreach_delete.patch [new file with mode: 0644]