-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -745,6 +745,9 @@ namespace Sass { | |
else if (lex< sequence< optional< exactly<'*'> >, identifier > >()) { | ||
prop = new (ctx.mem) String_Constant(path, source_position, lexed); | ||
} | ||
else if (lex< custom_property_name >()) { | ||
prop = new (ctx.mem) String_Constant(path, source_position, lexed); | ||
} | ||
else { | ||
error("invalid property name"); | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
xzyfer
Author
Contributor
|
||
|
3 comments
on commit a471673
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mgreter, yes I have the latest master. All those CA warnings were captured with 0f275a1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much all these warnings are because we do not yet check if calloc or malloc fails. We probably also should return 0
in this case, but that means that implementers will need to check the return of each sass_make_xxx
call ... I have that on my todo list. Not sure what it should have to do with 0f275a1?
@xzyfer, I think this function has a possible bug. After reporting the error, why the execution continues? Should it not
return nullptr
or alike aftererror( .. )
?Consider the following path from line 740 till 758.
(in parenthesis, the line number refers to current master)
I am making code analysis warnings fixes, but stuck on this one as I'm not sure, should this function return in case of error? :)