Menu

#106 QR code mode optimization possible bug

1.0
closed
None
2018-11-02
2018-06-21
No

I'm not sure if this is a bug or not, but the the block of code in define_mode which checks for alphanumeric characters says in the comment that it checks for sequences of less than 4 characters, but the logic appears to be checking for sequences of less than 6 characters (just like the numeric checking block immediately above). I guess either the comment is wrong, or the code is wrong?

https://sourceforge.net/p/zint/code/ci/master/tree/backend/qr.c#l114

Discussion

  • Robin Stuart

    Robin Stuart - 2018-06-21
    • assigned_to: Robin Stuart
     
  • Robin Stuart

    Robin Stuart - 2018-06-21

    Thanks, Daniel,

    That is a mistake, it should be 4. I have changed line 122 to read

    if (mlen < 4) {

    Robin.

     
  • Robin Stuart

    Robin Stuart - 2018-06-21
    • status: open --> accepted
     
  • Robin Stuart

    Robin Stuart - 2018-06-21

    Thanks, Daniel,

    That is a mistake, it should be 4. I have changed line 122 to read

    if (mlen < 4) {

    Robin.

     
  • Harald Oehlmann

    Harald Oehlmann - 2018-11-02
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB