one bug in il_pnm.c

Developers
2009-02-22
2013-05-02
  • prefetchnta
    prefetchnta
    2009-02-22

    There is a bug in function iGetWord(). When "final" is IL_TRUE and the image's height string is longer than the MaxColour string, the MaxColour will always larger than 255 and the program will get wrong image type. That will crash the program at memcpy().

    The right way is put

    "SmallBuff[WordPos] = 0; "

    in front of

    "if (final == IL_TRUE)"

     
    • Denton Woods
      Denton Woods
      2009-02-23

      Thanks, it's fixed in SVN now.