* [PATCH obexd] client: fix possible crash on GetFile
@ 2011-09-13 8:11 Luiz Augusto von Dentz
2011-09-27 9:47 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2011-09-13 8:11 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Invalid read of size 8
at 0x413DA1: get_file_callback (ftp.c:184)
by 0x40A74E: transfer_complete (gobex-transfer.c:73)
by 0x40AB91: transfer_response (gobex-transfer.c:172)
by 0x40847A: handle_response (gobex.c:629)
by 0x408C06: incoming_data (gobex.c:811)
by 0x3E01043DBC: g_main_context_dispatch (in /lib64/libglib-2.0.so.0.2910.0)
by 0x3E010445A7: ??? (in /lib64/libglib-2.0.so.0.2910.0)
by 0x3E01044AF4: g_main_loop_run (in /lib64/libglib-2.0.so.0.2910.0)
by 0x404CD4: main (main.c:102)
Address 0x8 is not stack'd, malloc'd or (recently) free'd
---
client/ftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/ftp.c b/client/ftp.c
index 2d1a87c..336fc26 100644
--- a/client/ftp.c
+++ b/client/ftp.c
@@ -305,7 +305,7 @@ static DBusMessage *get_file(DBusConnection *connection,
"org.openobex.Error.InvalidArguments", NULL);
if (obc_session_get(session, NULL, source_file,
- target_file, NULL, 0, get_file_callback, NULL) < 0)
+ target_file, NULL, 0, get_file_callback, ftp) < 0)
return g_dbus_create_error(message,
"org.openobex.Error.Failed",
"Failed");
--
1.7.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH obexd] client: fix possible crash on GetFile
2011-09-13 8:11 [PATCH obexd] client: fix possible crash on GetFile Luiz Augusto von Dentz
@ 2011-09-27 9:47 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-09-27 9:47 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hi Luiz,
On Tue, Sep 13, 2011, Luiz Augusto von Dentz wrote:
> Invalid read of size 8
> at 0x413DA1: get_file_callback (ftp.c:184)
> by 0x40A74E: transfer_complete (gobex-transfer.c:73)
> by 0x40AB91: transfer_response (gobex-transfer.c:172)
> by 0x40847A: handle_response (gobex.c:629)
> by 0x408C06: incoming_data (gobex.c:811)
> by 0x3E01043DBC: g_main_context_dispatch (in /lib64/libglib-2.0.so.0.2910.0)
> by 0x3E010445A7: ??? (in /lib64/libglib-2.0.so.0.2910.0)
> by 0x3E01044AF4: g_main_loop_run (in /lib64/libglib-2.0.so.0.2910.0)
> by 0x404CD4: main (main.c:102)
> Address 0x8 is not stack'd, malloc'd or (recently) free'd
> ---
> client/ftp.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-27 9:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13 8:11 [PATCH obexd] client: fix possible crash on GetFile Luiz Augusto von Dentz
2011-09-27 9:47 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).