mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 12:34:30 +00:00
svg_loader: ++robustness
prevent a crash with an exceptional handling. @Issue: https://github.com/Samsung/thorvg/issues/1131
This commit is contained in:
parent
440cc81b4d
commit
1f5b66c256
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ static void _toColor(const char* str, uint8_t* r, uint8_t* g, uint8_t* b, char**
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (len >= 3 && !strncmp(str, "url", 3)) {
|
} else if (ref && len >= 3 && !strncmp(str, "url", 3)) {
|
||||||
*ref = _idFromUrl((const char*)(str + 3));
|
*ref = _idFromUrl((const char*)(str + 3));
|
||||||
} else {
|
} else {
|
||||||
//Handle named color
|
//Handle named color
|
||||||
|
|
Loading…
Add table
Reference in a new issue