Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita41b14f

Browse files
committed
Fix validation of overly-long IPv6 addresses.
The inet/cidr types sometimes failed to reject IPv6 inputs with too manycolon-separated fields, instead translating them to '::/0'. This is theresult of a thinko in the original ISC code that seems to be as yetunreported elsewhere. Per bug #14198 from Stefan Kaltenbrunner.Report: <20160616182222.5798.959@wrigleys.postgresql.org>
1 parent4f5995d commita41b14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/inet_net_pton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ inet_cidr_pton_ipv6(const char *src, u_char *dst, size_t size)
496496
elseif (*src=='\0')
497497
gotoenoent;
498498
if (tp+NS_INT16SZ>endp)
499-
return (0);
499+
gotoenoent;
500500
*tp++= (u_char) (val >>8)&0xff;
501501
*tp++= (u_char)val&0xff;
502502
saw_xdigit=0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp