mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-12-08 06:09:46 +00:00
290424 Missing break in switch - In hash_match: Missing break statement between cases in switch statement 290414 Resource leak - In cli_scanishield_msi: Leak of memory or pointers to system resources. Memory leak in a fail case 288197 Resource leak - In decrypt_any: Leak of memory or pointers to system resources. Memory leak in a fail case 290426 Resource leak - In cli_magic_scan: Leak of memory or pointers to system resources. Leaked a file prefix when running with --save-temps 192923 Resource leak - In cli_scanrar: Leak of memory or pointers to system resources. Leaked a file descriptor if a virus was found in a RAR file comment 225146 Resource leak - In cli_scanegg: Leak of memory or pointers to system resources. Leaked a file descriptor if unable to write a comment file to disk 290425 Resource leak - In scan_common: Leak of memory or pointers to system resources. Memory leaks in various fail cases. Also changes cli_scanrar to write out the file comment only if --leave-temps is specified and scan the buffer (like what is done in cli_scanegg) instead of writing the file out, scanning that, and then deleting the file if --leave-temps is not specified. The unit tests stopped working when correcting an issue with a switch statement that determined what type of signature had matched on a Google SafeBrowsing GDB rule. Looking into the unit tests, it looks like the code had always assumed that the test cases would be detected by a malware test rule in unit_tests/input/daily.gdb, but now some of the tests get matched on the phishing test rule. I updated the test logic to be more clear, and added tests for both cases now. Fix some memory leaks in libclamav/scanners.c |
||
|---|---|---|
| .. | ||
| .split | ||
| input | ||
| .gitignore | ||
| buf.nocomment.ref | ||
| buf.notags.ref | ||
| check1_clamscan.sh | ||
| check2_clamd.sh | ||
| check3_clamd.sh | ||
| check4_clamd.sh | ||
| check5_clamd_vg.sh | ||
| check6_clamd_vg.sh | ||
| check7_clamd_hg.sh | ||
| check8_clamd_hg.sh | ||
| check9_clamscan_vg.sh | ||
| check_bytecode.c | ||
| check_clamav.c | ||
| check_clamav_skip.c | ||
| check_clamd.c | ||
| check_common.sh | ||
| check_disasm.c | ||
| check_fpu_endian.c | ||
| check_freshclam.sh | ||
| check_htmlnorm.c | ||
| check_jsnorm.c | ||
| check_matchers.c | ||
| check_regex.c | ||
| check_sigtool.sh | ||
| check_str.c | ||
| check_uniq.c | ||
| check_unit_vg.sh | ||
| checks.h | ||
| checks_common.h | ||
| duma_tests.sh | ||
| efence_tests.sh | ||
| encode.js.ref | ||
| encode.nocomment.ref | ||
| js.js.ref | ||
| js.nocomment.ref | ||
| Makefile.am | ||
| Makefile.in | ||
| preload_run.sh | ||
| test-freshclam.conf | ||
| test.nocomment.ref | ||
| test.notags.ref | ||
| urls.nocomment.ref | ||
| urls.notags.ref | ||
| valgrind.supp | ||
| valgrind_tests.sh | ||
| virusaction-test.sh | ||