Re: [Bluez-devel] off-by-one bugfix for sdp_data_alloc

Marcel Holtmann
2006-09-03T21:28:56Z

Hi Jeff,

> The following patch against bluez-libs-3.4 fixes a problem where the
> last character of a null-terminated string is lost. Adding the +1
> accounts for and preserves the null terminator.

the SDP strings are not NULL terminated strings. They a prefixed with a
length value. So what is the reason for storing the NULL terminator in
the records? Show me an example what actually goes wrong here.

Regards

Marcel