diff --git a/libclamav/ole2_extract.c b/libclamav/ole2_extract.c index 35bdc01e4c..e47781b614 100644 --- a/libclamav/ole2_extract.c +++ b/libclamav/ole2_extract.c @@ -794,6 +794,10 @@ static bool read_uint16(const uint8_t *const ptr, uint32_t ptr_size, uint32_t *i return true; } +/* Search for the FILE_PASS number. If I don't find it, the next two bytes are + * a length. Consume that length of data, and try again. Go until you either find + * the number or run out of data. + */ static bool find_file_pass(const uint8_t *const ptr, uint32_t ptr_size, uint32_t *idx) {