• sigiesec's avatar
    Problem: zmq_z85_decode does not validate its input (#2322) · c6c21cf1
    sigiesec authored
    * Problem: zmq_z85_decode does not validate its input
    Solution: added checks for invalid characters and overflows
    
    * Added tests, added further check for range overflow, removed (multiple) calls to strlen
    
    * Problem: gcc fails to build
    Solution: added missing include directive
    
    * Added VS2015 test_utils_z85 project
    
    * Fixed indentation and copyright notice
    
    * Resolved garbage from merge
    
    * Revert "Added VS2015 test_utils_z85 project"
    
    This reverts commit c58b3c664c144326e77135aa1184b6f0dee11143.
    
    * Problem: test calls zmq_z85_decode with a NULL dest
    Solution: call zmq_z85_decode with a properly sized buffer
    
    * Problem: tests for zmq_z85_* scattered over two files
    Solution: merged files
    
    * Removed reference to removed test file from CMakeLists.txt
    
    * Problem: Missing include directive to stdint.h
    Solution: Added include directive
    
    * Define __STDC_LIMIT_MACROS before including stdint.h
    
    * Problem: Wrong variable is checked for invalid character marker
    Solution: Use correct variable
    c6c21cf1
Name
Last commit
Last update
..
CMakeLists.txt Loading commit data...
README.md Loading commit data...
test_abstract_ipc.cpp Loading commit data...
test_ancillaries.cpp Loading commit data...
test_atomics.cpp Loading commit data...
test_base85.cpp Loading commit data...
test_bind_after_connect_tcp.cpp Loading commit data...
test_bind_src_address.cpp Loading commit data...
test_capabilities.cpp Loading commit data...
test_client_server.cpp Loading commit data...
test_conflate.cpp Loading commit data...
test_connect_delay_tipc.cpp Loading commit data...
test_connect_resolve.cpp Loading commit data...
test_connect_rid.cpp Loading commit data...
test_ctx_destroy.cpp Loading commit data...
test_ctx_options.cpp Loading commit data...
test_dgram.cpp Loading commit data...
test_diffserv.cpp Loading commit data...
test_disconnect_inproc.cpp Loading commit data...
test_filter_ipc.cpp Loading commit data...
test_fork.cpp Loading commit data...
test_getsockopt_memset.cpp Loading commit data...
test_heartbeats.cpp Loading commit data...
test_hwm.cpp Loading commit data...
test_hwm_pubsub.cpp Loading commit data...
test_immediate.cpp Loading commit data...
test_inproc_connect.cpp Loading commit data...
test_invalid_rep.cpp Loading commit data...
test_iov.cpp Loading commit data...
test_ipc_wildcard.cpp Loading commit data...
test_issue_566.cpp Loading commit data...
test_last_endpoint.cpp Loading commit data...
test_many_sockets.cpp Loading commit data...
test_metadata.cpp Loading commit data...
test_monitor.cpp Loading commit data...
test_msg_ffn.cpp Loading commit data...
test_msg_flags.cpp Loading commit data...
test_pair_inproc.cpp Loading commit data...
test_pair_ipc.cpp Loading commit data...
test_pair_tcp.cpp Loading commit data...
test_pair_tipc.cpp Loading commit data...
test_pair_vmci.cpp Loading commit data...
test_poller.cpp Loading commit data...
test_probe_router.cpp Loading commit data...
test_proxy.cpp Loading commit data...
test_proxy_single_socket.cpp Loading commit data...
test_proxy_terminate.cpp Loading commit data...
test_pub_invert_matching.cpp Loading commit data...
test_radio_dish.cpp Loading commit data...
test_req_correlate.cpp Loading commit data...
test_req_relaxed.cpp Loading commit data...
test_reqrep_device.cpp Loading commit data...
test_reqrep_device_tipc.cpp Loading commit data...
test_reqrep_inproc.cpp Loading commit data...
test_reqrep_ipc.cpp Loading commit data...
test_reqrep_tcp.cpp Loading commit data...
test_reqrep_tipc.cpp Loading commit data...
test_reqrep_vmci.cpp Loading commit data...
test_router_handover.cpp Loading commit data...
test_router_mandatory.cpp Loading commit data...
test_router_mandatory_hwm.cpp Loading commit data...
test_router_mandatory_tipc.cpp Loading commit data...
test_scatter_gather.cpp Loading commit data...
test_security_curve.cpp Loading commit data...
test_security_null.cpp Loading commit data...
test_security_plain.cpp Loading commit data...
test_setsockopt.cpp Loading commit data...
test_shutdown_stress.cpp Loading commit data...
test_shutdown_stress_tipc.cpp Loading commit data...
test_sockopt_hwm.cpp Loading commit data...
test_sodium.cpp Loading commit data...
test_spec_dealer.cpp Loading commit data...
test_spec_pushpull.cpp Loading commit data...
test_spec_rep.cpp Loading commit data...
test_spec_req.cpp Loading commit data...
test_spec_router.cpp Loading commit data...
test_srcfd.cpp Loading commit data...
test_stream.cpp Loading commit data...
test_stream_disconnect.cpp Loading commit data...
test_stream_empty.cpp Loading commit data...
test_stream_exceeds_buffer.cpp Loading commit data...
test_stream_timeout.cpp Loading commit data...
test_sub_forward.cpp Loading commit data...
test_sub_forward_tipc.cpp Loading commit data...
test_system.cpp Loading commit data...
test_term_endpoint.cpp Loading commit data...
test_term_endpoint_tipc.cpp Loading commit data...
test_thread_safe.cpp Loading commit data...
test_timeo.cpp Loading commit data...
test_timers.cpp Loading commit data...
test_udp.cpp Loading commit data...
test_unbind_inproc.cpp Loading commit data...
test_unbind_wildcard.cpp Loading commit data...
test_use_fd_ipc.cpp Loading commit data...
test_use_fd_tcp.cpp Loading commit data...
test_xpub_manual.cpp Loading commit data...
test_xpub_nodrop.cpp Loading commit data...
test_xpub_welcome_msg.cpp Loading commit data...
test_zmq_poll_fd.cpp Loading commit data...
testutil.hpp Loading commit data...