Package: postgresql-9.4-asn1oid Version: 0.0.20100818-3.1 Severity: normal Dear Maintainer,
template1=# SELECT '.1.2.3'::asn1oid; server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. Attached is a very simple patch that fixes this problem. -- System Information: Debian Release: 8.4 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages postgresql-9.4-asn1oid depends on: ii libc6 2.19-18+deb8u4 ii postgresql-9.4 9.4.7-1.pgdg80+1 postgresql-9.4-asn1oid recommends no packages. postgresql-9.4-asn1oid suggests no packages. -- no debconf information
--- asn1oid.c.orig 2016-04-29 08:05:46.202000167 +0200 +++ asn1oid.c 2016-04-29 08:01:32.605836190 +0200 @@ -101,8 +101,12 @@ tmp[i] += 9; break; case '.': - if(c == str) + if(c == str) { + if (c[1]) { + break; + } PG_RETURN_POINTER(0); + } ++i; if(i >= 64) PG_RETURN_POINTER(0);