Changeset 3574

Show
Ignore:
Timestamp:
08/21/08 19:20:10 (3 months ago)
Author:
cstender
Message:

fixed infinite loop in vformat (ticket 670 & 742)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • format-plugins/vformat/src/vformat.c

    r3130 r3574  
    614614                        g_string_assign (str, ""); 
    615615                        _skip_until (&lp, ":;"); 
     616                        if (*lp == '\r') { 
     617                                osync_trace(TRACE_INTERNAL, "string ended unexpectedly with \\r, skipping it"); 
     618                                break; 
     619                        } 
    616620                } 
    617621        }