public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: SocketPermission unquoted IPv6 address tests
@ 2006-08-25 13:57 Gary Benson
  0 siblings, 0 replies; only message in thread
From: Gary Benson @ 2006-08-25 13:57 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Hi all,

This commit adds checks that unquoted IPv6 addresses are handled
correctly by java.net.SocketPermission's constructor.

Cheers,
Gary

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1452 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1888
diff -u -r1.1888 ChangeLog
--- ChangeLog	24 Aug 2006 19:00:04 -0000	1.1888
+++ ChangeLog	25 Aug 2006 13:54:24 -0000
@@ -1,3 +1,8 @@
+2006-08-25  Gary Benson  <gbenson@redhat.com>
+
+	* gnu/testlet/java/net/SocketPermission/argument.java: Also test
+	unquoted IPv6 addresses.
+
 2006-08-24  Francis Kung  <fkung@redhat.com>
 
 	* gnu/testlet/java/awt/image/ColorConvertOp/createCompatibleDestImage.java:
Index: gnu/testlet/java/net/SocketPermission/argument.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/SocketPermission/argument.java,v
retrieving revision 1.1
diff -u -r1.1 argument.java
--- gnu/testlet/java/net/SocketPermission/argument.java	19 Jan 2006 14:05:35 -0000	1.1
+++ gnu/testlet/java/net/SocketPermission/argument.java	25 Aug 2006 13:54:24 -0000
@@ -45,6 +45,12 @@
     new Test("[1080::8:800:200C:417A]", true),
     new Test("[::192.9.5.5]", true),
     new Test("[:FFFF:129.144.52.38]", true), // XXX try broken addresses
+
+    new Test("FEDC:BA98:7654:3210:FEDC:BA98:7654:3210", true),
+    new Test("3ffe:2a00:100:7031::1", false),
+    new Test("1080::8:800:200C:417A", false),
+    new Test("::192.9.5.5", false),
+    new Test(":FFFF:129.144.52.38", false),
   };
 
   private Test[] ports = new Test[] {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-25 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25 13:57 FYI: SocketPermission unquoted IPv6 address tests Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).