cdd_cue.c check sscanf's return value
@@ -42,7 +42,9 @@ static UINT32 getpos(const OEMCHAR *str) {
UINT s;
UINT f;
- sscanf(str, "%2d:%2d:%2d", &m, &s, &f);
+ if (EOF == sscanf(str, "%2d:%2d:%2d", &m, &s, &f)) {
+ return 0;
+ }
return((((m * 60) + s) * 75) + f);
}
