Possible bug in gridmtx.c
Function:
add_byte_count() in lines 229 to 232
/ Add the length indicator for byte encoded blocks /
static void add_byte_count(char binary[], const size_t byte_count_posn, const int byte_count) {
bin_append_posn(byte_count - 1, 9, binary, byte_count_posn);
}
In line 231: I don 't think byte_count should be decremented by 1 as it indicates how many byte encoded blocks there are.
Can you check this for me.
Thanks Milton
Hi Milton, yes it's off-putting but it's part of the standard AIMD014 (v 1.63) section 6.3.7:
So it makes sense that to fit numbers 1-512 into 9 bits one is subtracted.
Hi GitLost
Thanks for the insight.
Can close this ticket.
Thanks Milton, will add a comment documenting it, appreciate the reports, Martin