From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] sdp_extract_pdu *** stack smashing detected ***
Date: Tue, 05 Feb 2008 23:40:32 +0100 [thread overview]
Message-ID: <1202251232.15090.147.camel@violet> (raw)
In-Reply-To: <cc1649d10802051215j7f1d9406u6c4cda1b161c77de@mail.gmail.com>
Hi Vlad,
> We have experimental JSR-82 module that is directly bound to libbluetooth.so
> svn http://bluecove.googlecode.com/svn/bluecove-gpl/trunk
>
> Don't worry we also working D-Bus bound module as well....
>
> Now we just found a small problem in bluez sdp.c. When we are
> creating service record that contains SDP_SEQ and its (SEQ) binary
> size more then 254 bytes we get *** stack smashing detected *** error.
>
> For tests SDP_SEQ containing 253 Null elements has been used.
>
> Stack: [0xb512f000,0xb5180000), sp=0xb517e930, free space=318k
> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
> C [libbluetooth.so.2+0xace2] sdp_append_to_buf+0x22
> C [libbluetooth.so.2+0xde08] sdp_append_to_pdu+0x98
>
> My entry point to the library is sdp_extract_pdu
>
> Tested on Fedora 7 2.6.21 i386, bluez-libs 3.9
>
> I was looking at the source code for sdp.c 3.25 and can't see any
> related changes.
>
> The code creating the test is in java and it call function in
> BlueCoveBlueZ_Tests.c
>
> How should I approach to fix this bluez?
can you write a quick example in C that would trigger this problem. I
don't see the issue right now. Have to get it through a debugger.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2008-02-05 22:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 20:15 [Bluez-devel] sdp_extract_pdu *** stack smashing detected *** Vlad Skarzhevskyy
2008-02-05 22:40 ` Marcel Holtmann [this message]
2008-02-07 18:25 ` Vlad Skarzhevskyy
2008-02-07 18:32 ` Bastien Nocera
2008-02-07 18:54 ` Marcel Holtmann
2008-02-07 18:46 ` Marcel Holtmann
2008-02-07 20:57 ` Vlad Skarzhevskyy
2008-02-07 21:03 ` Vlad Skarzhevskyy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1202251232.15090.147.camel@violet \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.