Am 23. März 2023 11:45:45 UTC schrieb Lloyd Kinsella <ll...@kinwood.net>: >* @param buf A buffer to read data into, must be at least offset + count >* @param count The number of bytes to read. >* @param offset The the offset into buf to read the data to. If
I think the param description is quite clear... buf needs to be of size offset + count, so offset specifies the start point where to store count number of bytes in buf. _______________________________________________ clamav-devel mailing list clamav-devel@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-devel Please submit your patches to our Github: https://github.com/Cisco-Talos/clamav-devel/pulls Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml