Re: I've found a bug in sdp_cstate_get() function.
Marcel Holtmann <[email protected]>
| Newsgroups | gmane.linux.bluez.devel |
|---|---|
| Message-ID | <[email protected]> |
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. > which version? This should have been fixed by now. Either in the latest bluez-utils-3.28 or the CVS. 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/