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

tool_parsecfg.c:223:30: runtime error: load of value 9, which is not a valid value for type '_Bool' #1728

Closed
geeknik opened this issue Aug 4, 2017 · 0 comments

Comments

@geeknik
Copy link

geeknik commented Aug 4, 2017

I did this

Compiled with UBSan, ASan and afl-clang-fast.

UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 ~/curl/src/curl -K test029 file:///dev/shm/test.png

Note: /dev/shm/test.png does not exist.

I did not expect the following

tool_parsecfg.c:223:30: runtime error: load of value 9, which is not a valid value for type '_Bool'
    #0 0x5566d5 in parseconfig /root/curl/src/tool_parsecfg.c:223:30
    #1 0x511d9d in getparameter /root/curl/src/tool_getparam.c:1697:10
    #2 0x5288de in parse_args /root/curl/src/tool_getparam.c:2096:18
    #3 0x530015 in operate /root/curl/src/tool_operate.c:2018:26
    #4 0x52d4f9 in main /root/curl/src/tool_main.c:252:14
    #5 0x7f9a51481b44 in __libc_start_main /build/glibc-6V9RKT/glibc-2.19/csu/libc-start.c:287
    #6 0x42123b in _start (/root/curl/src/curl+0x42123b)

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior tool_parsecfg.c:223:30 

curl/libcurl version

git 7093488

operating system

debian 8 x64

test029.gz

@bagder bagder closed this as completed in d6c8def Aug 5, 2017
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant