git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1214 77e5149b-7576-45b1-b177-96237e5ba77b
Trog authored on 2004/12/23 01:11:05... | ... |
@@ -1,3 +1,9 @@ |
1 |
+Wed Dec 22 16:08:49 GMT 2004 (trog) |
|
2 |
+----------------------------------- |
|
3 |
+ * sigtool/vba.c: Add some more Word6 tokens. |
|
4 |
+ |
|
5 |
+ * libclamav/htmlnorm.c: Don't set execute bit on temp files. |
|
6 |
+ |
|
1 | 7 |
Tue Dec 21 18:42:44 GMT 2004 (njh) |
2 | 8 |
---------------------------------- |
3 | 9 |
* clamav-milter: Fix fault tolerance problem which could cause |
... | ... |
@@ -439,7 +439,7 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag |
439 | 439 |
} |
440 | 440 |
|
441 | 441 |
snprintf(filename, 1024, "%s/comment.html", dirname); |
442 |
- file_buff_o1->fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); |
|
442 |
+ file_buff_o1->fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR); |
|
443 | 443 |
if (!file_buff_o1->fd) { |
444 | 444 |
cli_dbgmsg("open failed: %s\n", filename); |
445 | 445 |
free(file_buff_o1); |
... | ... |
@@ -450,7 +450,7 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag |
450 | 450 |
} |
451 | 451 |
|
452 | 452 |
snprintf(filename, 1024, "%s/nocomment.html", dirname); |
453 |
- file_buff_o2->fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); |
|
453 |
+ file_buff_o2->fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR); |
|
454 | 454 |
if (!file_buff_o2->fd) { |
455 | 455 |
cli_dbgmsg("open failed: %s\n", filename); |
456 | 456 |
close(file_buff_o1->fd); |
... | ... |
@@ -462,7 +462,7 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag |
462 | 462 |
} |
463 | 463 |
|
464 | 464 |
snprintf(filename, 1024, "%s/script.html", dirname); |
465 |
- file_buff_script->fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); |
|
465 |
+ file_buff_script->fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR); |
|
466 | 466 |
if (!file_buff_script->fd) { |
467 | 467 |
cli_dbgmsg("open failed: %s\n", filename); |
468 | 468 |
close(file_buff_o1->fd); |
... | ... |
@@ -1014,7 +1014,7 @@ int html_screnc_decode(int fd, const char *dirname) |
1014 | 1014 |
} |
1015 | 1015 |
|
1016 | 1016 |
snprintf(filename, 1024, "%s/screnc.html", dirname); |
1017 |
- file_buff.fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); |
|
1017 |
+ file_buff.fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR); |
|
1018 | 1018 |
file_buff.length = 0; |
1019 | 1019 |
|
1020 | 1020 |
if (!file_buff.fd) { |
... | ... |
@@ -175,6 +175,7 @@ void output_token67 (uint16_t token) |
175 | 175 |
mac_token2_t mac_token[] = { |
176 | 176 |
{0x0004, "HelpActivateWindow"}, |
177 | 177 |
{0x0009, "HelpAbout"}, |
178 |
+ {0x000c, "ShrinkFont"}, |
|
178 | 179 |
{0x0016, "NextWindow"}, |
179 | 180 |
{0x001c, "DeleteWord"}, |
180 | 181 |
{0x0045, "GoBack"}, |
... | ... |
@@ -218,6 +219,7 @@ void output_token67 (uint16_t token) |
218 | 218 |
{0x00d7, "ToolsMacro"}, |
219 | 219 |
{0x00de, "Organizer"}, |
220 | 220 |
{0x00e1, "ToolsOptionsFileLocations"}, |
221 |
+ {0x00e4, "ToolsWordCount"}, |
|
221 | 222 |
{0x00e9, "DocRestore"}, |
222 | 223 |
{0x00ed, "EditSelectAll"}, |
223 | 224 |
{0x00f3, "ClosePane"}, |
... | ... |
@@ -226,9 +228,12 @@ void output_token67 (uint16_t token) |
226 | 226 |
{0x012d, "FileNewDefault"}, |
227 | 227 |
{0x012e, "FilePrintDefault"}, |
228 | 228 |
{0x0143, "ViewToolbars"}, |
229 |
+ {0x015d, "TextFormField"}, |
|
230 |
+ {0x0161, "FormFieldOptions"}, |
|
229 | 231 |
{0x0172, "InsertFootnote"}, |
230 | 232 |
{0x0179, "DrawRectangle"}, |
231 | 233 |
{0x017a, "ToolsAutoCorrect"}, |
234 |
+ {0x01a4, "Connect"}, |
|
232 | 235 |
{0x01b0, "ToolsCustomizeKeyboard"}, |
233 | 236 |
{0x01b1, "ToolsCustomizeMenus"}, |
234 | 237 |
{0x01d2, "DrawBringToFront"}, |
... | ... |
@@ -543,8 +548,13 @@ void output_token73 (uint16_t token) |
543 | 543 |
{0x0066, ".Comments"}, |
544 | 544 |
{0x0067, ".FileName"}, |
545 | 545 |
{0x0068, ".Directory"}, |
546 |
+ {0x0069, ".CreateDate"}, |
|
546 | 547 |
{0x006a, ".LastSavedDate"}, |
548 |
+ {0x006b, ".LastSavedBy"}, |
|
549 |
+ {0x006c, ".RevisionNumber"}, |
|
547 | 550 |
{0x006f, ".NumPages"}, |
551 |
+ {0x0070, ".NumWords"}, |
|
552 |
+ {0x0071, ".NumChars"}, |
|
548 | 553 |
{0x0074, ".Rename"}, |
549 | 554 |
{0x0075, ".NewName"}, |
550 | 555 |
{0x0078, ".SmartQuotes"}, |
... | ... |
@@ -603,12 +613,14 @@ void output_token73 (uint16_t token) |
603 | 603 |
{0x01eb, ".Address"}, |
604 | 604 |
{0x01f5, ".Run"}, |
605 | 605 |
{0x01f6, ".Edit"}, |
606 |
+ {0x0218, ".LastSaved"}, |
|
606 | 607 |
{0x0219, ".Revision"}, |
607 | 608 |
{0x021c, ".Pages"}, |
608 | 609 |
{0x021d, ".Words"}, |
609 | 610 |
{0x0232, ".WPHelp"}, |
610 | 611 |
{0x0233, ".WPDocNavKeys"}, |
611 | 612 |
{0x0234, ".SetDesc"}, |
613 |
+ {0x023d, ".CountFootNodes"}, |
|
612 | 614 |
{0x0255, ".AddToMru"}, |
613 | 615 |
{0x0272, ".With"}, |
614 | 616 |
{0x027e, ".ErrorBeeps"}, |
... | ... |
@@ -621,11 +633,13 @@ void output_token73 (uint16_t token) |
621 | 621 |
{0x02ad, ".DraftFont"}, |
622 | 622 |
{0x02af, ".WrapToWindow"}, |
623 | 623 |
{0x02b0, ".Drawings"}, |
624 |
+ {0x02c0, ".NumLines"}, |
|
624 | 625 |
{0x02c6, ".SuperScript"}, |
625 | 626 |
{0x02c7, ".Subscript"}, |
626 | 627 |
{0x02c8, ".WritePassword"}, |
627 | 628 |
{0x02c9, ".RecommendReadOnly"}, |
628 | 629 |
{0x02ca, ".DocumentPassword"}, |
630 |
+ {0x02d5, ".HelpText"}, |
|
629 | 631 |
{0x02d6, ".InsertAs"}, |
630 | 632 |
{0x02dc, ".Formatting"}, |
631 | 633 |
{0x02de, ".InitialCaps"}, |
... | ... |
@@ -643,6 +657,9 @@ void output_token73 (uint16_t token) |
643 | 643 |
{0x0318, ".Kerning"}, |
644 | 644 |
{0x0319, ".Exit"}, |
645 | 645 |
{0x031a, ".Enable"}, |
646 |
+ {0x031b, ".OwnHelp"}, |
|
647 |
+ {0x031c, ".OwnStat"}, |
|
648 |
+ {0x031d, ".StatText"}, |
|
646 | 649 |
{0x031e, ".FormsData"}, |
647 | 650 |
{0x0320, ".BookMarks"}, |
648 | 651 |
{0x0327, ".LinkStyles"}, |
... | ... |
@@ -652,6 +669,10 @@ void output_token73 (uint16_t token) |
652 | 652 |
{0x0330, ".FillColor"}, |
653 | 653 |
{0x0332, ".FillPatternColor"}, |
654 | 654 |
{0x033a, ".RoundCorners"}, |
655 |
+ {0x0349, ".TextType"}, |
|
656 |
+ {0x0353, ".TextWidth"}, |
|
657 |
+ {0x0354, ".TextDefault"}, |
|
658 |
+ {0x0355, ".TextFormat"}, |
|
655 | 659 |
{0x0366, ".SearchName"}, |
656 | 660 |
{0x0370, ".BlueScreen"}, |
657 | 661 |
{0x0378, ".SubDir"}, |