diff src/lzfu.h @ 41:183ae993b9ad

security fix for potential buffer overrun in lz decompress
author carl
date Tue, 02 Oct 2007 15:49:44 -0700
parents 6fe121a971c9
children f6db1f060a95
line wrap: on
line diff
--- a/src/lzfu.h	Fri Aug 24 18:57:59 2007 -0700
+++ b/src/lzfu.h	Tue Oct 02 15:49:44 2007 -0700
@@ -1,4 +1,12 @@
 #ifndef LZFU_H
 #define LZFU_H
-unsigned char* lzfu_decompress (unsigned char* rtfcomp, size_t *size);
+
+#ifdef _MSC_VER
+#define u_int32_t unsigned int
+#else
+#include <stdint.h>
 #endif
+
+unsigned char* lzfu_decompress (unsigned char* rtfcomp, u_int32_t compsize, size_t *size);
+
+#endif