git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@921 77e5149b-7576-45b1-b177-96237e5ba77b
Trog authored on 2004/09/23 00:59:37... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Wed Sep 22 16:58:05 BST 2004 (trog) |
|
2 |
+----------------------------------- |
|
3 |
+ * libclamav/htmlnorm.c: fix possible crash with broken html |
|
4 |
+ (can only trigger when using FOLLOWURL) |
|
5 |
+ |
|
1 | 6 |
Wed Sep 22 16:53:02 BST 2004 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/mbox.c: Scan RFC2298 messages |
... | ... |
@@ -783,7 +783,7 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag |
783 | 783 |
html_output_tag(file_buff_script, tag, &tag_args); |
784 | 784 |
} else if (hrefs && strcmp(tag, "a") == 0) { |
785 | 785 |
arg_value = html_tag_arg_value(&tag_args, "href"); |
786 |
- if (strlen(arg_value) > 0) { |
|
786 |
+ if (arg_value && strlen(arg_value) > 0) { |
|
787 | 787 |
html_tag_arg_add(hrefs, "href", arg_value); |
788 | 788 |
} |
789 | 789 |
} |