Quantcast
Channel: wxWidgets: Ticket Query
Viewing all articles
Browse latest Browse all 66

#12451: wxDateTime::Format(): infinite loop bug

$
0
0

Forgive me, but in trunk src/common/datetimefmt.cpp, this part:

default:

// is it the format width? fmt.Empty();

while ( *p == wxT('-')

*p == wxT('+')

*p == wxT(' ')

wxIsdigit(*p) )

{

fmt += *p;

}

does not look overly healthy... (the only places that do a ++p increment are quite somewhere else...)

Did NOT experience it for real, just had a weird feeling when looking at it...

Thanks!


Viewing all articles
Browse latest Browse all 66

Trending Articles