VirusTotal / yara

The pattern matching swiss knife
https://virustotal.github.io/yara/
BSD 3-Clause "New" or "Revised" License
8.33k stars 1.45k forks source link

Update of documentation - added info about yr_fetch_block_data #2071

Closed vojone closed 6 months ago

vojone commented 7 months ago

Hi, I noticed that in PR#2020 the function yr_fetch_block_data has been added for better exception handling. This function has replaced the previous "raw" call of block->fetch_data in modules. But saw that the new function for fetching data is not mentioned in the documentation (especially in the writingmodules.rst file, where there is a section focused on fetching the data), which in my opinion can be misleading for devs, that will be creating the new modules. Therefore I've changed this section to make it more up-to-date and to suggest the new function for fetching the data.