forked from len0rd/rockbox
Fix unchecked result skin_parse_tag() exposed by r28480.
It caused the parser to not see that skin parsing failed and to enter an infinite loop. And as a result it continued to endlessly malloc(). In normal build the skin buffer size limit made it end. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28497 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bf679fa4ac
commit
d98f2929e9
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ static struct skin_element* skin_parse_viewport(const char** document)
|
|||
/* Parsing out the viewport tag if there is one */
|
||||
if(check_viewport(cursor))
|
||||
{
|
||||
skin_parse_tag(retval, &cursor);
|
||||
if (!skin_parse_tag(retval, &cursor))
|
||||
return NULL;
|
||||
if(*cursor == '\n')
|
||||
{
|
||||
cursor++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue