mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 18:33:16 +00:00
bb#5343
This commit is contained in:
parent
b8cb08ff9e
commit
bebd86a60b
18 changed files with 102 additions and 65 deletions
|
@ -388,6 +388,7 @@ cli_vba_readdir(const char *dir, struct uniq *U, uint32_t which)
|
|||
if(ptr == NULL) break;
|
||||
if (!(vba_project->colls[i]=uniq_get(U, ptr, strlen(ptr), &hash))) {
|
||||
cli_dbgmsg("vba_readdir: cannot find project %s (%s)\n", ptr, hash);
|
||||
free(ptr);
|
||||
break;
|
||||
}
|
||||
cli_dbgmsg("vba_readdir: project name: %s (%s)\n", ptr, hash);
|
||||
|
@ -1058,7 +1059,8 @@ cli_wm_readdir(int fd)
|
|||
|
||||
end_offset = fib.macro_offset + fib.macro_len;
|
||||
done = FALSE;
|
||||
memset(¯o_info, '\0', sizeof(macro_info));
|
||||
macro_info.entries = NULL;
|
||||
macro_info.count = 0;
|
||||
|
||||
while((lseek(fd, 0, SEEK_CUR) < end_offset) && !done) {
|
||||
if (cli_readn(fd, &info_id, 1) != 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue