-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
using 1.7.12 coredump #420
Comments
@cjsheng can you provide the reproducible test case(input string) and your compile environment? I have tested cJSON with fuzz test , and didn't find any crashed_input, so I have no idea about your situation. |
closed it due to lack of more infomation, feel free to reopen it when more details provided. |
any steps to reproduce this @cjsheng ? |
May be caused by wild pointer,It should not be caused by the problem of cjson itself. thanks. |
I don't understand why cJSON_Parse would coredump ?
#0 0x00007f6230fe58d7 in raise () from /lib64/libc.so.6
#1 0x00007f6230fe6caa in abort () from /lib64/libc.so.6
#2 0x00007f62310231b4 in __libc_message () from /lib64/libc.so.6
#3 0x00007f6231028706 in malloc_printerr () from /lib64/libc.so.6
#4 0x00007f623102ac5e in int_malloc () from /lib64/libc.so.6
#5 0x00007f623102c420 in malloc () from /lib64/libc.so.6
#6 0x00005643fa18298b in cJSON_New_Item ()
#7 0x00005643fa184cc2 in parse_object ()
#8 0x00005643fa1844fc in parse_value ()
#9 0x00005643fa183d3a in cJSON_ParseWithOpts ()
#10 0x00005643fa183e5a in cJSON_Parse ()
#11 0x00005643fa17e707 in ReadBegin (
msg=0x5643fa94ca50 "{\n\t"m_url":\t"gsfs://10.145.255.142:5000/config*",\n\t"m_id":\t"37749592",\n\t"m_format":\t2,\n\t"m_nodeType":\t67,\n\t"m_escape":\t34,\n\t"m_quote":\t34,\n\t"m_header":\tfalse,\n\t"m_nodeNum":\t3,\n\t"m_nodeName":\t"cn_5002""..., cmd=0x5643fad8d660) at package.cpp:63
#12 DeserializeMessage (src=0x5643fa94b8f0, result=0x7fffcfe3273c) at package.cpp:159
#13 0x00005643fa16e356 in HandleCommand (conn=...) at g_main.cpp:918
#14 0x00005643fa16fd50 in HandleRead (bev=, arg=0x5643fad8d6c0) at g_main.cpp:755
#15 0x00005643fa1900a3 in bufferevent_run_readcb ()
#16 0x00005643fa195227 in bufferevent_trigger_nolock ()
#17 0x00005643fa1955d4 in bufferevent_readcb ()
#18 0x00005643fa19a897 in event_persist_closure ()
#19 0x00005643fa19ab9b in event_process_active_single_queue ()
#20 0x00005643fa19b14c in event_process_active ()
#21 0x00005643fa19b8c6 in event_base_loop ()
#22 0x00005643fa19b1e8 in event_base_dispatch ()
The text was updated successfully, but these errors were encountered: