2008-02-29 10:06:02

by Frédéric Dalleau

[permalink] [raw]
Subject: [Bluez-devel] [patch] alignment trap in hcid

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


Attachments:
upf_hcid_align.patch (1.13 kB)
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments

2008-02-29 19:31:02

by Johan Hedberg

[permalink] [raw]
Subject: Re: [Bluez-devel] [patch] alignment trap in hcid

On Feb 29, 2008, at 20:27, Marcel Holtmann wrote:
>> I recently met an alignment trap in hcid.
>> Some device sent me an sdp request and the answer had to be
>> fragmented because the device reception buffer was very small.
>> After that i saw alignment trap.
>> The last trace I saw was : Continuation state size: 8
>> The trace is located at sdpd/request.c : static sdp_cont_state_t
>> *sdp_cstate_get(uint8_t *buffer)
>> This function returns an unaligned pointer.
>
> this is so funny since I know it was there, but the new qualification
> tests don't find it anymore :)
>
> Please fix the coding style. You are missing some spaces after the
> "if".
>
> Johan, please have second look at the patch. It looks good to me.

Looks good to me too.

Johan

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-02-29 18:27:05

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] [patch] alignment trap in hcid

Hi Frederic,

> I recently met an alignment trap in hcid.
> Some device sent me an sdp request and the answer had to be
> fragmented because the device reception buffer was very small.
> After that i saw alignment trap.
> The last trace I saw was : Continuation state size: 8
> The trace is located at sdpd/request.c : static sdp_cont_state_t
> *sdp_cstate_get(uint8_t *buffer)
> This function returns an unaligned pointer.

this is so funny since I know it was there, but the new qualification
tests don't find it anymore :)

Please fix the coding style. You are missing some spaces after the "if".

Johan, please have second look at the patch. It looks good to me.

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/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-03-05 18:14:23

by Johan Hedberg

[permalink] [raw]
Subject: Re: [Bluez-devel] [patch] alignment trap in hcid

Hi Fr=E9d=E9ric,

On Mar 3, 2008, at 6:29, Fr=E9d=E9ric Dalleau wrote:
> Damn me, I always forget this space after ifs...
> Is there any way to test this, or hope it's ok ?

The patch was fine and is now commited to CVS. Thanks.

Johan
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel