Fix off-by-one error in UdtCodec

Description

The check that there are not too many fields uses the wrong bound:

The code hits an ArrayIndexOutOfBoundsException before the condition is ever reached.

Environment

None

Pull Requests

None

Assignee

Alexandre Dutra

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure