mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-06 05:54:25 +00:00
564d81e944
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
14 lines
431 B
Diff
14 lines
431 B
Diff
--- a/iptables/iptables-restore.c
|
|
+++ b/iptables/iptables-restore.c
|
|
@@ -129,6 +129,10 @@ static void add_param_to_argv(char *pars
|
|
* longer a real hacker, but I can live with that */
|
|
|
|
for (curchar = parsestart; *curchar; curchar++) {
|
|
+ if (param_len >= sizeof(param_buffer))
|
|
+ xtables_error(PARAMETER_PROBLEM,
|
|
+ "Parameter too long!");
|
|
+
|
|
if (quote_open) {
|
|
if (escaped) {
|
|
param_buffer[param_len++] = *curchar;
|