@@ -143,9 +143,12 @@ yaml_string_join(
143143 (string).start = (string).pointer = (string).end = 0)
144144
145145#define STRING_EXTEND(context,string) \
146− (((string).pointer+5 < (string).end) \
146+ ((((string).pointer+5 < (string).end) \
147147 || yaml_string_extend(&(string).start, \
148− &(string).pointer, &(string).end))
148+ &(string).pointer, &(string).end)) ? \
149+ 1 : \
150+ ((context)->error = YAML_MEMORY_ERROR, \
151+ 0))
149152
150153#define CLEAR(context,string) \
151154 ((string).pointer = (string).start, \
@@ -655,7 +658,7 @@ yaml_queue_extend(void **start, void **head, void **tail, void **end);
655658 (node).data.mapping.pairs.top = (node_pairs_start), \
656659 (node).data.mapping.style = (node_style))
657660
658−#define YAML_VERSION_STRING "0.1.5"
661+#define YAML_VERSION_STRING "0.1.7"
659662#define YAML_VERSION_MAJOR 0
660663#define YAML_VERSION_MINOR 1
661−#define YAML_VERSION_PATCH 5
664+#define YAML_VERSION_PATCH 7