summaryrefslogtreecommitdiff
path: root/src/svgtiny.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-07-29 10:20:38 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-07-29 10:20:38 +0100
commit8b42b87e23dd3bd6d3a3e5c8f7693852f33087be (patch)
tree847e48e97fbb904b215630db7b7a7d75637f998e /src/svgtiny.c
parentd62f8b2a13cf7e7bcc4963e541d27490dda77757 (diff)
downloadlibsvgtiny-8b42b87e23dd3bd6d3a3e5c8f7693852f33087be.tar.gz
libsvgtiny-8b42b87e23dd3bd6d3a3e5c8f7693852f33087be.tar.bz2
Fix various bugs which caused ASAN and UBSAN to be upset
Diffstat (limited to 'src/svgtiny.c')
-rw-r--r--src/svgtiny.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svgtiny.c b/src/svgtiny.c
index 69cbcf7..8831b92 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -457,6 +457,7 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
/* empty path is permitted it just disables the path */
palloc = dom_string_byte_length(path_d_str);
if (palloc == 0) {
+ dom_string_unref(path_d_str);
svgtiny_cleanup_state_local(&state);
return svgtiny_OK;
}
@@ -708,7 +709,7 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
&x, &y, &n) == 7);
} else {
- fprintf(stderr, "parse failed at \"%s\"\n", s);
+ /* fprintf(stderr, "parse failed at \"%s\"\n", s); */
break;
}
}