annotate src/common.h @ 42:7a97f50c39c5 stable-0-5-12 **FUNKY**

security fix for potential buffer overrun in lz decompress
author carl
date Tue, 02 Oct 2007 16:10:36 -0700
parents c508ee15dfca
children b2a7f2e0926a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
2 #ifndef __COMMON_H
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
3 #define __COMMON_H
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
4
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
5 #ifndef _WIN32
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
6 typedef unsigned int DWORD;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
7 typedef unsigned short int WORD;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
8 typedef unsigned char BYTE;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
9 typedef unsigned int UINT32;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
10
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
11 # pragma pack (1)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
12
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
13 # ifndef FILETIME_DEFINED
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
14 # define FILETIME_DEFINED
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
15 /*Win32 Filetime struct - copied from WINE*/
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
16 typedef struct {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
17 unsigned int dwLowDateTime;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
18 unsigned int dwHighDateTime;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
19 } FILETIME;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
20 # endif
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
21 #endif // _WIN32
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
22 #endif // __COMMON_H