Aug. 22, 2026
7:24 a.m.
new Embed(resource) crashes if resource is NULL. Ignore the tag in such cases. This came to light during parsing of a button tag without a value. --- src/form.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/form.cc b/src/form.cc index e2f0c1c2..038b94f3 100644 --- a/src/form.cc +++ b/src/form.cc @@ -551,7 +551,7 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize) init_str = value; } - if (inp_type != DILLO_HTML_INPUT_UNKNOWN) { + if ((inp_type != DILLO_HTML_INPUT_UNKNOWN) && (resource || embed)) { if (!embed) embed = new Embed(resource); -- 2.47.3