Accept any negative length when decoding elements of tuples and UDTs

Description

In oss driver 4.2.0 in com.datastax.oss.driver.internal.core.type.codec.UdtCodec#decode they have an issue. They get -2 as the value for the length of the null data but driver expect only -1.
https://github.com/datastax/java-driver/blob/4.x/core/src/main/java/com/datastax/oss/driver/internal/core/type/codec/UdtCodec.java#L115

Native protocol of DB allows any negative values for a null value.
https://github.com/datastax/native-protocol/blob/1.x/src/main/resources/native_protocol_v3.spec

Table schema:

Environment

DSE 6.7.6
Java Driver DSE 2.2.0 using oss 4.2.0

Pull Requests

None

Status

Assignee

Alexandre Dutra

Reporter

Jeremy Artero

Labels

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Blocker
Configure