Upgrading to GitLab 11.10.0. Expect errors and see debian-infrastructure-announce@lists.debian.org for further information.

Commit 75be750c authored by Philipp Huebner's avatar Philipp Huebner

Update upstream source from tag 'upstream/1.0.12'

Update to upstream version '1.0.12'
with Debian dir 77e0fee3accd428b2cbcfb52a5da4004ce7f7c0d
parents 7ec765df 13214b62
# Version 1.0.12
* Fix using invalid size in allocations
# Version 1.0.11
* Updating p1_utils to version 1.0.10.
* Improved error formatting
# Version 1.0.10
* depends on p1_utils-1.0.9
......
......@@ -262,7 +262,7 @@ static ERL_NIF_TERM parse(ErlNifEnv* env, yaml_parser_t *parser,
result = yaml_parser_parse(parser, event);
if (result) {
prev_events = events;
events = enif_alloc(sizeof(events_t *));
events = enif_alloc(sizeof(events_t));
events->event = event;
events->prev = prev_events;
done = (event->type == YAML_STREAM_END_EVENT);
......
......@@ -24,7 +24,7 @@
{port_env, [{"CFLAGS", "$CFLAGS"}, {"LDFLAGS", "$LDFLAGS -lyaml"}]}.
{port_specs, [{"priv/lib/fast_yaml.so", ["c_src/fast_yaml.c"]}]}.
{deps, [{p1_utils, ".*", {git, "git://github.com/processone/p1_utils", {tag, "1.0.9"}}}]}.
{deps, [{p1_utils, ".*", {git, "git://github.com/processone/p1_utils", {tag, "1.0.10"}}}]}.
{clean_files, ["c_src/fast_yaml.gcda", "c_src/fast_yaml.gcno"]}.
......
......@@ -23,7 +23,7 @@
{application, fast_yaml,
[{description, "Fast YAML native library for Erlang / Elixir"},
{vsn, "1.0.10"},
{vsn, "1.0.12"},
{modules, []},
{registered, []},
{applications, [kernel, stdlib]},
......
......@@ -71,7 +71,12 @@ format_error({Tag, Reason, Line, Column}) when Tag == parser_error;
format_error(memory_error) ->
"Memory error";
format_error(Reason) when is_atom(Reason) ->
file:format_error(Reason);
case file:format_error(Reason) of
"unknown POSIX error" ->
atom_to_list(Reason);
Res ->
Res
end;
format_error(_) ->
"Unexpected error".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment