From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Sat, 30 Sep 2017 22:02:55 +0000
> Cc: emacs-dev= el@gnu.org
One more comment:
> +static Lisp_Object
> +json_insert (void *data)
> +{
> +=C2=A0 const struct json_buffer_and_size *buffer_and_size =3D data; > +=C2=A0 if (buffer_and_size->size > PTRDIFF_MAX)
> +=C2=A0 =C2=A0 xsignal1 (Qoverflow_error, build_string ("buffer t= oo large"));
> +=C2=A0 insert (buffer_and_size->buffer, buffer_and_size->size);=
> +=C2=A0 return Qnil;
Shouldn't we follow the call to 'insert' with decode_from_gap, = or do
it before json_insert_callback returns?=C2=A0 Or do we trust Jansson to
produce 100% valid UTF-8?