Menu

#113 Bug in GS1 validation for AI 253 (max length)

1.0
closed
None
2018-11-02
2018-07-04
No

I think the max length for AI 253 is 30 characters, but the code seems to think that 31 is OK:

    if (ai_value[i] == 253) { // GDTI
        if ((data_length[i] < 14) || (data_length[i] > 31)) {
            error_latch = 1;
        } else {
            error_latch = 0;
        }
    }

Discussion

  • Robin Stuart

    Robin Stuart - 2018-07-06

    Thank you, Daniel, you are once again correct. I have changed this.

     
  • Harald Oehlmann

    Harald Oehlmann - 2018-11-02
    • status: open --> closed
    • assigned_to: Robin Stuart
     

Log in to post a comment.

MongoDB Logo MongoDB