Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: References: Date: Tue, 05 Feb 2008 23:40:32 +0100 Message-Id: <1202251232.15090.147.camel@violet> Mime-Version: 1.0 Subject: Re: [Bluez-devel] sdp_extract_pdu *** stack smashing detected *** Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net 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