bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42113: 28.0.50; Segmentation fault in json-parse-file


From: Erik Hetzner
Subject: bug#42113: 28.0.50; Segmentation fault in json-parse-file
Date: Mon, 29 Jun 2020 08:39:12 -0700
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/27.0.91 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Mon, 29 Jun 2020 03:37:16 -0700,
Philipp Stephani <p.stephani2@gmail.com> wrote:
> 
> Am Mo., 29. Juni 2020 um 10:33 Uhr schrieb Philipp Stephani
> <p.stephani2@gmail.com>:
> >
> > Am So., 28. Juni 2020 um 23:53 Uhr schrieb Erik Hetzner <egh@e6h.org>:
> > >
> > > 1. Start emacs -Q
> > > 2. Evaluate the following
> > > (require 'dom)
> > >
> > > (with-current-buffer (url-retrieve-synchronously 
> > > "https://www.seriouseats.com/recipes/2020/06/florentine-omelette-spinach-and-cheese.html";)
> > >         (let* ((dom (libxml-parse-html-region (point-min) (point-max)))
> > >                (scripts (dom-by-tag dom 'script))
> > >                (json-lds-raw (dom-elements scripts 'type 
> > > "^application/ld\\+json$"))
> > >                (json-lds (mapcar #'json-parse-string json-lds-raw)))))
> > >
> > > Result: segmentation fault.
> >
> > Simpler: (json-parse-string 1)
> > The JSON functions are missing CHECK_STRING in several places where
> > json_encode is called.
> 
> Fixed on the release branch (commit 59e768d64a).

Excellent, thank you so much!

best, Erik





reply via email to

[Prev in Thread] Current Thread [Next in Thread]