UNREACHABLE in /inkscape/src/style.cpp
Bug #614232 reported by
Vaughn Spurlin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Kris |
Bug Description
UNREACHABLE in /inkbugs/
In sp_style_
Code block is unreachable because of the syntactic structure of the code (CWE-561).
3582 if (val->inherit) {
3583 return g_snprintf(p, len, "%s:inherit;", key);
3584 } else {
3585 gchar *val_quoted = css2_escape_
3586 if (val_quoted) {
3587 return g_snprintf(p, len, "%s:%s;", key, val_quoted);
This code cannot be reached: "g_free(
3588 g_free (val_quoted);
3589 }
3590 }
Changed in inkscape: | |
status: | New → In Progress |
assignee: | nobody → Kris (kris-degussem) |
Changed in inkscape: | |
milestone: | none → 0.49 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
fix suggestion 2010-07-25:
delete line 3588 g_free (val_quoted);
fix reason: quote(. ..) returned NULL, then val_quoted does not need to be freed.
if css2_escape_