diff options
author | Mikhail Khodjaiants | 2004-11-11 21:28:40 +0000 |
---|---|---|
committer | Mikhail Khodjaiants | 2004-11-11 21:28:40 +0000 |
commit | 66b367c79f0f800ef8def78793d93fe53a5bdcce (patch) | |
tree | da5e9a98c81e6c993fe2c6d220f4843c184c0979 /debug/org.eclipse.cdt.debug.mi.ui/src/org | |
parent | d0408df257912d01fa0a2fb1cae72492c3fac52e (diff) | |
download | org.eclipse.cdt-66b367c79f0f800ef8def78793d93fe53a5bdcce.tar.gz org.eclipse.cdt-66b367c79f0f800ef8def78793d93fe53a5bdcce.tar.xz org.eclipse.cdt-66b367c79f0f800ef8def78793d93fe53a5bdcce.zip |
Fix for bug 75627: Incorrect limit to port numbers.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.ui/src/org')
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java index 7b3f8299fd9..9b43118288c 100644 --- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java +++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java @@ -188,13 +188,11 @@ public class TCPSettingsBlock extends Observable { private boolean portNumberIsValid( String portNumber ) { try { - int port = Short.parseShort( portNumber ); - if ( port < 0 ) - return false; + int port = Integer.parseInt( portNumber ); + return ( port > 0 && port <= 0xFFFF ); } catch( NumberFormatException e ) { return false; } - return true; } }
\ No newline at end of file |