public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] I've found a bug in sdp_cstate_get() function.
@ 2008-03-19 16:03 이주영
  2008-03-19 16:47 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: 이주영 @ 2008-03-19 16:03 UTC (permalink / raw)
  To: bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]

Hi,
 
I've found a bug in sdp_cstate_get() function.
(bluez-utils/dist/sdpd/request.c)
 -> memcpy(cstate, (sdp_cont_state_t *)pdata, sizeof(sdp_cont_state_t));
When running this code, "hcid daemon crash" occurred.(memory alignment error)
I think there's a bug with (sdp_cont_state_t *)pdata in sdp_cstate_get() function.
I fixed this code.
 -> memcpy(cstate, pdata, sizeof(sdp_cont_state_t));
Now, hcid daemon doesn't die.
 
 
tkakel님의 블로그
안녕하세요.

[-- Attachment #1.2: Type: text/html, Size: 2739 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-03-20 12:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 16:03 [Bluez-devel] I've found a bug in sdp_cstate_get() function 이주영
2008-03-19 16:47 ` Marcel Holtmann
2008-03-20  4:01   ` 이주영
2008-03-20 12:43     ` Marcel Holtmann
2008-03-20 11:22   ` [Bluez-devel] RFCOMM sockets Fabrizio Guglielmino
2008-03-20 12:45     ` Marcel Holtmann

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