Hi ClamAV team and users,

Another update on slow scanning of PDF files. My team and I have discovered the 
potential root cause. In 
https://github.com/Cisco-Talos/clamav/blob/5f934c16b47591157a7082b71e751c45f095e2c8/libclamav/pdf.c#L1984,
 ClamAV handles PDF document tags. This function comes with a state to properly 
handle tags that require parameters. However, this state is not reset after 
parameters are parsed, so parsing is sensitive to the order in which tags are 
listed in the dictionary.



Now, in this line: 
https://github.com/Cisco-Talos/clamav/blob/5f934c16b47591157a7082b71e751c45f095e2c8/libclamav/pdf.c#L1580,
 we see references to parameters, but they are used after tags are parsed. And 
neither DP nor DecodeParms are in `pdfname_actions`, so they are not affecting 
state.

Please check on this. Happy to provide more information.

Best,
Eric

________________________________

CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain 
confidential information of Five9 and/or its affiliated entities. Access by the 
intended recipient only is authorized. Any liability arising from any party 
acting, or refraining from acting, on any information contained in this e-mail 
is hereby excluded. If you are not the intended recipient, please notify the 
sender immediately, destroy the original transmission and its attachments and 
do not disclose the contents to any other person, use it for any purpose, or 
store or copy the information in any medium. Copyright in this e-mail and any 
attachments belongs to Five9 and/or its affiliated entities.
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to