Re: sdp_extract_pdu *** stack smashing detected ***

"Vlad Skarzhevskyy" <[email protected]>
Newsgroups gmane.linux.bluez.devel
Message-ID <[email protected]>
In fact I used default Fedora 7 and it has bluez-libs 3.9
(libbluetooth.so.2.5.0)

I did source comparison with current sdp.c from bluez-libs 3.25 and I
was not able to see any changer related to this.  So I blindly assumed
this may be a bug.

Once  bluez-libs 3.25 installed (libbluetooth.so.2.9.4) the original
test works fine but when I change the number of records to 215 I get
the same error.  BUT not every run!!!!

--- start testing SDP convenrsions ---
create SEQ of 215 elements
call sdp_attr_add
call sdp_gen_record_pdu
pdu.data_size 438
call sdp_extract_pdu
pdu scanned 438
OK
--- tests finished ---


--- start testing SDP convenrsions ---
create SEQ of 215 elements
call sdp_attr_add
call sdp_gen_record_pdu
make: *** [run] Segmentation fault


If I have  #define TEST_SEQ_SIZE 128  (On bluez-libs 3.25 )
When I run the test if fails every 10-th run.

-------------------------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.