Skip to content
Snippets Groups Projects
Commit 8c31b4c98969 authored by Kirill Simonov's avatar Kirill Simonov
Browse files

Fixed segfault in yaml_string_write_handler.

parent 8b17c80274af
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
set (YAML_VERSION_MAJOR 0)
set (YAML_VERSION_MINOR 1)
set (YAML_VERSION_PATCH 6)
set (YAML_VERSION_PATCH 7)
set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}")
file (GLOB SRC src/*.c)
......
......@@ -3,7 +3,7 @@
# Define the package version numbers and the bug reporting link.
m4_define([YAML_MAJOR], 0)
m4_define([YAML_MINOR], 1)
m4_define([YAML_PATCH], 6)
m4_define([YAML_PATCH], 7)
m4_define([YAML_BUGS], [http://pyyaml.org/newticket?component=libyaml])
# Define the libtool version numbers; check the Autobook, Section 11.4.
......@@ -19,7 +19,7 @@
# YAML_AGE = 0
m4_define([YAML_RELEASE], 0)
m4_define([YAML_CURRENT], 2)
m4_define([YAML_REVISION], 4)
m4_define([YAML_REVISION], 5)
m4_define([YAML_AGE], 0)
# Initialize autoconf & automake.
......
......@@ -415,7 +415,7 @@
{
yaml_emitter_t *emitter = data;
if (emitter->output.string.size + *emitter->output.string.size_written
if (emitter->output.string.size - *emitter->output.string.size_written
< size) {
memcpy(emitter->output.string.buffer
+ *emitter->output.string.size_written,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment