Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQWGL-00018H-VJ for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Feb 2016 08:24:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQWGL-0005kS-I2 for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Feb 2016 08:24:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQVgz-0001C9-RU for pgsql-bugs@postgresql.org; Tue, 02 Feb 2016 07:48:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aQVgx-0000oz-JK for pgsql-bugs@postgresql.org; Tue, 02 Feb 2016 07:48:05 +0000 MIME-Version: 1.0 Subject: BUG #13905: Inconsistent code modification To: pgsql-bugs@postgresql.org From: petrum@gmail.com Date: Tue, 02 Feb 2016 07:47:44 +0000 Message-ID: <20160202074744.2780.43822@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13905 Logged by: Petru Florin Mihancea Email address: petrum@gmail.com PostgreSQL version: 9.4.4 Operating system: MacOSX Description: While experimenting with a CodeSonar plugin I am working on I identified the following potential low severity bug. Location: file src/include/catalog/pg_proc.h Lines 4613 and 4615 looks to be copies of lines 4252 and 4254, respectively. They are parts of a larger code fragment duplicated and modified by replacing *json* with *jsonb*. However, lines 4613 and 4615 are not modified accordingly i.e., they still contain the *json* sub-string and not the *jsonb* as it would be expected according to their neighbor source code lines. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs