Re: sdp_extract_pdu *** stack smashing detected ***
"Vlad Skarzhevskyy" <[email protected]>
| Newsgroups | gmane.linux.bluez.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Marcel I create a small test in C bluez-sdp-tests.c Source code there: http://snapshot.bluecove.org/bluecove-gpl/bluez/test/ If the SDP binary size is 258 bytes still works OK. But when I make it bigger call to sdp_gen_record_pdu will crash. ===================TEST_SEQ_SIZE 125========================= --- start testing SDP convenrsions --- create SEQ of 125 elements call sdp_attr_add call sdp_gen_record_pdu pdu.data_size 258 call sdp_extract_pdu pdu scanned 258 OK --- tests finished --- ===================TEST_SEQ_SIZE 126========================= --- start testing SDP convenrsions --- create SEQ of 126 elements call sdp_attr_add call sdp_gen_record_pdu *** stack smashing detected ***: target/bluez-tests terminated make: *** [run] Aborted 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/