diff options
author | Adam Domurad <[email protected]> | 2013-03-22 10:32:05 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-03-22 10:32:05 -0400 |
commit | c52ccc8e6696311f31a5a82adbd14b05600ba1b3 (patch) | |
tree | 6f24af2c78f29095385975bdef623485ffc32139 /tests | |
parent | 83536b2d2a7e840df4f398af77f631fbf1f5a910 (diff) |
Revert behaviour of PluginParameterParser#isInt to fail on overflow
Diffstat (limited to 'tests')
-rw-r--r-- | tests/netx/unit/sun/applet/PluginParameterParserTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/netx/unit/sun/applet/PluginParameterParserTest.java b/tests/netx/unit/sun/applet/PluginParameterParserTest.java index 162d603..6e53856 100644 --- a/tests/netx/unit/sun/applet/PluginParameterParserTest.java +++ b/tests/netx/unit/sun/applet/PluginParameterParserTest.java @@ -15,6 +15,10 @@ public class PluginParameterParserTest { assertFalse(PluginParameterParser.isInt("1.0")); assertFalse(PluginParameterParser.isInt("abc")); assertTrue(PluginParameterParser.isInt("1")); + + /* Numbers that overflow or underflow can cause problems if we + * consider them valid, and pass them to parseInt: */ + assertFalse(PluginParameterParser.isInt("4294967295")); } @Test |