Message size incorrect when using Custom Payload

Description

Similar to , the calculation of message size is incorrect when using Custom Payload because CBUtil.sizeOfBytes incorrectly considers the length of [bytes] to be 2 bytes instead of 4.

Should fix CBUtil.sizeOfBytes to return the correct value, and have other code that uses it call a new method CBUtil.sizeOfShortBytes where applicable.

Environment

None

Pull Requests

None
Fixed

Assignee

Unassigned

Reporter

Andy Tolbert

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Major
Configure