https://redmine.lighttpd.net/
https://redmine.lighttpd.net/favicon.ico?1366732741
2019-09-06T01:53:25Z
lighty labs
Lighttpd - Bug #2980: Embedded vim command line in conf file with no comment (#) hangs server
https://redmine.lighttpd.net/issues/2980?journal_id=11858
2019-09-06T01:53:25Z
gstrauss
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Patch Pending</i></li><li><strong>Target version</strong> changed from <i>1.4.x</i> to <i>1.4.55</i></li></ul><pre>
--- a/src/configfile.c
+++ b/src/configfile.c
@@ -1130,6 +1130,13 @@ static int config_tokenizer(server *srv, tokenizer_t *t, int *token_id, buffer *
t->offset += 2;
tid = TK_FORCE_ASSIGN;
buffer_copy_string_len(token, CONST_STR_LEN(":="));
+ } else {
+ /* ERROR */
+ log_error_write(srv, __FILE__, __LINE__, "sbsdsds",
+ "source:", t->source,
+ "line:", t->line, "pos:", t->line_pos,
+ "unexpected character ':'");
+ return -1;
}
break;
</pre>
Lighttpd - Bug #2980: Embedded vim command line in conf file with no comment (#) hangs server
https://redmine.lighttpd.net/issues/2980?journal_id=11867
2019-09-08T23:00:04Z
gstrauss
<ul><li><strong>Status</strong> changed from <i>Patch Pending</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[core] issue config error for invalid ':' (fixes #2980) x-ref: "Embedded vim command line in c..." href="https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/06a395a93ee22df13cb6fe2a5a06cdac3ed1946c">06a395a93ee22df13cb6fe2a5a06cdac3ed1946c</a>.</p>