Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Aug 7, 2024
1 parent 3520989 commit a723da4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions libclamav/ole2_extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,9 @@ typedef struct __attribute__((packed)) ole2_header_tag {
int16_t byte_order __attribute__((packed)); /* -2=intel */

uint16_t log2_big_block_size __attribute__((packed)); /* usually 9 (2^9 = 512) */ //sector shift
#if 0
uint32_t log2_small_block_size __attribute__((packed)); /* usually 6 (2^6 = 64) */
/*
* This is technically incorrect. log2_small_block_size should be a uint16_t, and reserved should
* be 6 bytes. This makes everything line up, but could potentially cause issues when switching byte order
* for log2_small_block_size. Consider changing.
*/

int32_t reserved[2] __attribute__((packed));
#else

uint16_t log2_small_block_size __attribute__((packed)); /* usually 6 (2^6 = 64) */ //mini sector shift
uint8_t reserved[6];

#endif
uint32_t num_directory_sectors __attribute__((packed)); //If dll_version is 3, this must be 0
int32_t bat_count __attribute__((packed)); //num fat sectors
int32_t prop_start __attribute__((packed)); //first directory sector location
Expand Down

0 comments on commit a723da4

Please sign in to comment.