From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#42113: 28.0.50; Segmentation fault in json-parse-file
Date: Mon, 29 Jun 2020 12:37:16 +0200
Message-ID:
References: <5ef91115.1c69fb81.aa1e3.9577@mx.google.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
logging-data="44965"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 42113-done@debbugs.gnu.org
To: Erik Hetzner
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 29 12:38:27 2020
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1jprBC-000Bas-Ol
for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 12:38:26 +0200
Original-Received: from localhost ([::1]:41612 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1jprBB-0002lg-RD
for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 06:38:25 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35040)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1jprAo-0002S9-QE
for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 06:38:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:36532)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1jprAo-00023o-Gd
for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 06:38:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1jprAo-0002AG-Ek
for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 06:38:02 -0400
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-To: bug-gnu-emacs@gnu.org
Resent-Date: Mon, 29 Jun 2020 10:38:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: cc-closed 42113
X-GNU-PR-Package: emacs
Mail-Followup-To: 42113@debbugs.gnu.org, p.stephani2@gmail.com, egh@e6h.org
Original-Received: via spool by 42113-done@debbugs.gnu.org id=D42113.15934270568271
(code D ref 42113); Mon, 29 Jun 2020 10:38:02 +0000
Original-Received: (at 42113-done) by debbugs.gnu.org; 29 Jun 2020 10:37:36 +0000
Original-Received: from localhost ([127.0.0.1]:48076 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jprAO-00029J-It
for submit@debbugs.gnu.org; Mon, 29 Jun 2020 06:37:36 -0400
Original-Received: from mail-ot1-f45.google.com ([209.85.210.45]:42719)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jprAL-000292-GA
for 42113-done@debbugs.gnu.org; Mon, 29 Jun 2020 06:37:34 -0400
Original-Received: by mail-ot1-f45.google.com with SMTP id 76so577558otu.9
for <42113-done@debbugs.gnu.org>; Mon, 29 Jun 2020 03:37:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=T7/KEoOIT85CfSoEdjggV9obTFEGvzQPzuuhRS9+t5A=;
b=pNj5xRLHk907bXMHSxnsODI71D0UuK2ZL098I7AeTYBQk7dsC8ZxqEB3+Q89A9GfcV
Km9oV6mXaQnzNn5e8BnA1EpvgzKwnTBs0bTXL+UI2HMQG2vmenPOP3idxvq/SrgUWtUA
3VDFMxfBJHeVUCwPY8dlpuLeB+pA/rPtjsnyp/A8zCVp0GwBafNSNRK5+hK8GIqb4gkc
wMIW41O5SW2oAeGo7QBA1/UCB3ayXSRGUQ8cOH4tpxTmALfTjmYtTCh6TPzbxSs3F6GP
6gOV9LvoP6Kag5phIAA981jvcc0yhJq1JpYLpeBYEd8Xfzitm2s8U+QOnWXv1jCVxK4p
0xXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=T7/KEoOIT85CfSoEdjggV9obTFEGvzQPzuuhRS9+t5A=;
b=GkUomLAUNRHgEl0rBl0giwUn9gw/4kJjobdkfqerG9XDr2zOk+NoLmMvX1XX1bCs4u
yFId1MAvQvvKv+V5uoYA4uOm2oCY9dbufdzVrET+hqK/d++JTXiVfE+1R3kaaAUqPPih
6MAUMV21an4yaZocUVYUhO7R8WffSoBpLBpSasKy18Yso+pF1ZKCo8IXpZ8NTBd8Vk5Y
/pMIiEIKvNU4aiQvJdRkaqcCF/lwrE+xC9d+0cAxijDA89dZgD1zpNJqFO5yOmmGHMon
Gwz3ZImcPgJ3VhizxVt6Ls57mCqbdGRpSa/RM9H11WP5hzGq3F9C1f7q5KBGzebAWOoA
3OnA==
X-Gm-Message-State: AOAM533AoiSQVBtwWVdml9bpiHkXfPBiJw97Y7it8cRk3eCjoQiRATKa
uUj1EZbliQPfFE8gNLA78byt9L8qiauhdJy88NY=
X-Google-Smtp-Source: ABdhPJwCSiu891APv+2yw3GfqS6YRG7u302qtrAF3jz2+FJ2rzbQYbSlG/LWYJkVNZkxT3Wnpb8nOH/mb2jKzFupVuw=
X-Received: by 2002:a9d:2203:: with SMTP id o3mr11911796ota.149.1593427047703;
Mon, 29 Jun 2020 03:37:27 -0700 (PDT)
In-Reply-To:
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.io gmane.emacs.bugs:182519
Archived-At:
Am Mo., 29. Juni 2020 um 10:33 Uhr schrieb Philipp Stephani
:
>
> Am So., 28. Juni 2020 um 23:53 Uhr schrieb Erik Hetzner :
> >
> > 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).