Browse code

autoit final

git-svn: trunk@3354

aCaB authored on 2007/11/02 09:06:33
Showing 2 changed files
... ...
@@ -1,3 +1,6 @@
1
+Fri Nov  2 00:16:27 CET 2007 (acab)
2
+  * libclamav/autoit: final
3
+
1 4
 Thu Nov  1 17:42:12 GMT 2007 (njh)
2 5
 ----------------------------------
3 6
   * libclamav/vba_extract.c:	More tidy ups. Fixed memory leak on error
... ...
@@ -684,30 +684,31 @@ static int ea06(int desc, cli_ctx *ctx, char *tmpd) {
684 684
 	  UNP.cur_input += 4;
685 685
 	  break;
686 686
 
687
-	case 0x11: /* <INT64> */ {
688
-	  uint64_t val;
689
-	  if (UNP.usize < 8 || UNP.cur_input >= UNP.usize-8) {
690
-	    UNP.error = 1;
691
-	    cli_dbgmsg("autoit: not enough space for an int64\n");
692
-	    break;
693
-	  }
694
-	  if (UNP.cur_output+20 >= UNP.csize) {
695
-	    uint8_t *newout;
696
-	    UNP.csize += 512;
697
-	    if (!(newout = cli_realloc(buf, UNP.csize))) {
687
+	case 0x10: /* <INT64> */
688
+	  {
689
+	    uint64_t val;
690
+	    if (UNP.usize < 8 || UNP.cur_input >= UNP.usize-8) {
698 691
 	      UNP.error = 1;
692
+	      cli_dbgmsg("autoit: not enough space for an int64\n");
699 693
 	      break;
700 694
 	    }
701
-	    buf = newout;
695
+	    if (UNP.cur_output+20 >= UNP.csize) {
696
+	      uint8_t *newout;
697
+	      UNP.csize += 512;
698
+	      if (!(newout = cli_realloc(buf, UNP.csize))) {
699
+	      UNP.error = 1;
700
+	      break;
701
+	      }
702
+	      buf = newout;
703
+	    }
704
+	    val = (uint64_t)cli_readint32((char *)&UNP.outputbuf[UNP.cur_input+4]);
705
+	    val <<=32;
706
+	    val += (uint64_t)cli_readint32((char *)&UNP.outputbuf[UNP.cur_input]);
707
+	    snprintf((char *)&buf[UNP.cur_output], 20, "0x%016lx ", val);
708
+	    UNP.cur_output += 19;
709
+	    UNP.cur_input += 8;
710
+	    break;
702 711
 	  }
703
-	  val = (uint64_t)cli_readint32((char *)&UNP.outputbuf[UNP.cur_input+4]);
704
-	  val <<=32;
705
-	  val += (uint64_t)cli_readint32((char *)&UNP.outputbuf[UNP.cur_input]);
706
-	  snprintf((char *)&buf[UNP.cur_output], 20, "0x%016lx ", val);
707
-	  UNP.cur_output += 19;
708
-	  UNP.cur_input += 8;
709
-	  break;
710
-	}
711 712
 
712 713
 	case 0x20: /* <DOUBLE> */
713 714
 	  if (UNP.usize < 8 || UNP.cur_input >= UNP.usize-8) {