[LTP] [PATCH 2/2] bpf: Check truncation on 32bit div/mod by zero

Petr Vorel pvorel@suse.cz
Tue Apr 27 14:03:13 CEST 2021


> Hi!
> > /usr/src/ltp/docparse/testinfo.pl metadata.json
> > , or ] expected while parsing array, at character offset 70801 (before "expected"",\n     "b...") at /usr/src/ltp/docparse/testinfo.pl line 423

> > Because we don't escap double quotes (among other issues previously reported,
> > e.g. tabs), it produces invalid json:

> >    "doc": [
> >      "[Description]",
> >      "",
> >      "Compare the effects of 32-bit div/mod by zero with the "expected"",
> >      "behaviour.",
> >      "",

> This should be fairly easy to fix, we just need to replace the
> data_printf() for strings in data_to_json_() with a function that would
> generate the escapes.

> Will you do that or should I prepare the patch?

Thanks for a hint, I'll prepare it.

Kind regards,
Petr


More information about the ltp mailing list