Browse code

Add VBA signature for MacOffice X

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@407 77e5149b-7576-45b1-b177-96237e5ba77b

Trog authored on 2004/03/17 23:58:09
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Mar 17 15:06:44 GMT 2004 (trog)
2
+-----------------------------------
3
+  * libclamav/vba_extract.c: Add VBA signature for MacOffice X
4
+
1 5
 Wed Mar 17 11:53:05 GMT 2004 (trog)
2 6
 -----------------------------------
3 7
   * libclamav/vba_extract.c: VBA alignment check. Should now work with
... ...
@@ -88,7 +88,7 @@ typedef struct byte_array_tag {
88 88
 	unsigned char *data;
89 89
 } byte_array_t;
90 90
 
91
-#define NUM_VBA_VERSIONS 10
91
+#define NUM_VBA_VERSIONS 11
92 92
 vba_version_t vba_version[] = {
93 93
 	{ { 0x5e, 0x00, 0x00, 0x01 }, "Office 97",              5, FALSE},
94 94
 	{ { 0x5f, 0x00, 0x00, 0x01 }, "Office 97 SR1",          5, FALSE },
... ...
@@ -100,6 +100,7 @@ vba_version_t vba_version[] = {
100 100
         { { 0x79, 0x00, 0x00, 0x01 }, "Office 2003",            6, FALSE },
101 101
 	{ { 0x60, 0x00, 0x00, 0x0e }, "MacOffice 98",           5, TRUE },
102 102
 	{ { 0x62, 0x00, 0x00, 0x0e }, "MacOffice 2001",         5, TRUE },
103
+	{ { 0x63, 0x00, 0x00, 0x0e }, "MacOffice X",		6, TRUE },
103 104
 };
104 105
 
105 106
 #define VBA56_DIRENT_RECORD_COUNT (2 + /* magic */              \
... ...
@@ -288,7 +289,7 @@ vba_project_t *vba56_dir_read(const char *dir)
288 288
 	}
289 289
 
290 290
 	if (i == NUM_VBA_VERSIONS) {
291
-		cli_dbgmsg("Unknown VBA version signature x0%x0x%x0x%x0x%x\n",
291
+		cli_dbgmsg("Unknown VBA version signature %x %x %x %x\n",
292 292
 			version[0], version[1], version[2], version[3]);
293 293
 		close(fd);
294 294
 		return NULL;