[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bluetooth-dev] bug in btmem.c?



An u8* pointer is actually represented on 4 bytes so that it is a u32...

MikaŽl Prod'homme <mailto:mikael.prodhomme@xxxxxxx.fr> - Software Engineer 
WAVECOM S.A. <http://www.wavecom.fr/> 
39 rue du gouverneur general Eboue 
92442 ISSY les Moulineaux (FRANCE) 
Tel : +33 (0)1 46 29 09 30 
Cellular: (+33) 06 13 55 63 54



-----Message d'origine-----
De : owner-bluetooth-dev@xxxxxxx.com
[mailto:owner-bluetooth-dev@xxxxxxx.com]De la part de salil gokhale
Envoyť : vendredi 27 avril 2001 08:24
ņ : bluetooth-dev@xxxxxxx.com
Objet : [bluetooth-dev] bug in btmem.c?


Hi
I am using the latest sources (2001/03/29)
I think there is a bug in btmem.c.

O line 241 in subscribe_bt_buf(),
tail_free = (bt_buf.tail - bt_buf.free);

tail_free is a u32 variable, while bt_buf.tail and bt_buf.free
are u8* pointers.

Is this a bug?

Thanks and best regards
Salil

"I think therefore I am."
Rene Des Cartes

------------------------------------
FREE Personalized Email at India.com
Sign up at http://mail.india.com

-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com