Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#79 GString.cpp line 2512

Default
open-later
nobody
None
5
2015-02-16
2013-11-27
Andrei
No

GString.cpp line 2512 - "if(((W2>=0xDC00)||(W2<=0xDFFF))&&((U=(0x10000+((W1&0x3ff)<<10))|(W2&0x3ff))))"
Logical disjunction always evaluates to true: W2 >= 56320 || W2 <= 57343.
May be it bug.

Discussion

  • Andrei
    Andrei
    2013-11-27

    And similar lines in GUnicode.cpp
    line 555 - "if(((W2>=0xDC00)||(W2<=0xDFFF))"
    line 592 - "if((C2MSB>=0xDC)||(C2MSB<=0xDF))"
    line 630 - "if((C2MSB>=0xDC)||(C2MSB<=0xDF))"

     
    • status: open --> open-later
     
  • Please submit this bug to djvu project since this file comes from that project.