We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc41bff commit 23e6cf5Copy full SHA for 23e6cf5
src/_path.h
@@ -995,7 +995,7 @@ int __convert_to_string(PathIterator &path,
995
while ((code = path.vertex(&x[0], &y[0])) != agg::path_cmd_stop) {
996
if (code == 0x4f) {
997
if ((p = __append_to_string(p, buffer, *buffersize, codes[4])) == NULL) return 1;
998
- } else {
+ } else if (code < 5) {
999
size = sizes[code - 1];
1000
1001
for (int i = 1; i < size; ++i) {
@@ -1052,6 +1052,9 @@ int __convert_to_string(PathIterator &path,
1052
1053
last_x = x[size - 1];
1054
last_y = y[size - 1];
1055
+ } else {
1056
+ // Unknown code value
1057
+ return 2;
1058
}
1059
1060
if ((p = __append_to_string(p, buffer, *buffersize, "\n")) == NULL) return 1;
0 commit comments