Otavio Rodolfo Piske created PROTON-1027: --------------------------------------------
Summary: Incorrectly handling of invalid addresses Key: PROTON-1027 URL: https://issues.apache.org/jira/browse/PROTON-1027 Project: Qpid Proton Issue Type: Bug Components: cpp-binding Affects Versions: 0.11 Environment: Fedora Linux 22, 64bit. ---- Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.1.1/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-default-libstdcxx-abi=c++98 --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC) ---- Compiled with: cmake -DCMAKE_INSTALL_PREFIX=/opt/devel/qpid-proton-0.11-SNAPSHOT -DSYSINSTALL_BINDINGS=ON -DBUILD_PYTHON=OFF -DBUILD_PERL=OFF .. --- Reporter: Otavio Rodolfo Piske Assignee: Cliff Jansen Fix For: 0.11 The code seems to accept invalid combinations of hosts/IPs. Having the QPid Proton source code compile, you can run one of the following to reproduce the problem: A. Try to connect to to a server with an invalid ip address: ./server -a 355.355.355.412:5672/test.reactor.queue server connected to amqp://355.355.355.412:5672/test.reactor.queue B. Try to connect to an invalid server whose address cannot be resolved: ./server -a host_does_not_exist:5672/test.reactor.queue server connected to amqp://host_does_not_exist:5672/test.reactor.queue C. Try to connect to a valid server using an invalid port: ./server -a valid-address:567299999999/test.reactor.queue server connected to amqp://valid-address:567299999999/test.reactor.queue -- This message was sent by Atlassian JIRA (v6.3.4#6332)