-avoid calling memcpy() with NULL argument, even if len is 0
authorChristian Grothoff <christian@grothoff.org>
Fri, 8 Jul 2016 17:20:23 +0000 (17:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 8 Jul 2016 17:20:23 +0000 (17:20 +0000)
commitd8c53b12a818ff7cf82d06a1a69c395bdef85ee6
tree0ebb0db416c157fcfde51a941185819dd12d51fd
parent5184c17d32a39c928c2a0fec3ee1ad098bbaa562
-avoid calling memcpy() with NULL argument, even if len is 0
261 files changed:
src/arm/arm_api.c
src/arm/gnunet-service-arm.c
src/ats-tests/ats-testing-traffic.c
src/ats/ats_api_scanner.c
src/ats/ats_api_scheduling.c
src/ats/gnunet-ats-solver-eval.c
src/ats/gnunet-service-ats_addresses.c
src/ats/gnunet-service-ats_performance.c
src/ats/plugin_ats_ril.c
src/ats/test_ats_lib.c
src/cadet/cadet_api.c
src/cadet/cadet_common.c
src/cadet/cadet_path.c
src/cadet/cadet_tunnel_tree.c
src/cadet/gnunet-cadet-profiler.c
src/cadet/gnunet-cadet.c
src/cadet/gnunet-service-cadet_channel.c
src/cadet/gnunet-service-cadet_connection.c
src/cadet/gnunet-service-cadet_dht.c
src/cadet/gnunet-service-cadet_local.c
src/cadet/gnunet-service-cadet_peer.c
src/cadet/gnunet-service-cadet_tunnel.c
src/consensus/consensus_api.c
src/consensus/gnunet-service-consensus.c
src/conversation/conversation_api.c
src/conversation/conversation_api_call.c
src/conversation/gnunet-conversation-test.c
src/conversation/gnunet-helper-audio-playback.c
src/conversation/gnunet-helper-audio-record.c
src/conversation/gnunet-service-conversation.c
src/conversation/gnunet_gst.c
src/conversation/speaker.c
src/core/core_api.c
src/core/core_api_mq.c
src/core/gnunet-service-core_clients.c
src/core/gnunet-service-core_kx.c
src/core/gnunet-service-core_neighbours.c
src/core/gnunet-service-core_sessions.c
src/core/gnunet-service-core_typemap.c
src/core/test_core_api_reliability.c
src/core/test_core_api_send_to_self.c
src/core/test_core_quota_compliance.c
src/curl/curl.c
src/datacache/plugin_datacache_heap.c
src/datacache/plugin_datacache_postgres.c
src/datacache/plugin_datacache_sqlite.c
src/datastore/datastore_api.c
src/datastore/gnunet-service-datastore.c
src/datastore/perf_plugin_datastore.c
src/datastore/plugin_datastore_heap.c
src/datastore/plugin_datastore_postgres.c
src/datastore/test_datastore_api.c
src/dht/dht_api.c
src/dht/gnunet-service-dht.c
src/dht/gnunet-service-dht_clients.c
src/dht/gnunet-service-dht_hello.c
src/dht/gnunet-service-dht_neighbours.c
src/dht/gnunet-service-dht_routing.c
src/dht/gnunet-service-wdht_clients.c
src/dht/gnunet-service-wdht_datacache.c
src/dht/gnunet-service-wdht_neighbours.c
src/dht/gnunet-service-xdht_clients.c
src/dht/gnunet-service-xdht_hello.c
src/dht/gnunet-service-xdht_neighbours.c
src/dht/gnunet-service-xdht_routing.c
src/dns/dns_api.c
src/dns/dnsparser.c
src/dns/dnsstub.c
src/dns/gnunet-service-dns.c
src/dv/gnunet-service-dv.c
src/dv/plugin_transport_dv.c
src/exit/gnunet-daemon-exit.c
src/exit/gnunet-helper-exit-windows.c
src/fragmentation/defragmentation.c
src/fragmentation/fragmentation.c
src/fs/fs_api.c
src/fs/fs_directory.c
src/fs/fs_getopt.c
src/fs/fs_publish.c
src/fs/fs_publish_ublock.c
src/fs/fs_sharetree.c
src/fs/fs_uri.c
src/fs/gnunet-daemon-fsprofiler.c
src/fs/gnunet-helper-fs-publish.c
src/fs/gnunet-service-fs_cadet_client.c
src/fs/gnunet-service-fs_cadet_server.c
src/fs/gnunet-service-fs_cp.c
src/fs/gnunet-service-fs_indexing.c
src/fs/gnunet-service-fs_lc.c
src/fs/gnunet-service-fs_pr.c
src/fs/gnunet-service-fs_push.c
src/gns/gns_api.c
src/gns/gnunet-dns2gns.c
src/gns/gnunet-gns-helper-service-w32.c
src/gns/gnunet-gns-proxy.c
src/gns/gnunet-service-gns_resolver.c
src/gns/nss/nss_gns.c
src/gns/plugin_gnsrecord_gns.c
src/gns/test_gns_proxy.c
src/gns/w32nsp-resolve.c
src/gns/w32nsp.c
src/gnsrecord/gnsrecord_crypto.c
src/gnsrecord/gnsrecord_serialization.c
src/gnsrecord/plugin_gnsrecord_dns.c
src/hello/address.c
src/hello/hello.c
src/hostlist/gnunet-daemon-hostlist_client.c
src/hostlist/gnunet-daemon-hostlist_server.c
src/identity-provider/gnunet-identity-token.c
src/identity-provider/gnunet-service-identity-provider.c
src/identity-provider/identity_provider_api.c
src/identity-provider/identity_token.c
src/identity/gnunet-service-identity.c
src/identity/identity_api.c
src/identity/plugin_gnsrecord_identity.c
src/identity/plugin_rest_identity.c
src/include/gnunet_common.h
src/json/json_mhd.c
src/multicast/gnunet-service-multicast.c
src/multicast/multicast_api.c
src/multicast/test_multicast.c
src/namecache/gnunet-service-namecache.c
src/namecache/namecache_api.c
src/namecache/plugin_namecache_flat.c
src/namestore/gnunet-namestore-fcfsd.c
src/namestore/gnunet-namestore.c
src/namestore/gnunet-service-namestore.c
src/namestore/namestore_api.c
src/namestore/plugin_namestore_flat.c
src/namestore/plugin_namestore_postgres.c
src/namestore/plugin_namestore_sqlite.c
src/namestore/plugin_rest_namestore.c
src/namestore/test_namestore_api_zone_to_name.c
src/nat/gnunet-helper-nat-client-windows.c
src/nat/gnunet-helper-nat-server-windows.c
src/nat/nat.c
src/nat/test_nat.c
src/nse/gnunet-service-nse.c
src/peerinfo/gnunet-service-peerinfo.c
src/peerstore/peerstore_common.c
src/peerstore/plugin_peerstore_flat.c
src/pq/pq_result_helper.c
src/psyc/gnunet-service-psyc.c
src/psyc/psyc_api.c
src/psyc/test_psyc.c
src/psycstore/gnunet-service-psycstore.c
src/psycstore/plugin_psycstore_sqlite.c
src/psycstore/psycstore_api.c
src/psycstore/test_plugin_psycstore.c
src/psycstore/test_psycstore.c
src/psycutil/psyc_message.c
src/psycutil/psyc_slicer.c
src/pt/gnunet-daemon-pt.c
src/pt/test_gns_vpn.c
src/pt/test_gnunet_vpn.c
src/regex/gnunet-service-regex.c
src/regex/regex_api_announce.c
src/regex/regex_api_search.c
src/regex/regex_block_lib.c
src/regex/regex_internal.c
src/regex/regex_internal_dht.c
src/revocation/revocation_api.c
src/rps/gnunet-service-rps.c
src/rps/rps_api.c
src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c
src/scalarproduct/gnunet-service-scalarproduct_alice.c
src/scalarproduct/gnunet-service-scalarproduct_bob.c
src/scalarproduct/scalarproduct_api.c
src/secretsharing/gnunet-service-secretsharing.c
src/secretsharing/secretsharing_api.c
src/secretsharing/secretsharing_common.c
src/set/gnunet-service-set.c
src/set/gnunet-service-set_intersection.c
src/set/gnunet-service-set_union.c
src/set/gnunet-service-set_union_strata_estimator.c
src/set/gnunet-set-profiler.c
src/set/ibf.c
src/set/set_api.c
src/social/gnunet-service-social.c
src/social/gnunet-social.c
src/social/social_api.c
src/social/test_social.c
src/statistics/gnunet-service-statistics.c
src/testbed-logger/testbed_logger_api.c
src/testbed/gnunet-daemon-testbed-underlay.c
src/testbed/gnunet-service-testbed.c
src/testbed/gnunet-service-testbed_barriers.c
src/testbed/gnunet-service-testbed_connectionpool.c
src/testbed/gnunet-service-testbed_links.c
src/testbed/gnunet-service-testbed_oc.c
src/testbed/testbed_api.c
src/testbed/testbed_api_barriers.c
src/testbed/testbed_api_hosts.c
src/testbed/testbed_api_operations.c
src/testbed/testbed_api_peers.c
src/testbed/testbed_api_testbed.c
src/testing/list-keys.c
src/testing/testing.c
src/topology/gnunet-daemon-topology.c
src/transport/gnunet-helper-transport-bluetooth.c
src/transport/gnunet-helper-transport-wlan-dummy.c
src/transport/gnunet-helper-transport-wlan.c
src/transport/gnunet-service-transport.c
src/transport/gnunet-service-transport_blacklist.c
src/transport/gnunet-service-transport_clients.c
src/transport/gnunet-service-transport_manipulation.c
src/transport/gnunet-service-transport_neighbours.c
src/transport/gnunet-service-transport_validation.c
src/transport/plugin_transport_http_client.c
src/transport/plugin_transport_http_common.c
src/transport/plugin_transport_http_server.c
src/transport/plugin_transport_smtp.c
src/transport/plugin_transport_tcp.c
src/transport/plugin_transport_udp.c
src/transport/plugin_transport_udp_broadcasting.c
src/transport/plugin_transport_unix.c
src/transport/plugin_transport_wlan.c
src/transport/test_quota_compliance.c
src/transport/test_transport_address_switch.c
src/transport/test_transport_api_reliability.c
src/transport/test_transport_api_unreliability_constant.c
src/transport/transport_api_address_to_string.c
src/transport/transport_api_core.c
src/util/bio.c
src/util/client.c
src/util/client_manager.c
src/util/common_allocation.c
src/util/configuration.c
src/util/connection.c
src/util/container_bloomfilter.c
src/util/container_meta_data.c
src/util/container_multipeermap.c
src/util/crypto_hash.c
src/util/crypto_hkdf.c
src/util/crypto_mpi.c
src/util/crypto_symmetric.c
src/util/getopt_helpers.c
src/util/gnunet-ecc.c
src/util/gnunet-scrypt.c
src/util/gnunet-service-resolver.c
src/util/helper.c
src/util/mq.c
src/util/network.c
src/util/os_installation.c
src/util/program.c
src/util/resolver_api.c
src/util/server_mst.c
src/util/server_nc.c
src/util/server_tc.c
src/util/service.c
src/util/socks.c
src/util/strings.c
src/util/test_client.c
src/util/test_crypto_symmetric.c
src/util/test_server.c
src/util/test_socks.c
src/util/win.c
src/vpn/gnunet-helper-vpn-windows.c
src/vpn/gnunet-service-vpn.c
src/vpn/vpn_api.c