Menu

#11 endless loop in to_latin1

1.0
closed
None
2016-01-05
2015-12-31
No

png.c

If source[i] >= 128 && source[i] != 0xC2 && source[i] != 0xC3 then
'i' will never get incremented resulting in an endless loop.

693 void to_latin1(unsigned char source[], unsigned char preprocessed[])
...
701 while (i < input_length) {
702 if(source[i] < 128) {
...
706 } else {
707 if(source[i] == 0xC2) {
...
711 }
712 if(source[i] == 0xC3) {
...
716 }
717 }
718 }

Related

Tickets: #11

Discussion

  • Harald Oehlmann

    Harald Oehlmann - 2016-01-05

    Closed as fix was verified.
    We could also place a replacement character for unprintables to show that there is something...
    This is mainly helpful for control characters...

     
  • Harald Oehlmann

    Harald Oehlmann - 2016-01-05
    • status: open --> accepted
    • assigned_to: Harald Oehlmann
     
  • Harald Oehlmann

    Harald Oehlmann - 2016-01-05
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB