Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7nZd-0008Mh-Ba for pgsql-committers@arkaria.postgresql.org; Wed, 03 Oct 2018 20:16:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g7nZb-0006eq-EY for pgsql-committers@arkaria.postgresql.org; Wed, 03 Oct 2018 20:16:43 +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.89) (envelope-from ) id 1g7nZZ-0006RV-BX for pgsql-committers@lists.postgresql.org; Wed, 03 Oct 2018 20:16:41 +0000 Received: from mahout.postgresql.org ([2001:4800:1501:1::227]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7nZW-0007U0-Ay for pgsql-committers@lists.postgresql.org; Wed, 03 Oct 2018 20:16:40 +0000 Received: from gemulon.postgresql.org ([2001:4800:1501:1::198]) by mahout.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g7nZU-0004Xj-Ud for pgsql-committers@lists.postgresql.org; Wed, 03 Oct 2018 20:16:36 +0000 Received: from git by gemulon.postgresql.org with local (Exim 4.89) (envelope-from ) id 1g7nZU-0000kU-MB for pgsql-committers@lists.postgresql.org; Wed, 03 Oct 2018 20:16:36 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 To: pgsql-committers@lists.postgresql.org From: Andres Freund Subject: pgsql: Ensure that snprintf.c's fmtint() doesn't overflow when printing Message-Id: Date: Wed, 03 Oct 2018 20:16:36 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk RW5zdXJlIHRoYXQgc25wcmludGYuYydzIGZtdGludCgpIGRvZXNuJ3Qgb3ZlcmZsb3cgd2hlbiBw cmludGluZyBJTlQ2NF9NSU4uCgpUaGlzIGlzbid0IGFjdHVhbGx5IGEgbGl2ZSBidWcsIGFzIHRo ZSBvdXRwdXQgaGFwcGVucyB0byBiZSB0aGUKc2FtZS4gIEJ1dCBpdCB1cHNldHMgdG9vbHMgbGlr ZSBVQlNhbiwgd2hpY2ggbWFrZXMgaXQgd29ydGh3aGlsZSB0bwpmaXguCgpBcyBpdCdzIGFuIGlz c3VlIHdpdGhvdXQgcHJhY3RpY2FsIGNvbnNlcXVlbmNlcywgZG9uJ3QgYmFja3BhdGNoLgoKQXV0 aG9yOiBBbmRyZXMgRnJldW5kCkRpc2N1c3Npb246IGh0dHBzOi8vcG9zdGdyLmVzL20vMjAxODA5 MjgwMDExMjEuaGh4NW42ZHN5Z3F4cjV3dUBhbGFwMy5hbmFyYXplbC5kZQoKQnJhbmNoCi0tLS0t LQptYXN0ZXIKCkRldGFpbHMKLS0tLS0tLQpodHRwczovL2dpdC5wb3N0Z3Jlc3FsLm9yZy9wZy9j b21taXRkaWZmLzQ4NjhlNDQ2ODU5MGJjMzJmOWMzYWZlZDRlYzc5NWQ2YTc3MzJjOWQKCk1vZGlm aWVkIEZpbGVzCi0tLS0tLS0tLS0tLS0tCnNyYy9wb3J0L3NucHJpbnRmLmMgfCA3ICsrKystLS0K MSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ0aW9ucygrKSwgMyBkZWxldGlvbnMoLSkKCg==