public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] sdp_extract_pdu *** stack smashing detected ***
@ 2008-02-05 20:15 Vlad Skarzhevskyy
  2008-02-05 22:40 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Vlad Skarzhevskyy @ 2008-02-05 20:15 UTC (permalink / raw)
  To: BlueZ development

Hi
  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?

Regards,
Vlad

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-02-07 21:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 20:15 [Bluez-devel] sdp_extract_pdu *** stack smashing detected *** Vlad Skarzhevskyy
2008-02-05 22:40 ` Marcel Holtmann
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox