Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2-byte memory leak reported by LeakSanitizer #5535

Closed
geeknik opened this issue Jun 7, 2020 · 0 comments
Closed

2-byte memory leak reported by LeakSanitizer #5535

geeknik opened this issue Jun 7, 2020 · 0 comments
Assignees
Labels

Comments

@geeknik
Copy link

@geeknik geeknik commented Jun 7, 2020

I did this

Compiled curl with clang-11 from commit 47d873. I then ran ./curl -q -K test0000 h where test0000 is defined at the end of this report.

I expected the following

No memory leak.

This happened instead

==3701939==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 2 byte(s) in 1 object(s) allocated from:
    #0 0x480dc1 in strdup (/root/curl-asan/src/curl+0x480dc1)
    #1 0x4e24e2 in getparameter /root/curl-asan/src/tool_getparam.c:1683:9
    #2 0x50be98 in parseconfig /root/curl-asan/src/tool_parsecfg.c:235:13
    #3 0x4da3c4 in getparameter /root/curl-asan/src/tool_getparam.c:1846:10
    #4 0x4ea551 in parse_args /root/curl-asan/src/tool_getparam.c:2265:18
    #5 0x4ef8de in operate /root/curl-asan/src/tool_operate.c:2529:26

SUMMARY: AddressSanitizer: 2 byte(s) leaked in 1 allocation(s).

curl/libcurl version

curl 7.71.0-DEV (x86_64-pc-linux-gnu) libcurl/7.71.0-DEV zlib/1.2.11
Release-Date: [unreleased]
Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
Features: AsynchDNS IPv6 Largefile libz UnixSockets

operating system

Linux ubuntu-fuzzer-sfo3-01-20200601-clang-11 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

test0000 base64

LQAKCoAwCQowMAqACg0wMDAwMDA9MDAwMAkKCgowMDAwPQoKRGkwPTAKAAowAAoKCjAwMDA9Cgow
MDAwMDAwPQowMDAwMDAwMD0JCgo9MApE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wMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
MDAwOjAwMDAwAAowCgoKCjAwMDAJ6goKRGkwMDAwMDA9Cf8KRGlnPQoKCkQwMDAwCkQwMDAwCj0J
CgpEaT0wMAqAMDAKCmlnPQkwMAoKMDAwMD0J/wroMDAwPfUKCjAwMDA9CfcJMApEaWc9MDAwCkQw
MD0wMDAKCmoKaTA99TAKCmlnPTAwMAoKMDAwPfUwMDAwMDAwMAo9CQoKRGk9MDAKMDAwMCAwMCAw
CkRpMDAwCkRpZz0wCgAKCkQwgDAKIwoKRGkwPQoKMDAwmDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwCj0JCgAKCkQwMDCYCkQwMD0wCjAwMDAwMDAw
MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAACjAKCgoKMDCYMAoKCgpE
aTAwMDAwMD0KRGlnPQoKCkQwMDCYCkQwMDAwMD0JCgpEaT0wMAqAgIAKCmlnPQkwMAoKMDAwMD0K
6DAwMD31CgowMDAwPQn3CTAKCgoKRGlnPTAwMApEMDA9MDAwCgpqCmkwPQoKaWc9MDAwCgowMDA9
9TAwMDAwMDAwCj0JCgpEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
MDAwMDAwMDAwMDAwMDAwMDAwMDAwCmoKaWc99TAKCgo99TAwCkRpgD0J/wppZz0KMAoKgICACgpE
9fX1CkRpMDAw9TAwMDD//zAJCgoKCgppZz31MAoKRGkwMJgKRGlnPTAKPQkKCkRpPYAwMDAwAAow
MDAKCgowMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAK
@bagder bagder self-assigned this Jun 7, 2020
@bagder bagder added the memory-leak label Jun 7, 2020
bagder added a commit that referenced this issue Jun 7, 2020
Memory leak
Reported-by: Geeknik Labs
Fixes #5535
@bagder bagder closed this in a3e9723 Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.