Commit: 5e358f18b103236299675b3bad6ebf3b2d675fd7
Parent: b456fffd123290281275418e902a290cfa8f783c
Author: Christian Fetzer <christian.fetzer@bmw-carit.de>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2013-01-14 17:42:03
Tree: d7ca723e5b1aafbbbb701d781259040c58c7f178

obexd: Handle empty path name in SetPath If the empty path is given, an empty name should be sent via OBEX. Currently the name field is not set at all and later checks which depend on data->index will access invalid memory regions as g_strsplit returns NULL when an empty string is given. 0 0x000000000041a181 in g_obex_setpath (obex=obex@entry=0x662eb0, path= 0x20 <Address 0x20 out of bounds>, func=func@entry=0x42d300 <setpath_cb>, user_data=user_data@entry=0x668f10, err=err@entry=0x7fffffffda08) at gobex/gobex.c:1397 1 0x000000000042d395 in setpath_cb (obex=0x662eb0, err=0x0, rsp=<optimized out>, user_data=0x668f10) at obexd/client/session.c:902 2 0x0000000000418e54 in handle_response (obex=obex@entry=0x662eb0, err=err@entry=0x0, rsp=rsp@entry=0x668f40) at gobex/gobex.c:948 3 0x0000000000419d7a in incoming_data (io=<optimized out>, cond=<optimized out>, user_data=0x662eb0) at gobex/gobex.c:1191 4 0x00007ffff703c845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 5 0x00007ffff703cb78 in ?? () from /usr/lib/libglib-2.0.so.0 6 0x00007ffff703cf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 7 0x000000000040def2 in main (argc=1, argv=0x7fffffffdd88) at obexd/src/main.c:323

Diffstat

M obexd/client/session.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch