From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <564d96fb0606191038m42f48295w784bf0062ae184a3@mail.gmail.com> References: <564d96fb0606060325q834360bqe4e9d41cbb28a16f@mail.gmail.com> <564d96fb0606071459i7367f84fkb7ee645941f84279@mail.gmail.com> <1149718288.22472.71.camel@localhost> <564d96fb0606081007p3fb8ea42v5926c80eb1cc9657@mail.gmail.com> <1149884042.3985.6.camel@aeonflux.holtmann.net> <1150099297.2589.15.camel@aeonflux.holtmann.net> <564d96fb0606120452m4e4ced33x66ca63fd675ad3@mail.gmail.com> <1150715237.4277.17.camel@localhost> <564d96fb0606190513r4c59cd28v9bd23a9a45e55e8b@mail.gmail.com> <564d96fb0606190517w50ef4027p258030f7593ebd6a@mail.gmail.com> <564d96fb0606191038m42f48295w784bf0062ae184a3@mail.gmail.com> Date: Mon, 19 Jun 2006 20:07:39 +0200 Message-Id: <1150740459.4277.25.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] bug in sdp_gen_pd Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Rafael, > A patch is attached. It creates the following invariant when handling strings: > > d->unitSize == strlen(d->val.str) + sizeof(uint8_t) > > Different parts of the code had different "opinions". please also check hidd, because the HID report descriptor is placed in a string and we need to know the exact string length. Regards Marcel _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel