Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s7JHW-004tuC-Mt for pgsql-hackers@arkaria.postgresql.org; Wed, 15 May 2024 18:23:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s7JHW-003xAF-JI for pgsql-hackers@arkaria.postgresql.org; Wed, 15 May 2024 18:23:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s7JHW-003x9g-8a for pgsql-hackers@lists.postgresql.org; Wed, 15 May 2024 18:23:14 +0000 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s7JHS-000N47-UY for pgsql-hackers@lists.postgresql.org; Wed, 15 May 2024 18:23:12 +0000 Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-43df44ef3e3so28696001cf.2 for ; Wed, 15 May 2024 11:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1715797389; x=1716402189; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nZK6X2+rclNEvfgYmRu9tuMg3pfosHNk4TRt00LOoNg=; b=ImYF4ixplfzSFg/vN6v3v25Jgk1Lg6GwWnmaJrKjwso5njpuNmPHcFy7w5PwpxeO32 fNJqvnN/fA/Br2OF9qQZKLjWycQ/w8ZIdmr6SwpORZaTR905R7PfVSofz9ETnTXeqcrd xTUYfsBZ50LSkB21bX6L38Veh9/DbdHfFhrD36U1rWSBle0XG9ayIZDXUrxKk0fPhg7s RyyoN8DTGnOkVLhOKzOHAHbKLm41iH11hhU3Xc3JFM/lVT0ISQah4BEGKWtEhZYcvjXS /xadV3wn0uCoO8kN+8EQu61d5olyUNFoC9K99yI96HiTMTpfyfg8RZIR89d45syGQqfT WJcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715797389; x=1716402189; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nZK6X2+rclNEvfgYmRu9tuMg3pfosHNk4TRt00LOoNg=; b=SPcajO0mNuxSMOTVuIvSTunYoFNTgfZXsM22ds0wwGq3oGtdBeNjGHybqKLOaUdXV2 0ttQhiaCqlJSQi2J9fqisIxm3m0uDOpcF+k2i4SQ++Yz341mjJnQxZmyt9yoX81jLJXZ 1cM5djovZ6AUspENlMeQPUrPQi7F9NwDp4ONW1J4rY6Zw0BSF0LMUcjpRfdyuBzq+q5y bmnd0vHZAhYfWsC/39wAp2XCHdEhqehywssnedkrn94GRW/ZJiSjnUw6BlN/cjWRHuMs 5VjPBFylOVCE6vfD9QeS6N2TdxWgGh1UswqSKjVcehNUugOvFYyRccRD7V/GSLV4y0Wy 8DMA== X-Forwarded-Encrypted: i=1; AJvYcCXvC+GHoeyLdBzn6lwXq7EJiMu/aAD8nanHjQjg1BvokOauOZjcQVZU1UdFN4MP0RFcLSGzzYvRFkodaCk9uAiqxgYYj4d7ijYKIOJ9dCXhHUcq X-Gm-Message-State: AOJu0YxWXZ8jN9cUEw85JEaP0M2ZhgUQ0aWb5YzdNRC5WOquWIjzZhC3 V4vYRMSn3ft7jv7cyBMcVsC0SCHiDhVdreltMgpiNWJWHdfgh9euo74OguKh+/h/AYaZDwNUDiq cGyShZdz0bm240riZbdmlo5EnTEnqq6Lk7LIY X-Google-Smtp-Source: AGHT+IFs75G9oNo/yS6uqnmf4pKfOni4VIVKfhPjAeObJp6XDzDfMMrpZTGs/ee4Ii8Pbk2R20hKc1+ZAGYVrsLWxFI= X-Received: by 2002:a05:6214:3a85:b0:6a0:936e:4f93 with SMTP id 6a1803df08f44-6a168243ff1mr213877176d6.60.1715797389473; Wed, 15 May 2024 11:23:09 -0700 (PDT) MIME-Version: 1.0 References: <202405101223.66lahv2qiwe7@alvherre.pgsql> <6dae7e56-5233-4183-bd12-c14cf3c9312e@eisentraut.org> In-Reply-To: From: Jacob Champion Date: Wed, 15 May 2024 11:22:58 -0700 Message-ID: Subject: Re: pgsql: Fix overread in JSON parsing errors for incomplete byte sequence To: Peter Eisentraut Cc: Michael Paquier , Alvaro Herrera , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, May 14, 2024 at 11:15=E2=80=AFPM Peter Eisentraut wrote: > > On 15.05.24 02:00, Michael Paquier wrote: > > Is that a recent regression? I have some blurry memories from > > working on these areas that changing src/common/ reflected on the > > compiled pieces effectively at some point. > > One instance of this problem that I can reproduce at least back to PG12 i= s > > 1. touch src/common/exec.c > 2. make -C src/bin/pg_dump > > This will rebuild libpgcommon, but it will not relink pg_dump. I remember src/common/unicode changes having similar trouble, as well [1]. --Jacob [1] https://www.postgresql.org/message-id/CAFBsxsGZTwzDnTs=3DTVM38CCTPP3Y0D= 3=3Dh+UiWt8M83D5THHf9A@mail.gmail.com