3 bytes int are also valid
@@ -865,6 +865,10 @@ uint32_t getV(txContent_t *txContent) {
v = (txContent->v[0] << 8) | txContent->v[1];
}
else
+ if (txContent->vLength == 3) {
+ v = (txContent->v[0] << 16) | (txContent->v[1] << 8) | txContent->v[2];
+ }
+ else
if (txContent->vLength == 4) {
v = (txContent->v[0] << 24) | (txContent->v[1] << 16) |
(txContent->v[2] << 8) | txContent->v[3];
