{"action":"created","issue":{"url":"https://api.github.com/repos/Ettercap/ettercap/issues/748","repository_url":"https://api.github.com/repos/Ettercap/ettercap","labels_url":"https://api.github.com/repos/Ettercap/ettercap/issues/748/labels{/name}","comments_url":"https://api.github.com/repos/Ettercap/ettercap/issues/748/comments","events_url":"https://api.github.com/repos/Ettercap/ettercap/issues/748/events","html_url":"https://github.com/Ettercap/ettercap/issues/748","id":171008153,"number":748,"title":"etterlog: memory leak when processing crafted file","user":{"login":"asarubbo","id":4741819,"avatar_url":"https://avatars.githubusercontent.com/u/4741819?v=3","gravatar_id":"","url":"https://api.github.com/users/asarubbo","html_url":"https://github.com/asarubbo","followers_url":"https://api.github.com/users/asarubbo/followers","following_url":"https://api.github.com/users/asarubbo/following{/other_user}","gists_url":"https://api.github.com/users/asarubbo/gists{/gist_id}","starred_url":"https://api.github.com/users/asarubbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asarubbo/subscriptions","organizations_url":"https://api.github.com/users/asarubbo/orgs","repos_url":"https://api.github.com/users/asarubbo/repos","events_url":"https://api.github.com/users/asarubbo/events{/privacy}","received_events_url":"https://api.github.com/users/asarubbo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-13T13:04:31Z","updated_at":"2016-08-22T03:02:11Z","closed_at":null,"body":"There is a memory leak when processing crafted file.\r\n\r\n~~~\r\n# etterlog $FILE\r\nLog file version    : 0.8.2\r\nTimestamp           : Thu Jul 16 15:28:54 2015 [688192]\r\nType                : LOG_INFO\r\n\r\n1766 tcp OS fingerprint\r\n\r\n20530 mac vendor fingerprint\r\n\r\n2182 known services\r\n\r\n\r\n=================================================================\r\n==13629==ERROR: LeakSanitizer: detected memory leaks\r\n\r\nDirect leak of 49321 byte(s) in 1 object(s) allocated from:\r\n    #0 0x4c1ae0 in calloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:66\r\n    #1 0x502af9 in get_info /var/tmp/portage/net-analyzer/ettercap-9999/work/ettercap-9999/utils/etterlog/el_log.c:207:7\r\n\r\nDirect leak of 8232 byte(s) in 1 object(s) allocated from:\r\n    #0 0x4c1ae0 in calloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:66\r\n    #1 0x508a16 in globals_alloc /var/tmp/portage/net-analyzer/ettercap-9999/work/ettercap-9999/utils/etterlog/el_main.c:132:4\r\n\r\nDirect leak of 232 byte(s) in 1 object(s) allocated from:\r\n    #0 0x4c1958 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52\r\n    #1 0x7f716a4879c9 in gz_open /var/tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8-abi_x86_64.amd64/gzlib.c:111\r\n\r\nDirect leak of 5 byte(s) in 1 object(s) allocated from:\r\n    #0 0x4c1ae0 in calloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:66\r\n    #1 0x502883 in get_info /var/tmp/portage/net-analyzer/ettercap-9999/work/ettercap-9999/utils/etterlog/el_log.c:199:7\r\n\r\nIndirect leak of 16384 byte(s) in 1 object(s) allocated from:\r\n    #0 0x4c1958 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52\r\n    #1 0x7f716a48821a in gz_look /var/tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8-abi_x86_64.amd64/gzread.c:95                                                                          \r\n                                                                                                                                                                                               \r\nIndirect leak of 8192 byte(s) in 1 object(s) allocated from:                                                                                                                                   \r\n    #0 0x4c1958 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52                                                      \r\n    #1 0x7f716a48820a in gz_look /var/tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8-abi_x86_64.amd64/gzread.c:94                                                                          \r\n                                                                                                                                                                                               \r\nIndirect leak of 7152 byte(s) in 1 object(s) allocated from:                                                                                                                                   \r\n    #0 0x4c1958 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52                                                      \r\n    #1 0x7f716a482e0c in inflateInit2_ /var/tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8-abi_x86_64.amd64/inflate.c:208                                                                  \r\n                                                                                                                                                                                               \r\nIndirect leak of 9 byte(s) in 1 object(s) allocated from:                                                                                                                                      \r\n    #0 0x4c1958 in malloc /var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52\r\n    #1 0x7f716a487aca in gz_open /var/tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8-abi_x86_64.amd64/gzlib.c:200\r\n\r\nSUMMARY: AddressSanitizer: 89527 byte(s) leaked in 8 allocation(s).\r\n~~~\r\n[5.crash.zip](https://github.com/Ettercap/ettercap/files/416565/5.crash.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/Ettercap/ettercap/issues/comments/241305324","html_url":"https://github.com/Ettercap/ettercap/issues/748#issuecomment-241305324","issue_url":"https://api.github.com/repos/Ettercap/ettercap/issues/748","id":241305324,"user":{"login":"eaescob","id":593225,"avatar_url":"https://avatars.githubusercontent.com/u/593225?v=3","gravatar_id":"","url":"https://api.github.com/users/eaescob","html_url":"https://github.com/eaescob","followers_url":"https://api.github.com/users/eaescob/followers","following_url":"https://api.github.com/users/eaescob/following{/other_user}","gists_url":"https://api.github.com/users/eaescob/gists{/gist_id}","starred_url":"https://api.github.com/users/eaescob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaescob/subscriptions","organizations_url":"https://api.github.com/users/eaescob/orgs","repos_url":"https://api.github.com/users/eaescob/repos","events_url":"https://api.github.com/users/eaescob/events{/privacy}","received_events_url":"https://api.github.com/users/eaescob/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T03:02:11Z","updated_at":"2016-08-22T03:02:11Z","body":"Yeah, it wasn't free'ing the info buffer after it had printed it out. Thanks."}}
{"actor":{"display_login":"eaescob"}}