Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/yaz-5.30.3/client/admin.c
Examining data/yaz-5.30.3/client/fhistory.c
Examining data/yaz-5.30.3/client/tabcomplete.c
Examining data/yaz-5.30.3/client/fhistory.h
Examining data/yaz-5.30.3/client/tabcomplete.h
Examining data/yaz-5.30.3/client/admin.h
Examining data/yaz-5.30.3/client/bertorture.c
Examining data/yaz-5.30.3/client/client.c
Examining data/yaz-5.30.3/test/test_embed_record.c
Examining data/yaz-5.30.3/test/test_ccl.c
Examining data/yaz-5.30.3/test/test_log_thread.c
Examining data/yaz-5.30.3/test/test_match_glob.c
Examining data/yaz-5.30.3/test/test_rpn2solr.c
Examining data/yaz-5.30.3/test/test_xmalloc.c
Examining data/yaz-5.30.3/test/test_zgdu.c
Examining data/yaz-5.30.3/test/test_wrbuf.c
Examining data/yaz-5.30.3/test/test_sortspec.c
Examining data/yaz-5.30.3/test/test_mutex.c
Examining data/yaz-5.30.3/test/test_xml_include.c
Examining data/yaz-5.30.3/test/test_odr.c
Examining data/yaz-5.30.3/test/test_odrcodec.c
Examining data/yaz-5.30.3/test/test_json.c
Examining data/yaz-5.30.3/test/test_retrieval.c
Examining data/yaz-5.30.3/test/test_rpn2cql.c
Examining data/yaz-5.30.3/test/test_query_charset.c
Examining data/yaz-5.30.3/test/test_odrcodec.h
Examining data/yaz-5.30.3/test/test_oid.c
Examining data/yaz-5.30.3/test/test_options.c
Examining data/yaz-5.30.3/test/test_comstack.c
Examining data/yaz-5.30.3/test/test_soap2.c
Examining data/yaz-5.30.3/test/test_file_glob.c
Examining data/yaz-5.30.3/test/test_tpath.c
Examining data/yaz-5.30.3/test/test_filepath.c
Examining data/yaz-5.30.3/test/test_log.c
Examining data/yaz-5.30.3/test/test_icu.c
Examining data/yaz-5.30.3/test/test_timing.c
Examining data/yaz-5.30.3/test/test_record_conv.c
Examining data/yaz-5.30.3/test/test_pquery.c
Examining data/yaz-5.30.3/test/test_libstemmer.c
Examining data/yaz-5.30.3/test/test_nmem.c
Examining data/yaz-5.30.3/test/test_solr.c
Examining data/yaz-5.30.3/test/test_shared_ptr.c
Examining data/yaz-5.30.3/test/test_iconv.c
Examining data/yaz-5.30.3/test/test_soap1.c
Examining data/yaz-5.30.3/test/test_odrstack.c
Examining data/yaz-5.30.3/test/test_xmlquery.c
Examining data/yaz-5.30.3/test/test_cql2ccl.c
Examining data/yaz-5.30.3/test/test_matchstr.c
Examining data/yaz-5.30.3/src/oid_db.c
Examining data/yaz-5.30.3/src/icu_chain.c
Examining data/yaz-5.30.3/src/readconf.c
Examining data/yaz-5.30.3/src/iconv_encode_wchar.c
Examining data/yaz-5.30.3/src/initopt.c
Examining data/yaz-5.30.3/src/z-grs.c
Examining data/yaz-5.30.3/src/marc_read_xml.c
Examining data/yaz-5.30.3/src/cclstr.c
Examining data/yaz-5.30.3/src/json.c
Examining data/yaz-5.30.3/src/iconv_decode_danmarc.c
Examining data/yaz-5.30.3/src/iconv_decode_iso5426.c
Examining data/yaz-5.30.3/src/zes-exps.c
Examining data/yaz-5.30.3/src/diag-entry.c
Examining data/yaz-5.30.3/src/utf8.c
Examining data/yaz-5.30.3/src/thread_create.c
Examining data/yaz-5.30.3/src/eventl.h
Examining data/yaz-5.30.3/src/odr_cons.c
Examining data/yaz-5.30.3/src/daemon.c
Examining data/yaz-5.30.3/src/zoom-p.h
Examining data/yaz-5.30.3/src/ber_int.c
Examining data/yaz-5.30.3/src/eventl.c
Examining data/yaz-5.30.3/src/poll.c
Examining data/yaz-5.30.3/src/xmlquery.c
Examining data/yaz-5.30.3/src/odr_int.c
Examining data/yaz-5.30.3/src/cqlstrer.c
Examining data/yaz-5.30.3/src/zoom-query.c
Examining data/yaz-5.30.3/src/grs1disp.c
Examining data/yaz-5.30.3/src/log.c
Examining data/yaz-5.30.3/src/icu_utf16.c
Examining data/yaz-5.30.3/src/elementset.c
Examining data/yaz-5.30.3/src/session.h
Examining data/yaz-5.30.3/src/odr_bit.c
Examining data/yaz-5.30.3/src/z-espec1.c
Examining data/yaz-5.30.3/src/proxunit.c
Examining data/yaz-5.30.3/src/odr_seq.c
Examining data/yaz-5.30.3/src/cclerrms.c
Examining data/yaz-5.30.3/src/odr_choice.c
Examining data/yaz-5.30.3/src/matchstr.c
Examining data/yaz-5.30.3/src/opac_to_xml.c
Examining data/yaz-5.30.3/src/marc8r.c
Examining data/yaz-5.30.3/src/logrpn.c
Examining data/yaz-5.30.3/src/xml_include.c
Examining data/yaz-5.30.3/src/querytowrbuf.c
Examining data/yaz-5.30.3/src/sc_test.c
Examining data/yaz-5.30.3/src/ccltoken.c
Examining data/yaz-5.30.3/src/ber_tag.c
Examining data/yaz-5.30.3/src/zoom-event.c
Examining data/yaz-5.30.3/src/thread_id.c
Examining data/yaz-5.30.3/src/condvar.c
Examining data/yaz-5.30.3/src/zoom-z3950.c
Examining data/yaz-5.30.3/src/z-accdes1.c
Examining data/yaz-5.30.3/src/zoom-sru.c
Examining data/yaz-5.30.3/src/cclfind.c
Examining data/yaz-5.30.3/src/diag_map.c
Examining data/yaz-5.30.3/src/sru_facet.c
Examining data/yaz-5.30.3/src/odr_use.c
Examining data/yaz-5.30.3/src/zoom-record-cache.c
Examining data/yaz-5.30.3/src/zes-update0.c
Examining data/yaz-5.30.3/src/zgdu.c
Examining data/yaz-5.30.3/src/z-exp.c
Examining data/yaz-5.30.3/src/z-date.c
Examining data/yaz-5.30.3/src/url.c
Examining data/yaz-5.30.3/src/cqltransform.c
Examining data/yaz-5.30.3/src/cclptree.c
Examining data/yaz-5.30.3/src/z-estask.c
Examining data/yaz-5.30.3/src/z-univ.c
Examining data/yaz-5.30.3/src/srw.c
Examining data/yaz-5.30.3/src/zoom-c.c
Examining data/yaz-5.30.3/src/init_diag.c
Examining data/yaz-5.30.3/src/z-opac.c
Examining data/yaz-5.30.3/src/cql.c
Examining data/yaz-5.30.3/src/errno.c
Examining data/yaz-5.30.3/src/base64.c
Examining data/yaz-5.30.3/src/diagsrw.c
Examining data/yaz-5.30.3/src/odr_oid.c
Examining data/yaz-5.30.3/src/ill-get.c
Examining data/yaz-5.30.3/src/stemmer.c
Examining data/yaz-5.30.3/src/comstack.c
Examining data/yaz-5.30.3/src/uri.c
Examining data/yaz-5.30.3/src/item-req.c
Examining data/yaz-5.30.3/src/xmalloc.c
Examining data/yaz-5.30.3/src/icu_utf8.c
Examining data/yaz-5.30.3/src/tcpdchk.c
Examining data/yaz-5.30.3/src/cclp.h
Examining data/yaz-5.30.3/src/ccl_stop_words.c
Examining data/yaz-5.30.3/src/gettimeofday.c
Examining data/yaz-5.30.3/src/z-oclcui.c
Examining data/yaz-5.30.3/src/wrbuf.c
Examining data/yaz-5.30.3/src/snprintf.c
Examining data/yaz-5.30.3/src/mutex-p.h
Examining data/yaz-5.30.3/src/zes-order.c
Examining data/yaz-5.30.3/src/z-acckrb1.c
Examining data/yaz-5.30.3/src/mime.h
Examining data/yaz-5.30.3/src/ber_any.c
Examining data/yaz-5.30.3/src/z-sutrs.c
Examining data/yaz-5.30.3/src/statserv.c
Examining data/yaz-5.30.3/src/cqlstring.c
Examining data/yaz-5.30.3/src/solr.c
Examining data/yaz-5.30.3/src/sru-p.h
Examining data/yaz-5.30.3/src/zoom-opt.c
Examining data/yaz-5.30.3/src/record_conv.c
Examining data/yaz-5.30.3/src/wrbuf_sha1.c
Examining data/yaz-5.30.3/src/odr_util.c
Examining data/yaz-5.30.3/src/oid_util.c
Examining data/yaz-5.30.3/src/retrieval.c
Examining data/yaz-5.30.3/src/seshigh.c
Examining data/yaz-5.30.3/src/xml_match.c
Examining data/yaz-5.30.3/src/iconv_encode_marc8.c
Examining data/yaz-5.30.3/src/ucs4.c
Examining data/yaz-5.30.3/src/mime.c
Examining data/yaz-5.30.3/src/facet.c
Examining data/yaz-5.30.3/src/zes-pset.c
Examining data/yaz-5.30.3/src/options.c
Examining data/yaz-5.30.3/src/odr_tag.c
Examining data/yaz-5.30.3/src/marc_read_line.c
Examining data/yaz-5.30.3/src/iso5428.c
Examining data/yaz-5.30.3/src/init_globals.c
Examining data/yaz-5.30.3/src/ber_oid.c
Examining data/yaz-5.30.3/src/atoin.c
Examining data/yaz-5.30.3/src/otherinfo.c
Examining data/yaz-5.30.3/src/ber_len.c
Examining data/yaz-5.30.3/src/sortspec.c
Examining data/yaz-5.30.3/src/z-core.c
Examining data/yaz-5.30.3/src/iconv_encode_iso_8859_1.c
Examining data/yaz-5.30.3/src/odr_any.c
Examining data/yaz-5.30.3/src/sc.c
Examining data/yaz-5.30.3/src/siconv.c
Examining data/yaz-5.30.3/src/record_render.c
Examining data/yaz-5.30.3/src/marc8.c
Examining data/yaz-5.30.3/src/odr_oct.c
Examining data/yaz-5.30.3/src/zes-admin.c
Examining data/yaz-5.30.3/src/odr.c
Examining data/yaz-5.30.3/src/xml_get.c
Examining data/yaz-5.30.3/src/cookie.c
Examining data/yaz-5.30.3/src/version.c
Examining data/yaz-5.30.3/src/zget.c
Examining data/yaz-5.30.3/src/z-diag1.c
Examining data/yaz-5.30.3/src/test.c
Examining data/yaz-5.30.3/src/ber_bool.c
Examining data/yaz-5.30.3/src/copy_types.c
Examining data/yaz-5.30.3/src/cclxmlconfig.c
Examining data/yaz-5.30.3/src/rpn2cql.c
Examining data/yaz-5.30.3/src/rpn2solr.c
Examining data/yaz-5.30.3/src/z-charneg.c
Examining data/yaz-5.30.3/src/nmemsdup.c
Examining data/yaz-5.30.3/src/icu_transform.c
Examining data/yaz-5.30.3/src/iso5426.c
Examining data/yaz-5.30.3/src/iconv_decode_marc8.c
Examining data/yaz-5.30.3/src/xml_add.c
Examining data/yaz-5.30.3/src/tokenizer.c
Examining data/yaz-5.30.3/src/soap.c
Examining data/yaz-5.30.3/src/zes-expi.c
Examining data/yaz-5.30.3/src/z-mterm2.c
Examining data/yaz-5.30.3/src/zoom-socket.c
Examining data/yaz-5.30.3/src/xml_to_opac.c
Examining data/yaz-5.30.3/src/srwutil.c
Examining data/yaz-5.30.3/src/nmem.c
Examining data/yaz-5.30.3/src/prt-ext.c
Examining data/yaz-5.30.3/src/file_glob.c
Examining data/yaz-5.30.3/src/spipe.c
Examining data/yaz-5.30.3/src/cql2ccl.c
Examining data/yaz-5.30.3/src/cqlstdio.c
Examining data/yaz-5.30.3/src/oid_std.c
Examining data/yaz-5.30.3/src/zes-psched.c
Examining data/yaz-5.30.3/src/z-rrf1.c
Examining data/yaz-5.30.3/src/marc_read_json.c
Examining data/yaz-5.30.3/src/odr_null.c
Examining data/yaz-5.30.3/src/z-accform1.c
Examining data/yaz-5.30.3/src/requestq.c
Examining data/yaz-5.30.3/src/ber_oct.c
Examining data/yaz-5.30.3/src/unix.c
Examining data/yaz-5.30.3/src/malloc_info.c
Examining data/yaz-5.30.3/src/cqlutil.c
Examining data/yaz-5.30.3/src/diagsru_update.c
Examining data/yaz-5.30.3/src/dumpber.c
Examining data/yaz-5.30.3/src/mutex.c
Examining data/yaz-5.30.3/src/match_glob.c
Examining data/yaz-5.30.3/src/icu_tokenizer.c
Examining data/yaz-5.30.3/src/dirent.c
Examining data/yaz-5.30.3/src/ber_null.c
Examining data/yaz-5.30.3/src/tcpip.c
Examining data/yaz-5.30.3/src/marcdisp.c
Examining data/yaz-5.30.3/src/ill-core.c
Examining data/yaz-5.30.3/src/oclc-ill-req-ext.c
Examining data/yaz-5.30.3/src/tpath.c
Examining data/yaz-5.30.3/src/cql_sortkeys.c
Examining data/yaz-5.30.3/src/icu_sortkey.c
Examining data/yaz-5.30.3/src/cclqfile.c
Examining data/yaz-5.30.3/src/zes-pquery.c
Examining data/yaz-5.30.3/src/icu_casemap.c
Examining data/yaz-5.30.3/src/backtrace.c
Examining data/yaz-5.30.3/src/cclqual.c
Examining data/yaz-5.30.3/src/advancegreek.c
Examining data/yaz-5.30.3/src/http.c
Examining data/yaz-5.30.3/src/odr-priv.h
Examining data/yaz-5.30.3/src/odr_bool.c
Examining data/yaz-5.30.3/src/z-uifr1.c
Examining data/yaz-5.30.3/src/zes-update.c
Examining data/yaz-5.30.3/src/query-charset.c
Examining data/yaz-5.30.3/src/zoom-memcached.c
Examining data/yaz-5.30.3/src/odr_mem.c
Examining data/yaz-5.30.3/src/z-facet-1.c
Examining data/yaz-5.30.3/src/solrtransform.c
Examining data/yaz-5.30.3/src/iconv_encode_danmarc.c
Examining data/yaz-5.30.3/src/xcqlutil.c
Examining data/yaz-5.30.3/src/z-rrf2.c
Examining data/yaz-5.30.3/src/z-sum.c
Examining data/yaz-5.30.3/src/xmlerror.c
Examining data/yaz-5.30.3/src/marc_read_iso2709.c
Examining data/yaz-5.30.3/src/charneg.c
Examining data/yaz-5.30.3/src/iconv-p.h
Examining data/yaz-5.30.3/src/odr_enum.c
Examining data/yaz-5.30.3/src/pquery.c
Examining data/yaz-5.30.3/src/yaz-ccl.c
Examining data/yaz-5.30.3/src/timing.c
Examining data/yaz-5.30.3/src/diagbib1.c
Examining data/yaz-5.30.3/src/diag-entry.h
Examining data/yaz-5.30.3/src/ber_bit.c
Examining data/yaz-5.30.3/ztest/gfs-example.c
Examining data/yaz-5.30.3/ztest/ztest.h
Examining data/yaz-5.30.3/ztest/ztest.c
Examining data/yaz-5.30.3/ztest/read-grs.c
Examining data/yaz-5.30.3/ztest/read-marc.c
Examining data/yaz-5.30.3/ztest/dummy-opac.c
Examining data/yaz-5.30.3/libstemmer_c/libstemmer/modules.h
Examining data/yaz-5.30.3/libstemmer_c/libstemmer/libstemmer.c
Examining data/yaz-5.30.3/libstemmer_c/src_c/stem_UTF_8_english.h
Examining data/yaz-5.30.3/libstemmer_c/src_c/stem_UTF_8_porter.h
Examining data/yaz-5.30.3/libstemmer_c/src_c/stem_UTF_8_porter.c
Examining data/yaz-5.30.3/libstemmer_c/src_c/stem_UTF_8_english.c
Examining data/yaz-5.30.3/libstemmer_c/runtime/api.h
Examining data/yaz-5.30.3/libstemmer_c/runtime/api.c
Examining data/yaz-5.30.3/libstemmer_c/runtime/header.h
Examining data/yaz-5.30.3/libstemmer_c/runtime/utilities.c
Examining data/yaz-5.30.3/libstemmer_c/include/libstemmer.h
Examining data/yaz-5.30.3/zoom/zoomtst3.c
Examining data/yaz-5.30.3/zoom/zoomtst11.c
Examining data/yaz-5.30.3/zoom/zoomsh.c
Examining data/yaz-5.30.3/zoom/zoom-benchmark.c
Examining data/yaz-5.30.3/zoom/zoomtst1.c
Examining data/yaz-5.30.3/zoom/zoomtst2.c
Examining data/yaz-5.30.3/zoom/zoom-bug-641.c
Examining data/yaz-5.30.3/zoom/zoomtst6.c
Examining data/yaz-5.30.3/zoom/zoomtst5.c
Examining data/yaz-5.30.3/zoom/zoom-ka.c
Examining data/yaz-5.30.3/zoom/zoomtst8.c
Examining data/yaz-5.30.3/zoom/zoomtst9.c
Examining data/yaz-5.30.3/zoom/zoomtst7.c
Examining data/yaz-5.30.3/zoom/zoomtst10.c
Examining data/yaz-5.30.3/zoom/zoomtst4.c
Examining data/yaz-5.30.3/util/yaz-xmlquery.c
Examining data/yaz-5.30.3/util/yaz-url.c
Examining data/yaz-5.30.3/util/benchmark.c
Examining data/yaz-5.30.3/util/cql2xcql.c
Examining data/yaz-5.30.3/util/cclsh.c
Examining data/yaz-5.30.3/util/yaz-icu.c
Examining data/yaz-5.30.3/util/yaz-illclient.c
Examining data/yaz-5.30.3/util/yaziconv.c
Examining data/yaz-5.30.3/util/yaz-record-conv.c
Examining data/yaz-5.30.3/util/cql2pqf.c
Examining data/yaz-5.30.3/util/srwtst.c
Examining data/yaz-5.30.3/util/marcdump.c
Examining data/yaz-5.30.3/util/json-parse.c
Examining data/yaz-5.30.3/include/yaz/match_glob.h
Examining data/yaz-5.30.3/include/yaz/record_conv.h
Examining data/yaz-5.30.3/include/yaz/file_glob.h
Examining data/yaz-5.30.3/include/yaz/daemon.h
Examining data/yaz-5.30.3/include/yaz/record_render.h
Examining data/yaz-5.30.3/include/yaz/z-uifr1.h
Examining data/yaz-5.30.3/include/yaz/z-facet-1.h
Examining data/yaz-5.30.3/include/yaz/solr.h
Examining data/yaz-5.30.3/include/yaz/oclc-ill-req-ext.h
Examining data/yaz-5.30.3/include/yaz/errno.h
Examining data/yaz-5.30.3/include/yaz/icu.h
Examining data/yaz-5.30.3/include/yaz/zes-order.h
Examining data/yaz-5.30.3/include/yaz/base64.h
Examining data/yaz-5.30.3/include/yaz/poll.h
Examining data/yaz-5.30.3/include/yaz/zes-psched.h
Examining data/yaz-5.30.3/include/yaz/ccl_xml.h
Examining data/yaz-5.30.3/include/yaz/icu_I18N.h
Examining data/yaz-5.30.3/include/yaz/dirent.h
Examining data/yaz-5.30.3/include/yaz/z-estask.h
Examining data/yaz-5.30.3/include/yaz/proxunit.h
Examining data/yaz-5.30.3/include/yaz/item-req.h
Examining data/yaz-5.30.3/include/yaz/pquery.h
Examining data/yaz-5.30.3/include/yaz/z-diag1.h
Examining data/yaz-5.30.3/include/yaz/odr.h
Examining data/yaz-5.30.3/include/yaz/marcdisp.h
Examining data/yaz-5.30.3/include/yaz/malloc_info.h
Examining data/yaz-5.30.3/include/yaz/sc.h
Examining data/yaz-5.30.3/include/yaz/oid_db.h
Examining data/yaz-5.30.3/include/yaz/zoom.h
Examining data/yaz-5.30.3/include/yaz/backend.h
Examining data/yaz-5.30.3/include/yaz/gettimeofday.h
Examining data/yaz-5.30.3/include/yaz/diagsrw.h
Examining data/yaz-5.30.3/include/yaz/zes-pquery.h
Examining data/yaz-5.30.3/include/yaz/tpath.h
Examining data/yaz-5.30.3/include/yaz/retrieval.h
Examining data/yaz-5.30.3/include/yaz/readconf.h
Examining data/yaz-5.30.3/include/yaz/proto.h
Examining data/yaz-5.30.3/include/yaz/zes-pset.h
Examining data/yaz-5.30.3/include/yaz/xmalloc.h
Examining data/yaz-5.30.3/include/yaz/z-date.h
Examining data/yaz-5.30.3/include/yaz/xmlquery.h
Examining data/yaz-5.30.3/include/yaz/wrbuf.h
Examining data/yaz-5.30.3/include/yaz/prt-ext.h
Examining data/yaz-5.30.3/include/yaz/query-charset.h
Examining data/yaz-5.30.3/include/yaz/z-mterm2.h
Examining data/yaz-5.30.3/include/yaz/spipe.h
Examining data/yaz-5.30.3/include/yaz/oid_std.h
Examining data/yaz-5.30.3/include/yaz/yaz-util.h
Examining data/yaz-5.30.3/include/yaz/rpn2solr.h
Examining data/yaz-5.30.3/include/yaz/diagbib1.h
Examining data/yaz-5.30.3/include/yaz/cookie.h
Examining data/yaz-5.30.3/include/yaz/thread_id.h
Examining data/yaz-5.30.3/include/yaz/z-sum.h
Examining data/yaz-5.30.3/include/yaz/z-sutrs.h
Examining data/yaz-5.30.3/include/yaz/z-core.h
Examining data/yaz-5.30.3/include/yaz/sortspec.h
Examining data/yaz-5.30.3/include/yaz/z-grs.h
Examining data/yaz-5.30.3/include/yaz/backtrace.h
Examining data/yaz-5.30.3/include/yaz/facet.h
Examining data/yaz-5.30.3/include/yaz/json.h
Examining data/yaz-5.30.3/include/yaz/xml_include.h
Examining data/yaz-5.30.3/include/yaz/test.h
Examining data/yaz-5.30.3/include/yaz/soap.h
Examining data/yaz-5.30.3/include/yaz/yaz-version.h
Examining data/yaz-5.30.3/include/yaz/zes-update0.h
Examining data/yaz-5.30.3/include/yaz/z-opac.h
Examining data/yaz-5.30.3/include/yaz/url.h
Examining data/yaz-5.30.3/include/yaz/rpn2cql.h
Examining data/yaz-5.30.3/include/yaz/thread_create.h
Examining data/yaz-5.30.3/include/yaz/ill-core.h
Examining data/yaz-5.30.3/include/yaz/logrpn.h
Examining data/yaz-5.30.3/include/yaz/ill.h
Examining data/yaz-5.30.3/include/yaz/snprintf.h
Examining data/yaz-5.30.3/include/yaz/xmltypes.h
Examining data/yaz-5.30.3/include/yaz/zes-admin.h
Examining data/yaz-5.30.3/include/yaz/z-accform1.h
Examining data/yaz-5.30.3/include/yaz/statserv.h
Examining data/yaz-5.30.3/include/yaz/copy_types.h
Examining data/yaz-5.30.3/include/yaz/querytowrbuf.h
Examining data/yaz-5.30.3/include/yaz/srw.h
Examining data/yaz-5.30.3/include/yaz/zes-expi.h
Examining data/yaz-5.30.3/include/yaz/z-univ.h
Examining data/yaz-5.30.3/include/yaz/yaz-iconv.h
Examining data/yaz-5.30.3/include/yaz/nmem_xml.h
Examining data/yaz-5.30.3/include/yaz/mutex.h
Examining data/yaz-5.30.3/include/yaz/cql.h
Examining data/yaz-5.30.3/include/yaz/oid_util.h
Examining data/yaz-5.30.3/include/yaz/unix.h
Examining data/yaz-5.30.3/include/yaz/yaz-ccl.h
Examining data/yaz-5.30.3/include/yaz/comstack.h
Examining data/yaz-5.30.3/include/yaz/z-espec1.h
Examining data/yaz-5.30.3/include/yaz/nmem.h
Examining data/yaz-5.30.3/include/yaz/tokenizer.h
Examining data/yaz-5.30.3/include/yaz/z-rrf1.h
Examining data/yaz-5.30.3/include/yaz/stemmer.h
Examining data/yaz-5.30.3/include/yaz/zes-exps.h
Examining data/yaz-5.30.3/include/yaz/z-charneg.h
Examining data/yaz-5.30.3/include/yaz/yconfig.h
Examining data/yaz-5.30.3/include/yaz/otherinfo.h
Examining data/yaz-5.30.3/include/yaz/zes-update.h
Examining data/yaz-5.30.3/include/yaz/shptr.h
Examining data/yaz-5.30.3/include/yaz/log.h
Examining data/yaz-5.30.3/include/yaz/charneg.h
Examining data/yaz-5.30.3/include/yaz/tcpip.h
Examining data/yaz-5.30.3/include/yaz/matchstr.h
Examining data/yaz-5.30.3/include/yaz/diagsru_update.h
Examining data/yaz-5.30.3/include/yaz/zgdu.h
Examining data/yaz-5.30.3/include/yaz/z-rrf2.h
Examining data/yaz-5.30.3/include/yaz/z-oclcui.h
Examining data/yaz-5.30.3/include/yaz/options.h
Examining data/yaz-5.30.3/include/yaz/z-exp.h
Examining data/yaz-5.30.3/include/yaz/ccl.h
Examining data/yaz-5.30.3/include/yaz/timing.h
Examining data/yaz-5.30.3/include/yaz/xml_get.h
Examining data/yaz-5.30.3/include/yaz/z-accdes1.h
Examining data/yaz-5.30.3/include/yaz/z-acckrb1.h

FINAL RESULTS:

data/yaz-5.30.3/src/unix.c:432:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    if (chown(path, sp->uid, sp->gid))
data/yaz-5.30.3/src/unix.c:437:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(path, sp->umask != -1 ? sp->umask : 0666))
data/yaz-5.30.3/client/client.c:239:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(fname, "%s.%03d.raw", dump_file_prefix, no);
data/yaz-5.30.3/client/client.c:1692:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(ODR_INT_PRINTF, *term->u.numeric);
data/yaz-5.30.3/client/client.c:1769:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(" cnt=" ODR_INT_PRINTF,
data/yaz-5.30.3/client/client.c:1807:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf("Number of hits: " ODR_INT_PRINTF, *res->resultCount);
data/yaz-5.30.3/client/client.c:1826:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(ODR_INT_PRINTF, *res->resultSetStatus);
data/yaz-5.30.3/client/client.c:3056:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(setstring, end_ptr+1);
data/yaz-5.30.3/client/client.c:3471:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(ODR_INT_PRINTF " entries", *res->numberOfEntriesReturned);
data/yaz-5.30.3/client/client.c:3473:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(", position=" ODR_INT_PRINTF, *res->positionOfTerm);
data/yaz-5.30.3/client/client.c:3579:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(scan_position, arg);
data/yaz-5.30.3/client/client.c:3609:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(last_scan_query, arg);
data/yaz-5.30.3/client/client.c:3994:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int ret = system(strlen(args) ? args : getenv("SHELL"));
data/yaz-5.30.3/client/client.c:4048:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(ccl_fields,arg);
data/yaz-5.30.3/client/client.c:4065:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(cql_fields, arg);
data/yaz-5.30.3/client/client.c:4247:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(fname, "%.800s/%s", homedir, ".yazclientrc");
data/yaz-5.30.3/client/client.c:4324:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf("pos=" ODR_INT_PRINTF, *rec->recordPosition);
data/yaz-5.30.3/client/client.c:4390:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(" " ODR_INT_PRINTF, *term->numberOfRecords);
data/yaz-5.30.3/client/client.c:4396:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(last_scan_line, term->value);
data/yaz-5.30.3/client/client.c:5199:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(word, last_cmd);
data/yaz-5.30.3/client/client.c:5204:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(last_cmd, word);
data/yaz-5.30.3/client/client.c:5386:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(C_PROMPT);
data/yaz-5.30.3/client/client.c:5453:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(open_command, arg);
data/yaz-5.30.3/client/client.c:5509:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(auth_command, arg);
data/yaz-5.30.3/client/fhistory.c:59:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname, "%.500s%s%s", homedir ? homedir : "",
data/yaz-5.30.3/client/fhistory.c:85:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fname, "%.500s%s%s", homedir ? homedir : "",
data/yaz-5.30.3/include/yaz/log.h:142:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        __attribute__ ((format (printf, 2, 3)))
data/yaz-5.30.3/include/yaz/wrbuf.h:147:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        __attribute__ ((format (printf, 2, 3)))
data/yaz-5.30.3/src/backtrace.c:90:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(pidstr, NMEM_INT_PRINTF, (nmem_int_t) getppid());
data/yaz-5.30.3/src/backtrace.c:93:9:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execv(arg[0], arg);
data/yaz-5.30.3/src/cookie.c:117:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(buf, c->name);
data/yaz-5.30.3/src/cookie.c:119:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(buf, c->value);
data/yaz-5.30.3/src/cql.c:766:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/yaz-5.30.3/src/cqltransform.c:112:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(wrbuf_cstr(type_str), ODR_INT_PRINTF, elem->attributeType)
data/yaz-5.30.3/src/dirent.c:38:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fullName, name);
data/yaz-5.30.3/src/dirent.c:48:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dd->entry.d_name, dd->find_data.cFileName);
data/yaz-5.30.3/src/dumpber.c:25:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(level_str, "level=%-6d%*s", level, 18, "");
data/yaz-5.30.3/src/dumpber.c:27:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(level_str, "%*s", level * 2, "");
data/yaz-5.30.3/src/errno.c:69:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buf, strerror(yaz_errno()));
data/yaz-5.30.3/src/errno.c:71:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, strerror(yaz_errno()));
data/yaz-5.30.3/src/facet.c:117:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(av->useattrbuff, ODR_INT_PRINTF, *ae->value.numeric);
data/yaz-5.30.3/src/facet.c:175:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(av->useattrbuff, ODR_INT_PRINTF,
data/yaz-5.30.3/src/file_glob.c:75:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(prefix + prefix_len, pattern + off);
data/yaz-5.30.3/src/file_glob.c:96:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(prefix + prefix_len, ent->d_name);
data/yaz-5.30.3/src/http.c:156:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(ctype, "%s; charset=%s", content_type, charset);
data/yaz-5.30.3/src/http.c:181:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "%s:%s", username, password);
data/yaz-5.30.3/src/http.c:327:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(p->u.HTTP_Request->path, args);
data/yaz-5.30.3/src/http.c:352:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(hres->content_buf,
data/yaz-5.30.3/src/http.c:366:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(hres->content_buf + strlen(hres->content_buf),
data/yaz-5.30.3/src/http.c:586:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(sbuf, "HTTP/%s %d %s\r\n", hr->version,
data/yaz-5.30.3/src/http.c:667:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(nlocation, uri);
data/yaz-5.30.3/src/http.c:673:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(args, location);
data/yaz-5.30.3/src/ill-get.c:24:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:28:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:47:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:51:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:72:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:76:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:100:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:104:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:120:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:124:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:142:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:146:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:167:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:171:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:192:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:196:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:213:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:217:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:239:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:243:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:258:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:262:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:279:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:283:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:300:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:304:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:322:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:326:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:369:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:373:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:390:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:394:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:421:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:425:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:442:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:446:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:462:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:466:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:484:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:488:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:551:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:555:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:618:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/ill-get.c:622:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(element, sub);
data/yaz-5.30.3/src/ill-get.c:648:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(element, name);
data/yaz-5.30.3/src/log.c:333:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(cur_filename, new_filename);
data/yaz-5.30.3/src/log.c:449:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat(flags, mask_names[i].name);
data/yaz-5.30.3/src/log.c:475:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(file, fmt, ap);
data/yaz-5.30.3/src/log.c:578:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(mask_names[i].name, name);
data/yaz-5.30.3/src/logrpn.c:52:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(str, "relation=%s", rstr);
data/yaz-5.30.3/src/logrpn.c:54:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(str, "relation=" ODR_INT_PRINTF, value);
data/yaz-5.30.3/src/logrpn.c:179:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, ODR_INT_PRINTF "=" ODR_INT_PRINTF, type, value);
data/yaz-5.30.3/src/marc_read_xml.c:75:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(ctrl_data_buf, (const char *)ptr_code->content);
data/yaz-5.30.3/src/marc_read_xml.c:78:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat(ctrl_data_buf, (const char *)p->content);
data/yaz-5.30.3/src/marc_read_xml.c:117:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(attrname, "%s%d", turbo ? "i" : "ind", i);
data/yaz-5.30.3/src/marc_read_xml.c:125:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(res, (const char *)attr->children->content);
data/yaz-5.30.3/src/marc_read_xml.c:162:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(ctrl_data_buf, (const char *) tag_value);
data/yaz-5.30.3/src/marc_read_xml.c:165:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat(ctrl_data_buf, (const char *)p->content);
data/yaz-5.30.3/src/marcdisp.c:896:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(ind_str, "%s%d", indicator_name[turbo], i+1);
data/yaz-5.30.3/src/nmemsdup.c:21:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dst, src);
data/yaz-5.30.3/src/nmemsdup.c:158:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(cdata, (const char *) ptr->content);
data/yaz-5.30.3/src/odr_util.c:111:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(res, prefix);
data/yaz-5.30.3/src/odr_util.c:115:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(res, old);
data/yaz-5.30.3/src/oid_util.c:70:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(oidbuf, tmpbuf);
data/yaz-5.30.3/src/record_conv.c:190:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(qvalue, value);
data/yaz-5.30.3/src/record_render.c:492:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(type_spec, type);
data/yaz-5.30.3/src/record_render.c:496:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(type_spec, charset);
data/yaz-5.30.3/src/seshigh.c:524:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(assoc->init->peer_name, peer_name1);
data/yaz-5.30.3/src/seshigh.c:527:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(assoc->init->peer_name, peer_name2);
data/yaz-5.30.3/src/seshigh.c:559:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(auth->u.open, sr->username);
data/yaz-5.30.3/src/seshigh.c:563:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(auth->u.open, sr->password);
data/yaz-5.30.3/src/snprintf.c:20:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buf, size, fmt, ap);
data/yaz-5.30.3/src/snprintf.c:26:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buf, fmt, ap);
data/yaz-5.30.3/src/soap.c:282:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(content, "type=\"text/xsl\" href=\"%s\"", stylesheet);
data/yaz-5.30.3/src/solr.c:620:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(path, hreq->path);
data/yaz-5.30.3/src/solr.c:638:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(path, solr_op);
data/yaz-5.30.3/src/solr.c:641:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(path, uri_args);
data/yaz-5.30.3/src/sru_facet.c:149:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(tmp, "@attr 4=%s", *start);
data/yaz-5.30.3/src/srwutil.c:45:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, ODR_INT_PRINTF, *v);
data/yaz-5.30.3/src/srwutil.c:60:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dst+1, db);
data/yaz-5.30.3/src/srwutil.c:133:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(ubuf, out);
data/yaz-5.30.3/src/srwutil.c:138:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(pbuf, p);
data/yaz-5.30.3/src/srwutil.c:221:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(record->recordData_buf + strlen(record->recordData_buf),
data/yaz-5.30.3/src/srwutil.c:224:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(record->recordData_buf + strlen(record->recordData_buf),
data/yaz-5.30.3/src/srwutil.c:936:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(value[*i], ODR_INT_PRINTF, *val);
data/yaz-5.30.3/src/srwutil.c:1128:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s%c%s", hreq->path, strchr(hreq->path, '?') ? '&' : '?', 
data/yaz-5.30.3/src/statserv.c:201:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat((char *)str, (const char *)cp); /* append */
data/yaz-5.30.3/src/statserv.c:433:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfs->cb.configname,
data/yaz-5.30.3/src/statserv.c:438:25:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                        strcpy(gfs->cb.configname, fpath);
data/yaz-5.30.3/src/statserv.c:492:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(gfs->stylesheet, "/%s", s);
data/yaz-5.30.3/src/statserv.c:1000:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(nbuf, "%s(%d)", me, no_sessions);
data/yaz-5.30.3/src/tcpip.c:255:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(sp->bind_host, bind_host);
data/yaz-5.30.3/src/tcpip.c:269:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(sp->connect_request_buf, connect_host);
data/yaz-5.30.3/src/tcpip.c:1378:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "http:%s", r);
data/yaz-5.30.3/src/tcpip.c:1380:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "tcp:%s", r);
data/yaz-5.30.3/src/tcpip.c:1385:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf, "https:%s", r);
data/yaz-5.30.3/src/tcpip.c:1387:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf, "ssl:%s", r);
data/yaz-5.30.3/src/test.c:121:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(logfilename,"%s.log", progname(argv0) );
data/yaz-5.30.3/src/tpath.c:99:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(fullpath, base);
data/yaz-5.30.3/src/tpath.c:108:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(fullpath+slen, fname);
data/yaz-5.30.3/src/unix.c:727:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "unix:%s", sp->addr.sun_path);
data/yaz-5.30.3/src/url.c:111:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(*uri_lean + (cp1 + 3 - uri), cp2 + 1);
data/yaz-5.30.3/src/version.c:21:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(version_str, YAZ_VERSION);
data/yaz-5.30.3/src/version.c:23:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(sha1_str, YAZ_VERSION_SHA1);
data/yaz-5.30.3/src/xmalloc.c:337:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, s);
data/yaz-5.30.3/src/xml_add.c:72:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, ODR_INT_PRINTF, *val);
data/yaz-5.30.3/src/xmlquery.c:85:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(formstr, ODR_INT_PRINTF, *element->attributeType);
data/yaz-5.30.3/src/xmlquery.c:88:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(formstr, ODR_INT_PRINTF, *element->value.numeric);
data/yaz-5.30.3/src/xmlquery.c:101:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(formstr, ODR_INT_PRINTF, *element->attributeType);
data/yaz-5.30.3/src/xmlquery.c:113:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(formstr, ODR_INT_PRINTF,
data/yaz-5.30.3/src/xmlquery.c:137:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(formstr, ODR_INT_PRINTF, *term->u.numeric);
data/yaz-5.30.3/src/xmlquery.c:216:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(formstr, ODR_INT_PRINTF, *op->u.prox->distance);
data/yaz-5.30.3/src/xmlquery.c:224:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(formstr, ODR_INT_PRINTF, *op->u.prox->relationType);
data/yaz-5.30.3/src/xmlquery.c:230:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(formstr, ODR_INT_PRINTF, *op->u.prox->u.known);
data/yaz-5.30.3/src/zoom-c.c:74:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(c->addinfo, addinfo);
data/yaz-5.30.3/src/zoom-c.c:76:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(c->addinfo, addinfo2);
data/yaz-5.30.3/src/zoom-c.c:437:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(c->host_port, http_lead);
data/yaz-5.30.3/src/zoom-c.c:438:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(c->host_port, host);
data/yaz-5.30.3/src/zoom-memcached.c:356:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, ODR_INT_PRINTF ";%s", resultset->size, precision);
data/yaz-5.30.3/src/zoom-memcached.c:363:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(key, str);
data/yaz-5.30.3/src/zoom-memcached.c:400:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(str, ODR_INT_PRINTF ";%s", resultset->size, precision);
data/yaz-5.30.3/src/zoom-memcached.c:407:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(key, str);
data/yaz-5.30.3/src/zoom-z3950.c:1256:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(opt_name, "%s.term", name);
data/yaz-5.30.3/test/test_icu.c:199:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(list[i]->disp_term, src_list[i]);
data/yaz-5.30.3/test/test_solr.c:148:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(http_response, content);
data/yaz-5.30.3/test/test_solr.c:178:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(http_response, content);
data/yaz-5.30.3/util/benchmark.c:130:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/yaz-5.30.3/util/cclsh.c:142:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(buf,line_in);
data/yaz-5.30.3/util/yaz-icu.c:92:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(p_config->conffile, arg);
data/yaz-5.30.3/util/yaz-icu.c:95:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(p_config->print, arg);
data/yaz-5.30.3/util/yaz-illclient.c:550:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(msg, "ODR code %d:%d element=%-20s",
data/yaz-5.30.3/zoom/zoom-benchmark.c:80:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(els[iels].zoom_event, eventmsg);
data/yaz-5.30.3/zoom/zoom-benchmark.c:85:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(els[iels].errmsg, errmsg);
data/yaz-5.30.3/zoom/zoom-benchmark.c:148:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(parameters.proxy, nullstring);
data/yaz-5.30.3/zoom/zoom-benchmark.c:218:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(p_parameters->host, arg);
data/yaz-5.30.3/zoom/zoom-benchmark.c:221:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(p_parameters->query, arg);
data/yaz-5.30.3/zoom/zoom-benchmark.c:224:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(p_parameters->proxy, arg);
data/yaz-5.30.3/zoom/zoomsh.c:234:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int ret = system(*args);
data/yaz-5.30.3/zoom/zoomsh.c:987:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(buf,line_in);
data/yaz-5.30.3/ztest/read-grs.c:79:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(t->tagValue->u.string, value);
data/yaz-5.30.3/ztest/ztest.c:262:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(key, "%s%d", facet_name, index);
data/yaz-5.30.3/ztest/ztest.c:902:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(r->record, buf);
data/yaz-5.30.3/client/bertorture.c:207:21:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                    srand(i*5111+1);
data/yaz-5.30.3/client/client.c:3994:44:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    int ret = system(strlen(args) ? args : getenv("SHELL"));
data/yaz-5.30.3/client/client.c:4244:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            const char* homedir = getenv("HOME");
data/yaz-5.30.3/client/fhistory.c:54:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char* homedir = getenv("HOME");
data/yaz-5.30.3/client/fhistory.c:78:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char* homedir = getenv("HOME");
data/yaz-5.30.3/src/log.c:131:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env = getenv("YAZ_LOG");
data/yaz-5.30.3/src/mutex.c:47:9:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        InitializeCriticalSection(&(*p)->handle);
data/yaz-5.30.3/src/mutex.c:74:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection(&p->handle);
data/yaz-5.30.3/src/statserv.c:700:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&Thread_CritSect);
data/yaz-5.30.3/src/statserv.c:712:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&Thread_CritSect);
data/yaz-5.30.3/src/statserv.c:730:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&Thread_CritSect);
data/yaz-5.30.3/src/statserv.c:780:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection(&Thread_CritSect);
data/yaz-5.30.3/src/zoom-c.c:1169:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("ZOOM_RECORD_NO_FORCE_SYNC")) force_sync = 0;
data/yaz-5.30.3/test/test_file_glob.c:50:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/test/test_odr.c:108:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(123);
data/yaz-5.30.3/test/test_record_conv.c:41:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/test/test_retrieval.c:36:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/test/test_rpn2cql.c:104:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/test/test_rpn2solr.c:129:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/test/test_xml_include.c:19:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/test/test_xml_include.c:69:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/test/test_xml_include.c:102:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *srcdir = getenv("srcdir");
data/yaz-5.30.3/util/benchmark.c:24:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    int random;                 /* if true, delay is random 0-specified */
data/yaz-5.30.3/ztest/read-marc.c:1654:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char *e = getenv("YAZ_ZTEST_XML_FETCH");
data/yaz-5.30.3/ztest/ztest.c:411:17:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                srand(atoi(value));
data/yaz-5.30.3/client/admin.c:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type_str[20], dir_str[1024], pattern_str[1024];
data/yaz-5.30.3/client/admin.c:212:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char fname[1024];
data/yaz-5.30.3/client/admin.c:220:51:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (S_ISREG(status.st_mode) && (inf = fopen(fname, "r")))
data/yaz-5.30.3/client/bertorture.c:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PACKET_SIZE];
data/yaz-5.30.3/client/bertorture.c:109:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            dumpfile = fopen(fname2, "w");
data/yaz-5.30.3/client/bertorture.c:125:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            int fd =open(fname, O_TRUNC|O_CREAT|O_WRONLY, 0666);
data/yaz-5.30.3/client/bertorture.c:148:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mbuf, buf+j, sizeof(buf)-j);
data/yaz-5.30.3/client/bertorture.c:190:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            start = atoi(arg);
data/yaz-5.30.3/client/bertorture.c:193:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            end = atoi(arg);
data/yaz-5.30.3/client/client.c:85:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sru_method[10] = "soap";
data/yaz-5.30.3/client/client.c:86:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sru_version[10] = "1.2";
data/yaz-5.30.3/client/client.c:87:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sru_recordPacking[10] = "";
data/yaz-5.30.3/client/client.c:103:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *databaseNames[128];
data/yaz-5.30.3/client/client.c:116:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *recordsyntax_list[RECORDSYNTAX_MAX];
data/yaz-5.30.3/client/client.c:123:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char last_scan_line[512] = "0";
data/yaz-5.30.3/client/client.c:124:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char last_scan_query[512] = "0";
data/yaz-5.30.3/client/client.c:125:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ccl_fields[512] = "default.bib";
data/yaz-5.30.3/client/client.c:127:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char cql_fields[512] = "/usr/local/share/yaz/etc/pqf.properties";
data/yaz-5.30.3/client/client.c:140:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char last_cmd[32] = "?";
data/yaz-5.30.3/client/client.c:148:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char scan_position[64];
data/yaz-5.30.3/client/client.c:237:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char fname[1024];
data/yaz-5.30.3/client/client.c:240:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            of = fopen(fname, "wb");
data/yaz-5.30.3/client/client.c:312:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            printf("\\X%02X", ((const unsigned char *)buf)[i]);
data/yaz-5.30.3/client/client.c:586:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(databaseNames[num_databaseNames], arg, cp - arg);
data/yaz-5.30.3/client/client.c:627:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        inf = fopen(fname, "rb");
data/yaz-5.30.3/client/client.c:690:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type_and_host[101];
data/yaz-5.30.3/client/client.c:891:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            printf("\\X%02X", ((const unsigned char *)buf)[i]);
data/yaz-5.30.3/client/client.c:931:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oid_name_buf[OID_STR_MAX];
data/yaz-5.30.3/client/client.c:1199:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char diag_name_buf[OID_STR_MAX];
data/yaz-5.30.3/client/client.c:1255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char names[8][32];
data/yaz-5.30.3/client/client.c:1332:50:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            nmem_strsplit(out->mem, "/", auth->u.open, &darray, &num);
data/yaz-5.30.3/client/client.c:1387:50:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            nmem_strsplit(out->mem, "/", auth->u.open, &darray, &num);
data/yaz-5.30.3/client/client.c:1537:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char setstring[100];
data/yaz-5.30.3/client/client.c:1543:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pqfbuf[512];
data/yaz-5.30.3/client/client.c:1587:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char big[2100];
data/yaz-5.30.3/client/client.c:1599:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(setstring, "%d", ++setnumber);
data/yaz-5.30.3/client/client.c:2551:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oid_str[51];
data/yaz-5.30.3/client/client.c:2597:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[12];
data/yaz-5.30.3/client/client.c:2623:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        z3950_version = atoi(arg);
data/yaz-5.30.3/client/client.c:2705:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (h, cp0, cp1 - cp0);
data/yaz-5.30.3/client/client.c:2834:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(sru_method, "soap");
data/yaz-5.30.3/client/client.c:3006:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(setstring, "%d", setnumber);
data/yaz-5.30.3/client/client.c:3066:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char setstring[100];
data/yaz-5.30.3/client/client.c:3156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char setstring[100];
data/yaz-5.30.3/client/client.c:3282:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char command[16];
data/yaz-5.30.3/client/client.c:3414:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char setstring[32];
data/yaz-5.30.3/client/client.c:3419:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(setstring, "%d", setnumber);
data/yaz-5.30.3/client/client.c:3421:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(setstring, "default");
data/yaz-5.30.3/client/client.c:3431:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(setstring, "%d", ++setnumber);
data/yaz-5.30.3/client/client.c:3454:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(last_scan_line, "%.*s", t->term->u.general->len,
data/yaz-5.30.3/client/client.c:3566:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    scan_stepSize = atoi(arg);
data/yaz-5.30.3/client/client.c:3573:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(scan_position, "none");
data/yaz-5.30.3/client/client.c:3661:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char setstring[100];
data/yaz-5.30.3/client/client.c:3686:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char form_str[41];
data/yaz-5.30.3/client/client.c:3810:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l1[30];
data/yaz-5.30.3/client/client.c:3828:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l1[30];
data/yaz-5.30.3/client/client.c:3846:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l1[30];
data/yaz-5.30.3/client/client.c:3876:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l1[30];
data/yaz-5.30.3/client/client.c:3906:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l1[30], l2[30], l3[30], l4[30];
data/yaz-5.30.3/client/client.c:3947:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[102400], *cp;
data/yaz-5.30.3/client/client.c:3955:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    includeFile = fopen(arg, "r");
data/yaz-5.30.3/client/client.c:4012:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        ber_file = fopen(arg, "a");
data/yaz-5.30.3/client/client.c:4026:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        apdu_file = fopen(arg, "a");
data/yaz-5.30.3/client/client.c:4040:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    inf = fopen(arg, "r");
data/yaz-5.30.3/client/client.c:4126:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        marc_file = fopen(arg, "a");
data/yaz-5.30.3/client/client.c:4169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oname_str[101], oclass_str[101], oid_str[101];
data/yaz-5.30.3/client/client.c:4236:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fname[1000];
data/yaz-5.30.3/client/client.c:4237:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(fname, ".yazclientrc");
data/yaz-5.30.3/client/client.c:4285:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    inf = fopen(ccl_fields, "r");
data/yaz-5.30.3/client/client.c:4761:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oidstr[101], otherinfoString[101];
data/yaz-5.30.3/client/client.c:4808:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int sec = atoi(args);
data/yaz-5.30.3/client/client.c:4827:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        i = atoi(args);
data/yaz-5.30.3/client/client.c:4835:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name_oid[OID_STR_MAX];
data/yaz-5.30.3/client/client.c:4852:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name_oid[OID_STR_MAX];
data/yaz-5.30.3/client/client.c:4896:58:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            printf("    Open string      : %s\n",auth->u.open);
data/yaz-5.30.3/client/client.c:4945:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int otherinfoNo = atoi(args);
data/yaz-5.30.3/client/client.c:4979:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int wait_for = atoi(arg);
data/yaz-5.30.3/client/client.c:5084:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char topic[21];
data/yaz-5.30.3/client/client.c:5143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char command[101], tabargument[101];
data/yaz-5.30.3/client/client.c:5176:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    cmd_array[i].local_tabcompletes = (const char **)
data/yaz-5.30.3/client/client.c:5189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char word[32], *arg;
data/yaz-5.30.3/client/client.c:5297:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char word[32];
data/yaz-5.30.3/client/client.c:5351:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[10240];
data/yaz-5.30.3/client/client.c:5401:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vstr[20], sha1_str[41];
data/yaz-5.30.3/client/client.c:5452:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(open_command, "open ");
data/yaz-5.30.3/client/client.c:5466:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                apdu_file=fopen(arg, "a");
data/yaz-5.30.3/client/client.c:5472:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                ber_file=fopen(arg, "a");
data/yaz-5.30.3/client/client.c:5485:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            kilobytes = atoi(arg);
data/yaz-5.30.3/client/client.c:5488:31:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!(marc_file = fopen(arg, "a")))
data/yaz-5.30.3/client/client.c:5508:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(auth_command, "auth ");
data/yaz-5.30.3/client/fhistory.c:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[1024];
data/yaz-5.30.3/client/fhistory.c:62:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(fname, "r");
data/yaz-5.30.3/client/fhistory.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[1024];
data/yaz-5.30.3/client/fhistory.c:88:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(fname, "w");
data/yaz-5.30.3/include/yaz/backend.h:336:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char apdufile[BEND_NAME_MAX]; /**< file for pretty-printed PDUs */
data/yaz-5.30.3/include/yaz/backend.h:337:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char logfile[BEND_NAME_MAX];  /**< file for diagnostic output */
data/yaz-5.30.3/include/yaz/backend.h:341:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char configname[BEND_NAME_MAX]; /**< given to the backend in bend_init */
data/yaz-5.30.3/include/yaz/backend.h:342:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char setuid[BEND_NAME_MAX];   /**< setuid to this user after binding */
data/yaz-5.30.3/include/yaz/backend.h:347:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char daemon_name[BEND_NAME_MAX];
data/yaz-5.30.3/include/yaz/backend.h:356:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char service_name[BEND_NAME_MAX];/**< NT Service Name */
data/yaz-5.30.3/include/yaz/backend.h:357:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char app_name[BEND_NAME_MAX];  /**< Application Name */
data/yaz-5.30.3/include/yaz/backend.h:358:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char service_dependencies[BEND_NAME_MAX];
data/yaz-5.30.3/include/yaz/backend.h:359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char service_display_name[BEND_NAME_MAX];
data/yaz-5.30.3/include/yaz/backend.h:361:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pid_fname[BEND_NAME_MAX]; /**< pid fname */
data/yaz-5.30.3/include/yaz/backend.h:363:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cert_fname[BEND_NAME_MAX];/**< SSL certificate fname */
data/yaz-5.30.3/include/yaz/backend.h:364:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char xml_config[BEND_NAME_MAX];/**< XML config filename */
data/yaz-5.30.3/include/yaz/dirent.h:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char d_name[MAX_PATH];
data/yaz-5.30.3/include/yaz/facet.h:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char useattrbuff[30]; /* for converting numbers to strings */
data/yaz-5.30.3/include/yaz/odr.h:113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bits[ODR_BITMASK_SIZE];
data/yaz-5.30.3/include/yaz/z-core.h:400:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		char *open;
data/yaz-5.30.3/src/backtrace.c:41:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char static_progname[256];
data/yaz-5.30.3/src/backtrace.c:64:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *arg[20];
data/yaz-5.30.3/src/backtrace.c:66:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char pidstr[40];
data/yaz-5.30.3/src/backtrace.c:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/yaz-5.30.3/src/backtrace.c:157:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf, "\nYAZ panic received ");
data/yaz-5.30.3/src/backtrace.c:161:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(buf, "SIGSEGV");
data/yaz-5.30.3/src/backtrace.c:164:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(buf, "SIGABRT");
data/yaz-5.30.3/src/backtrace.c:167:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(buf, "SIGFPE");
data/yaz-5.30.3/src/backtrace.c:170:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(buf, "SIGBUS");
data/yaz-5.30.3/src/base64.c:20:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[3];
data/yaz-5.30.3/src/ber_any.c:34:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((*p)->buf, o->op->bp, res);
data/yaz-5.30.3/src/ber_bit.c:62:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p->bits + p->top + 1, o->op->bp, len);
data/yaz-5.30.3/src/ber_int.c:64:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char tmp[sizeof(uval)];
data/yaz-5.30.3/src/ber_len.c:32:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char octs[sizeof(int)];
data/yaz-5.30.3/src/ber_oid.c:23:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char octs[8];
data/yaz-5.30.3/src/ber_tag.c:126:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char octs[sizeof(int)], b;
data/yaz-5.30.3/src/ccl_stop_words.c:43:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(csi->term, t, len);
data/yaz-5.30.3/src/cclfind.c:90:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(str, tp->name, tp->len);
data/yaz-5.30.3/src/cclfind.c:322:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(dst_term, ".*");
data/yaz-5.30.3/src/cclfind.c:382:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *t_default[2];
data/yaz-5.30.3/src/cclfind.c:384:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *m_default[2];
data/yaz-5.30.3/src/cclfind.c:1112:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p_prox->u.t.term, cclp->look_token->name,
data/yaz-5.30.3/src/cclptree.c:107:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tmpattr[128];
data/yaz-5.30.3/src/cclptree.c:117:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(tmpattr, "%d=%d ", att->type, att->value.numeric);
data/yaz-5.30.3/src/cclptree.c:121:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(tmpattr, "%d=", att->type);
data/yaz-5.30.3/src/cclqfile.c:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *svalue_ar[MAX_QUAL];
data/yaz-5.30.3/src/cclqfile.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *attsets[MAX_QUAL];
data/yaz-5.30.3/src/cclqfile.c:84:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char *qlist[10];
data/yaz-5.30.3/src/cclqfile.c:192:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                value_ar[pair_no] = atoi (value_str);
data/yaz-5.30.3/src/cclqfile.c:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/yaz-5.30.3/src/cclqfile.c:276:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(line, cp1, len);
data/yaz-5.30.3/src/cclqfile.c:289:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char qual_name[128];
data/yaz-5.30.3/src/cclqfile.c:318:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/yaz-5.30.3/src/cclqfile.c:327:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    inf = fopen (fname, "r");
data/yaz-5.30.3/src/cclqual.c:351:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case_sensitive = atoi(aliases[0]);
data/yaz-5.30.3/src/cclqual.c:419:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char qname_buf[80];
data/yaz-5.30.3/src/ccltoken.c:33:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case_sensitive = atoi(aliases[0]);
data/yaz-5.30.3/src/ccltoken.c:241:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            xfree((char *) a[i]);
data/yaz-5.30.3/src/charneg.c:80:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oidname[28];
data/yaz-5.30.3/src/charneg.c:86:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(oidname, "1.0.10646.1.0.%d", form);
data/yaz-5.30.3/src/charneg.c:135:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            p->proposedlanguages[i] = (char *)langs[i];
data/yaz-5.30.3/src/charneg.c:210:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oidname[28];
data/yaz-5.30.3/src/charneg.c:216:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(oidname, "1.0.10646.1.0.%d", form);
data/yaz-5.30.3/src/charneg.c:351:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy((*charsets)[i], pext->u.octet_aligned->buf,
data/yaz-5.30.3/src/charneg.c:401:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*charset, pext->u.octet_aligned->buf,
data/yaz-5.30.3/src/comstack.c:93:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*connect_host, uri, len);
data/yaz-5.30.3/src/comstack.c:108:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*connect_host, uri, len);
data/yaz-5.30.3/src/cookie.c:116:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, "; ");
data/yaz-5.30.3/src/cql.c:1017:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/yaz-5.30.3/src/cql.c:1217:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/yaz-5.30.3/src/cql.c:1901:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(nb, lval->buf, lval->len);
data/yaz-5.30.3/src/cql2ccl.c:31:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char x[4];
data/yaz-5.30.3/src/cql2ccl.c:198:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        distance = atoi(n->u.st.term);
data/yaz-5.30.3/src/cql2ccl.c:200:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            distance = atoi(n->u.st.term) - 1;
data/yaz-5.30.3/src/cql2ccl.c:218:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char x[40];
data/yaz-5.30.3/src/cql2ccl.c:219:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(x, "%d", distance);
data/yaz-5.30.3/src/cql_sortkeys.c:23:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[4];
data/yaz-5.30.3/src/cql_sortkeys.c:36:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tmp, buf, left);
data/yaz-5.30.3/src/cqltransform.c:145:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                nmem_intdup(ct->nmem, atoi(value_str));
data/yaz-5.30.3/src/cqltransform.c:186:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy((*pp)->attr_list.attributes, ae,
data/yaz-5.30.3/src/cqltransform.c:218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/yaz-5.30.3/src/cqltransform.c:279:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen(fname, "r");
data/yaz-5.30.3/src/cqltransform.c:367:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pattern[120];
data/yaz-5.30.3/src/cqltransform.c:371:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(pattern, "%.39s.%.39s.%.39s", pat1, pat2, pat3);
data/yaz-5.30.3/src/cqltransform.c:373:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(pattern, "%.39s.%.39s", pat1, pat2);
data/yaz-5.30.3/src/cqltransform.c:375:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(pattern, "%.39s.%.39s", pat1, pat3);
data/yaz-5.30.3/src/cqltransform.c:377:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(pattern, "%.39s", pat1);
data/yaz-5.30.3/src/cqltransform.c:434:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/yaz-5.30.3/src/cqltransform.c:444:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, cp0, cp1 - cp0);
data/yaz-5.30.3/src/cqltransform.c:454:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char tmp[2];
data/yaz-5.30.3/src/cqltransform.c:490:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[21];              /* enough characters to 2^64 */
data/yaz-5.30.3/src/cqltransform.c:491:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%d", val);
data/yaz-5.30.3/src/cqltransform.c:735:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char x[2]; /* temp buffer */
data/yaz-5.30.3/src/cqltransform.c:772:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char x[2];
data/yaz-5.30.3/src/cqltransform.c:1017:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char numbuf[30];
data/yaz-5.30.3/src/cqltransform.c:1018:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(numbuf, "%ld", (long) info.max);
data/yaz-5.30.3/src/daemon.c:49:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[40];
data/yaz-5.30.3/src/daemon.c:238:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        pid_fd = open(pidfile, O_CREAT|O_RDWR, 0666);
data/yaz-5.30.3/src/daemon.c:307:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char dummy[1];
data/yaz-5.30.3/src/daemon.c:328:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open("/dev/null", O_RDWR);
data/yaz-5.30.3/src/dirent.c:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullName[MAX_PATH+1];
data/yaz-5.30.3/src/dirent.c:39:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(fullName, "\\*.*");
data/yaz-5.30.3/src/dumpber.c:22:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char level_str[80];
data/yaz-5.30.3/src/file_glob.c:67:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(prefix + prefix_len, pattern + off, i - off);
data/yaz-5.30.3/src/file_glob.c:89:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(prefix + prefix_len, pattern + off, i - off);
data/yaz-5.30.3/src/file_glob.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prefix[FILENAME_MAX+1];
data/yaz-5.30.3/src/grs1disp.c:85:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char oid_name_str[OID_STR_MAX];
data/yaz-5.30.3/src/http.c:118:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (*content_buf + off, buf + i, chunk_len);
data/yaz-5.30.3/src/http.c:183:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf, "Basic ");
data/yaz-5.30.3/src/http.c:322:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p->u.HTTP_Request->path, uri, cp1 - uri);
data/yaz-5.30.3/src/http.c:369:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(hres->content_buf + strlen(hres->content_buf),
data/yaz-5.30.3/src/http.c:582:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sbuf[80];
data/yaz-5.30.3/src/http.c:591:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf, "Content-Length: %d\r\n", hr->content_len);
data/yaz-5.30.3/src/http.c:635:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char lstr[60];
data/yaz-5.30.3/src/http.c:636:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(lstr, "Content-Length: %d\r\n",
data/yaz-5.30.3/src/iconv_encode_danmarc.c:79:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(*outbuf, "@%04lX", x);
data/yaz-5.30.3/src/iconv_encode_marc8.c:70:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char utf8_buf[7];
data/yaz-5.30.3/src/iconv_encode_marc8.c:257:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(*outbuf, page_out, plen);
data/yaz-5.30.3/src/iconv_encode_marc8.c:266:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*outbuf, page_out, plen);
data/yaz-5.30.3/src/iconv_encode_wchar.c:39:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(outp, &wch, sizeof(wch));
data/yaz-5.30.3/src/ill-get.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:33:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        val = atoi(v);
data/yaz-5.30.3/src/ill-get.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:55:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        val = atoi(v);
data/yaz-5.30.3/src/ill-get.c:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:211:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:256:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:298:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:320:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:365:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:388:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:419:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:440:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:460:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:482:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:549:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:616:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:645:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[128];
data/yaz-5.30.3/src/ill-get.c:649:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(element, ",which");
data/yaz-5.30.3/src/initopt.c:52:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char this_opt[42];
data/yaz-5.30.3/src/iso5426.c:12:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char from[6];
data/yaz-5.30.3/src/json.c:198:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char out[6];
data/yaz-5.30.3/src/json.c:218:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char out[6];
data/yaz-5.30.3/src/json.c:221:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst, out, l);
data/yaz-5.30.3/src/json.c:333:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tok[8];
data/yaz-5.30.3/src/log.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l_prefix[512];
data/yaz-5.30.3/src/log.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l_prefix2[512];
data/yaz-5.30.3/src/log.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char l_fname[512];
data/yaz-5.30.3/src/log.c:67:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char l_custom_format[TIMEFORMAT_LEN] = "";
data/yaz-5.30.3/src/log.c:198:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fname_str[FILENAME_MAX];
data/yaz-5.30.3/src/log.c:207:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fname_str[2][FILENAME_MAX];
data/yaz-5.30.3/src/log.c:316:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char new_filename[512];
data/yaz-5.30.3/src/log.c:317:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char cur_filename[512] = "";
data/yaz-5.30.3/src/log.c:354:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            new_file = fdopen(atoi(cur_filename + 3), filemode);
data/yaz-5.30.3/src/log.c:356:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            new_file = fopen(cur_filename, filemode);
data/yaz-5.30.3/src/log.c:433:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tbuf[TIMEFORMAT_LEN];
data/yaz-5.30.3/src/log.c:434:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tid[TID_LEN];
data/yaz-5.30.3/src/log.c:435:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char flags[1024];
data/yaz-5.30.3/src/log.c:505:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/yaz-5.30.3/src/log.c:509:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(buf, " [rest of output omitted]");
data/yaz-5.30.3/src/log.c:587:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char clean[255];
data/yaz-5.30.3/src/log.c:628:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            level = atoi(str);
data/yaz-5.30.3/src/log.c:632:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char clean[509];
data/yaz-5.30.3/src/logrpn.c:47:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "use");
data/yaz-5.30.3/src/logrpn.c:60:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "position=First in field");
data/yaz-5.30.3/src/logrpn.c:63:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "position=First in any subfield");
data/yaz-5.30.3/src/logrpn.c:66:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "position=Any position in field");
data/yaz-5.30.3/src/logrpn.c:69:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "position");
data/yaz-5.30.3/src/logrpn.c:76:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Phrase");
data/yaz-5.30.3/src/logrpn.c:79:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Word");
data/yaz-5.30.3/src/logrpn.c:82:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Key");
data/yaz-5.30.3/src/logrpn.c:85:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Year");
data/yaz-5.30.3/src/logrpn.c:88:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Date");
data/yaz-5.30.3/src/logrpn.c:91:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Word list");
data/yaz-5.30.3/src/logrpn.c:94:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Date (un)");
data/yaz-5.30.3/src/logrpn.c:97:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Name (norm)");
data/yaz-5.30.3/src/logrpn.c:100:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Name (un)");
data/yaz-5.30.3/src/logrpn.c:103:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=Structure");
data/yaz-5.30.3/src/logrpn.c:106:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=urx");
data/yaz-5.30.3/src/logrpn.c:109:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=free-form-text");
data/yaz-5.30.3/src/logrpn.c:112:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=document-text");
data/yaz-5.30.3/src/logrpn.c:115:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=local-number");
data/yaz-5.30.3/src/logrpn.c:118:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=string");
data/yaz-5.30.3/src/logrpn.c:121:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure=numeric string");
data/yaz-5.30.3/src/logrpn.c:124:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "structure");
data/yaz-5.30.3/src/logrpn.c:131:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=Right");
data/yaz-5.30.3/src/logrpn.c:134:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=Left");
data/yaz-5.30.3/src/logrpn.c:137:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=Left&right");
data/yaz-5.30.3/src/logrpn.c:140:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=Do not truncate");
data/yaz-5.30.3/src/logrpn.c:143:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=Process #");
data/yaz-5.30.3/src/logrpn.c:146:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=re-1");
data/yaz-5.30.3/src/logrpn.c:149:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=re-2");
data/yaz-5.30.3/src/logrpn.c:152:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation=CCL");
data/yaz-5.30.3/src/logrpn.c:155:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "truncation");
data/yaz-5.30.3/src/logrpn.c:162:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "completeness=Incomplete subfield");
data/yaz-5.30.3/src/logrpn.c:165:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "completeness=Complete subfield");
data/yaz-5.30.3/src/logrpn.c:168:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "completeness=Complete field");
data/yaz-5.30.3/src/logrpn.c:171:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "completeness");
data/yaz-5.30.3/src/logrpn.c:176:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str + strlen(str), " (" ODR_INT_PRINTF "=" ODR_INT_PRINTF")",
data/yaz-5.30.3/src/logrpn.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[80];
data/yaz-5.30.3/src/logrpn.c:194:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char attset_name_buf[OID_STR_MAX];
data/yaz-5.30.3/src/marc8.c:12:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char from[6];
data/yaz-5.30.3/src/marc8r.c:12:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char from[6];
data/yaz-5.30.3/src/marc_read_iso2709.c:126:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tag[4];
data/yaz-5.30.3/src/marc_read_iso2709.c:130:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (tag, buf+entry_p, 3);
data/yaz-5.30.3/src/marc_read_line.c:150:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tag[4];
data/yaz-5.30.3/src/marc_read_line.c:155:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tag, line, 3);
data/yaz-5.30.3/src/marc_read_xml.c:116:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char attrname[16];
data/yaz-5.30.3/src/marc_read_xml.c:257:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char indstr[48];
data/yaz-5.30.3/src/marcdisp.c:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char subfield_str[8];
data/yaz-5.30.3/src/marcdisp.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endline_str[8];
data/yaz-5.30.3/src/marcdisp.c:112:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(mt->subfield_str, " $");
data/yaz-5.30.3/src/marcdisp.c:191:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200];
data/yaz-5.30.3/src/marcdisp.c:222:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[80];
data/yaz-5.30.3/src/marcdisp.c:224:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "controlfield:");
data/yaz-5.30.3/src/marcdisp.c:226:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(msg + strlen(msg), " %02X", data[i] & 0xff);
data/yaz-5.30.3/src/marcdisp.c:228:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(msg + strlen(msg), " ..");
data/yaz-5.30.3/src/marcdisp.c:322:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[80];
data/yaz-5.30.3/src/marcdisp.c:324:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "subfield:");
data/yaz-5.30.3/src/marcdisp.c:326:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(msg + strlen(msg), " %02X", code_data[i] & 0xff);
data/yaz-5.30.3/src/marcdisp.c:328:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(msg + strlen(msg), " ..");
data/yaz-5.30.3/src/marcdisp.c:364:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char leader[24];
data/yaz-5.30.3/src/marcdisp.c:366:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(leader, leader_c, 24);
data/yaz-5.30.3/src/marcdisp.c:452:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char outbuf[12];
data/yaz-5.30.3/src/marcdisp.c:645:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *record_name[2]  	= { "record", "r"};
data/yaz-5.30.3/src/marcdisp.c:646:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *leader_name[2]  	= { "leader", "l"};
data/yaz-5.30.3/src/marcdisp.c:647:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *controlfield_name[2] = { "controlfield", "c"};
data/yaz-5.30.3/src/marcdisp.c:648:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *datafield_name[2]  	= { "datafield", "d"};
data/yaz-5.30.3/src/marcdisp.c:649:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *indicator_name[2]  	= { "ind", "i"};
data/yaz-5.30.3/src/marcdisp.c:650:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *subfield_name[2]  	= { "subfield", "s"};
data/yaz-5.30.3/src/marcdisp.c:892:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char ind_val[10];
data/yaz-5.30.3/src/marcdisp.c:895:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ind_str[12];
data/yaz-5.30.3/src/marcdisp.c:897:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(ind_val, n->u.datafield.indicator + off, ilen);
data/yaz-5.30.3/src/marcdisp.c:917:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char field[10];
data/yaz-5.30.3/src/marcdisp.c:991:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char field[10];
data/yaz-5.30.3/src/marcdisp.c:1402:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(leader+off, str, strlen(str));
data/yaz-5.30.3/src/marcdisp.c:1413:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char dummy_leader[24];
data/yaz-5.30.3/src/marcdisp.c:1426:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char val[21];
data/yaz-5.30.3/src/marcdisp.c:1446:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(leader + pos, val+1, len);
data/yaz-5.30.3/src/marcdisp.c:1450:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int ch = atoi(val);
data/yaz-5.30.3/src/nmemsdup.c:36:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst, src, n);
data/yaz-5.30.3/src/odr-priv.h:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char element[80];
data/yaz-5.30.3/src/odr.c:140:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned c = ((const unsigned char *) buf)[i];
data/yaz-5.30.3/src/odr.c:150:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char x[5];
data/yaz-5.30.3/src/odr.c:151:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(x, "\\X%02X", c);
data/yaz-5.30.3/src/odr.c:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/yaz-5.30.3/src/odr_choice.c:72:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    return (*arm[i].fun)(o, (char **)p, 0, arm[i].name);
data/yaz-5.30.3/src/odr_choice.c:77:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                return (*arm[i].fun)(o, (char **)p, 0, arm[i].name) &&
data/yaz-5.30.3/src/odr_choice.c:83:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            if ((*arm[i].fun)(o, (char **)p, 1, arm[i].name) && *(char**)p)
data/yaz-5.30.3/src/odr_cons.c:91:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char dummy[sizeof(int)+1];
data/yaz-5.30.3/src/odr_mem.c:110:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(o->op->buf + o->op->pos, buf, bytes);
data/yaz-5.30.3/src/odr_seq.c:97:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(tmp, *pp, *num * sizeof(void*));
data/yaz-5.30.3/src/oid_util.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpbuf[20];
data/yaz-5.30.3/src/pquery.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/yaz-5.30.3/src/pquery.c:46:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, li->lex_buf, li->lex_len);
data/yaz-5.30.3/src/pquery.c:150:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char s[4];
data/yaz-5.30.3/src/pquery.c:166:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char s[4];
data/yaz-5.30.3/src/pquery.c:265:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(attr_tmp, attr_list, num_attr * 2 * sizeof(*attr_tmp));
data/yaz-5.30.3/src/pquery.c:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *attr_clist[1];
data/yaz-5.30.3/src/pquery.c:486:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        p->which = atoi(li->lex_buf);
data/yaz-5.30.3/src/pquery.c:652:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *attr_clist[512];
data/yaz-5.30.3/src/pquery.c:718:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *attr_clist[512];
data/yaz-5.30.3/src/prt-ext.c:321:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sutrs->buf, buf, len);
data/yaz-5.30.3/src/prt-ext.c:332:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(thisext->u.octet_aligned->buf, buf, len);
data/yaz-5.30.3/src/prt-ext.c:363:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(thisext->u.single_ASN1_type->buf, buf, len);
data/yaz-5.30.3/src/query-charset.c:38:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*buf_out, wrbuf_buf(wrbuf), *len_out);
data/yaz-5.30.3/src/querytowrbuf.c:58:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oid_name_str[OID_STR_MAX];
data/yaz-5.30.3/src/querytowrbuf.c:203:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oid_name_str[OID_STR_MAX];
data/yaz-5.30.3/src/readconf.c:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[512], *m_argv[50];
data/yaz-5.30.3/src/readconf.c:67:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(f = fopen(name, "r")))
data/yaz-5.30.3/src/record_conv.c:207:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fullpath[1024];
data/yaz-5.30.3/src/record_conv.c:699:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *keys[RDF_LOOKUP_MAX_KEYS];
data/yaz-5.30.3/src/record_conv.c:814:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            debug = atoi((const char *) attr->children->content);
data/yaz-5.30.3/src/record_conv.c:819:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            timeout = atoi((const char *) attr->children->content);
data/yaz-5.30.3/src/record_conv.c:1201:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r->type, t, sizeof(*t));
data/yaz-5.30.3/src/record_render.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char charset_buf[40];
data/yaz-5.30.3/src/record_render.c:363:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[40];
data/yaz-5.30.3/src/record_render.c:364:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char charset[40];
data/yaz-5.30.3/src/record_render.c:365:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char format[3];
data/yaz-5.30.3/src/record_render.c:495:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(type_spec, "; charset=");
data/yaz-5.30.3/src/retrieval.c:391:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[OID_STR_MAX];
data/yaz-5.30.3/src/rpn2cql.c:317:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[21]; /* Enough for any 64-bit int */
data/yaz-5.30.3/src/rpn2cql.c:318:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char *op2name[6] = { "<", "<=", "=", ">=", ">","<>" };
data/yaz-5.30.3/src/rpn2cql.c:328:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buf, "%ld", (long) *prox->distance);
data/yaz-5.30.3/src/sc.c:256:13:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            TCHAR szPath[2048];
data/yaz-5.30.3/src/sc.c:259:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cwdstr[_MAX_PATH];
data/yaz-5.30.3/src/seshigh.c:180:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char filename[256];
data/yaz-5.30.3/src/seshigh.c:181:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(filename, "%.200s.%ld", apdufile, (long)getpid());
data/yaz-5.30.3/src/seshigh.c:182:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!(f = fopen(filename, "w")))
data/yaz-5.30.3/src/seshigh.c:525:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(assoc->init->peer_name, ", ");
data/yaz-5.30.3/src/seshigh.c:559:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            strcpy(auth->u.open, sr->username);
data/yaz-5.30.3/src/seshigh.c:562:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                strcat(auth->u.open, "/");
data/yaz-5.30.3/src/seshigh.c:563:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                strcat(auth->u.open, sr->password);
data/yaz-5.30.3/src/seshigh.c:643:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char oidbuf[OID_STR_MAX];
data/yaz-5.30.3/src/seshigh.c:705:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(rr->record, wrbuf_buf(output_record), rr->len);
data/yaz-5.30.3/src/seshigh.c:838:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char out[100];
data/yaz-5.30.3/src/seshigh.c:899:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(result, rpn->RPNStructure->u.simple->u.attributesPlusTerm,
data/yaz-5.30.3/src/seshigh.c:1265:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(content, buf_out, len);
data/yaz-5.30.3/src/seshigh.c:1771:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    inf = fopen(fname, "rb");
data/yaz-5.30.3/src/seshigh.c:1966:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char ctype[80];
data/yaz-5.30.3/src/seshigh.c:1982:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(ctype, "text/xml");
data/yaz-5.30.3/src/seshigh.c:2022:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            t = atoi(alive);
data/yaz-5.30.3/src/seshigh.c:2217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char options[140];
data/yaz-5.30.3/src/seshigh.c:2303:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, "srch");
data/yaz-5.30.3/src/seshigh.c:2308:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, " prst");
data/yaz-5.30.3/src/seshigh.c:2314:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, " del");
data/yaz-5.30.3/src/seshigh.c:2320:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, " extendedServices");
data/yaz-5.30.3/src/seshigh.c:2326:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, " namedresults");
data/yaz-5.30.3/src/seshigh.c:2331:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, " scan");
data/yaz-5.30.3/src/seshigh.c:2336:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, " concurrop");
data/yaz-5.30.3/src/seshigh.c:2341:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(options, " sort");
data/yaz-5.30.3/src/seshigh.c:2368:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(options, " negotiation");
data/yaz-5.30.3/src/seshigh.c:2432:57:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            const char *open = req->idAuthentication->u.open;
data/yaz-5.30.3/src/seshigh.c:2433:40:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            const char *slash = strchr(open, '/');
data/yaz-5.30.3/src/seshigh.c:2436:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                len = slash - open;
data/yaz-5.30.3/src/seshigh.c:2438:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                len = strlen(open);
data/yaz-5.30.3/src/seshigh.c:2439:57:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            yaz_log(log_request, "Auth open %.*s", len, open);
data/yaz-5.30.3/src/seshigh.c:2589:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char s[20];
data/yaz-5.30.3/src/seshigh.c:2596:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(s, "%d", recno);
data/yaz-5.30.3/src/seshigh.c:3458:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oidname_buf[OID_STR_MAX];
data/yaz-5.30.3/src/soap.c:297:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*content_buf, buf_out, len_out);
data/yaz-5.30.3/src/sortspec.c:25:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sort_string_buf[64], sort_flags[64];
data/yaz-5.30.3/src/sortspec.c:67:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                el->attributeType = odr_intdup(out, atoi(sort_string));
data/yaz-5.30.3/src/sortspec.c:354:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ascending = atoi(arg[2]);
data/yaz-5.30.3/src/sortspec.c:356:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            case_sensitive = atoi(arg[3]);
data/yaz-5.30.3/src/spipe.c:182:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&add.sin_addr.s_addr, &tmpadd, sizeof(struct in_addr));
data/yaz-5.30.3/src/sru_facet.c:103:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tmp[32];
data/yaz-5.30.3/src/sru_facet.c:104:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(tmp, "%d,", general_limit);
data/yaz-5.30.3/src/sru_facet.c:114:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tmp[32];
data/yaz-5.30.3/src/sru_facet.c:115:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(tmp, "%d", general_start);
data/yaz-5.30.3/src/sru_facet.c:140:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char tmp[40];
data/yaz-5.30.3/src/sru_facet.c:144:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(tmp, "@attr 3=%d", val);
data/yaz-5.30.3/src/srw.c:108:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*extra, &ex, sizeof(Z_SRW_extra_record));
data/yaz-5.30.3/src/srw.c:468:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    int no = atoi((*recs)[i].uri + strlen(std_diag));
data/yaz-5.30.3/src/srw.c:475:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    int no = atoi((*recs)[i].uri + strlen(ucp_diag));
data/yaz-5.30.3/src/srwutil.c:44:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[32];
data/yaz-5.30.3/src/srwutil.c:123:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char out[256];
data/yaz-5.30.3/src/srwutil.c:124:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char ubuf[256] = "", pbuf[256] = "", *p;
data/yaz-5.30.3/src/srwutil.c:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uri[40];
data/yaz-5.30.3/src/srwutil.c:167:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(uri, "info:srw/diagnostic/1/%d", code);
data/yaz-5.30.3/src/srwutil.c:178:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(d_new, *d, *num *sizeof(**d));
data/yaz-5.30.3/src/srwutil.c:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uri[40];
data/yaz-5.30.3/src/srwutil.c:190:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(uri, "info:srw/diagnostic/1/%d", code);
data/yaz-5.30.3/src/srwutil.c:198:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char uri[40];
data/yaz-5.30.3/src/srwutil.c:200:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(uri, "info:srw/diagnostic/12/%d", code);
data/yaz-5.30.3/src/srwutil.c:217:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(record->recordData_buf, "<diagnostic "
data/yaz-5.30.3/src/srwutil.c:226:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(record->recordData_buf + strlen(record->recordData_buf),
data/yaz-5.30.3/src/srwutil.c:1108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *name[MAX_SRU_PARAMETERS], *value[MAX_SRU_PARAMETERS]; /* definite upper limit for SRU params */
data/yaz-5.30.3/src/srwutil.c:1140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *name[MAX_SRU_PARAMETERS], *value[MAX_SRU_PARAMETERS]; /* definite upper limit for SRU params */
data/yaz-5.30.3/src/statserv.c:71:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char gfs_root_dir[FILENAME_MAX+1];
data/yaz-5.30.3/src/statserv.c:219:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&n->cb, &control_block, sizeof(control_block));
data/yaz-5.30.3/src/statserv.c:269:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vhost[128], *cp;
data/yaz-5.30.3/src/statserv.c:432:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char fpath[1024];
data/yaz-5.30.3/src/statserv.c:442:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char fpath[1024];
data/yaz-5.30.3/src/statserv.c:457:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char *fname, fpath[1024];
data/yaz-5.30.3/src/statserv.c:464:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    if ((f = fopen(fname, "r")) == 0) {
data/yaz-5.30.3/src/statserv.c:484:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfs->cb.maxrecordsize = atoi(
data/yaz-5.30.3/src/statserv.c:991:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char nbuf[100];
data/yaz-5.30.3/src/statserv.c:1274:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vstr[20], sha1_str[41];
data/yaz-5.30.3/src/statserv.c:1431:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (!arg || !(r = atoi(arg)))
data/yaz-5.30.3/src/statserv.c:1439:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (!arg || !(r = atoi(arg)))
data/yaz-5.30.3/src/statserv.c:1460:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            max_sessions = atoi(arg);
data/yaz-5.30.3/src/statserv.c:1477:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (!arg || !(r = atoi(arg)))
data/yaz-5.30.3/src/tcpip.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128]; /* returned by cs_addrstr */
data/yaz-5.30.3/src/tcpip.c:133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cert_fname[256];
data/yaz-5.30.3/src/tcpip.c:191:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(sp->cert_fname, "yaz.pem");
data/yaz-5.30.3/src/tcpip.c:259:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(sp->bind_host, ":0");
data/yaz-5.30.3/src/tcpip.c:261:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(cp, ":0");
data/yaz-5.30.3/src/tcpip.c:268:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(sp->connect_request_buf, "CONNECT ");
data/yaz-5.30.3/src/tcpip.c:273:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(sp->connect_request_buf, " HTTP/1.0\r\n");
data/yaz-5.30.3/src/tcpip.c:276:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(sp->connect_request_buf, "Proxy-Authorization: Basic ");
data/yaz-5.30.3/src/tcpip.c:279:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(sp->connect_request_buf, "\r\n");
data/yaz-5.30.3/src/tcpip.c:281:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(sp->connect_request_buf, "\r\n");
data/yaz-5.30.3/src/tcpip.c:419:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[512];
data/yaz-5.30.3/src/tcpip.c:777:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[512];
data/yaz-5.30.3/src/tcpip.c:925:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(raddr, &addr, *addrlen = sizeof(struct sockaddr_in));
data/yaz-5.30.3/src/tcpip.c:961:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cnew, h, sizeof(*h));
data/yaz-5.30.3/src/tcpip.c:1197:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sp->altbuf, *buf + berlen, sp->altlen = tomove);
data/yaz-5.30.3/src/tcpip.c:1359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[120];
data/yaz-5.30.3/src/tcpip.c:1432:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char printable[110];
data/yaz-5.30.3/src/tcpip.c:1441:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(print, "%.2x ", _bin[i]);
data/yaz-5.30.3/src/tcpip.c:1451:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char serial[40];
data/yaz-5.30.3/src/tcpip.c:1452:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dn[256];
data/yaz-5.30.3/src/test.c:69:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                test_fout = fopen(argv[i], "w");
data/yaz-5.30.3/src/test.c:75:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                test_verbose = atoi(argv[i]);
data/yaz-5.30.3/src/test.c:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char logfilename[2048];
data/yaz-5.30.3/src/test.c:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char formstr[2048];
data/yaz-5.30.3/src/test.c:173:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(formstr, "%.500s == %.500s ", left, right);
data/yaz-5.30.3/src/test.c:175:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(formstr, "%.500s != %.500s\n %d != %d", left, right, lval,rval);
data/yaz-5.30.3/src/thread_id.c:44:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf + strlen(buf), "%02x", ((const unsigned char *) &t)[i]);
data/yaz-5.30.3/src/tpath.c:103:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(fullpath+slen, comp, len);
data/yaz-5.30.3/src/tpath.c:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullpath[1024];
data/yaz-5.30.3/src/tpath.c:124:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(fullpath, mode);
data/yaz-5.30.3/src/unix.c:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128]; /* returned by cs_addrstr */
data/yaz-5.30.3/src/unix.c:213:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    sp->uid = atoi(arg);
data/yaz-5.30.3/src/unix.c:232:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    sp->gid = atoi(arg);
data/yaz-5.30.3/src/unix.c:482:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(raddr, &addr, *addrlen = sizeof(struct sockaddr_un));
data/yaz-5.30.3/src/unix.c:504:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cnew, h, sizeof(*h));
data/yaz-5.30.3/src/unix.c:639:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sp->altbuf, *buf + berlen, sp->altlen = tomove);
data/yaz-5.30.3/src/uri.c:41:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(dst+1, "%02X", (unsigned char ) ch);
data/yaz-5.30.3/src/uri.c:111:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*path+szp, name[i], ilen);
data/yaz-5.30.3/src/url.c:110:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(*uri_lean, uri, cp1 + 3 - uri);
data/yaz-5.30.3/src/wrbuf.c:74:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(b->buf + b->pos, buf, size);
data/yaz-5.30.3/src/wrbuf.c:85:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(b->buf + pos, buf, size);
data/yaz-5.30.3/src/wrbuf.c:181:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/yaz-5.30.3/src/wrbuf.c:197:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char outbuf[128];
data/yaz-5.30.3/src/wrbuf.c:242:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1];
data/yaz-5.30.3/src/wrbuf.c:272:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char outbuf[16];
data/yaz-5.30.3/src/wrbuf_sha1.c:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[64];
data/yaz-5.30.3/src/wrbuf_sha1.c:67:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64])
data/yaz-5.30.3/src/wrbuf_sha1.c:71:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char c[64];
data/yaz-5.30.3/src/wrbuf_sha1.c:76:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(block, buffer, 64);
data/yaz-5.30.3/src/wrbuf_sha1.c:153:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->buffer[j], data, (i = 64-j));
data/yaz-5.30.3/src/wrbuf_sha1.c:161:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&context->buffer[j], &data[i], len - i);
data/yaz-5.30.3/src/wrbuf_sha1.c:167:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void SHA1Final(unsigned char digest[20], SHA1_CTX* context)
data/yaz-5.30.3/src/wrbuf_sha1.c:170:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char finalcount[8];
data/yaz-5.30.3/src/wrbuf_sha1.c:196:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[20];
data/yaz-5.30.3/src/xcqlutil.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bf[2];
data/yaz-5.30.3/src/xcqlutil.c:260:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (info->buf + info->off, b, l);
data/yaz-5.30.3/src/xmalloc.c:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[16];
data/yaz-5.30.3/src/xmalloc.c:74:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(res + sizeof(*dinfo), head, 8*sizeof(char));
data/yaz-5.30.3/src/xmalloc.c:76:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(res + nbytes, tail, 8*sizeof(char));
data/yaz-5.30.3/src/xmalloc.c:104:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*) ptr - 8*sizeof(char), freed, 8*sizeof(char));
data/yaz-5.30.3/src/xmalloc.c:171:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(res + sizeof(*dinfo), head, 8*sizeof(char));
data/yaz-5.30.3/src/xmalloc.c:173:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(res + nbytes, tail, 8*sizeof(char));
data/yaz-5.30.3/src/xmalloc.c:203:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(res + sizeof(*dinfo), head, 8*sizeof(char));
data/yaz-5.30.3/src/xmalloc.c:205:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(res + nbytes, tail, 8*sizeof(char));
data/yaz-5.30.3/src/xmalloc.c:357:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a, s, n);
data/yaz-5.30.3/src/xml_add.c:71:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char str[40];
data/yaz-5.30.3/src/xmlerror.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/yaz-5.30.3/src/xmlquery.c:56:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *error_code = atoi(code_str);
data/yaz-5.30.3/src/xmlquery.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char formstr[30];
data/yaz-5.30.3/src/xmlquery.c:70:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oid_name_str[OID_STR_MAX];
data/yaz-5.30.3/src/xmlquery.c:126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char formstr[20];
data/yaz-5.30.3/src/xmlquery.c:207:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char formstr[30];
data/yaz-5.30.3/src/xmlquery.c:273:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char oid_name_str[OID_STR_MAX];
data/yaz-5.30.3/src/xmlquery.c:358:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return odr_intdup(odr, atoi(str));
data/yaz-5.30.3/src/zoom-c.c:75:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(c->addinfo, ": ");
data/yaz-5.30.3/src/zoom-c.c:94:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        code = atoi(cp+1);
data/yaz-5.30.3/src/zoom-c.c:420:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char hostn[128];
data/yaz-5.30.3/src/zoom-c.c:433:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(hostn, "%.80s:%d", host, portnum);
data/yaz-5.30.3/src/zoom-c.c:556:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE *f = fopen(val, "a");
data/yaz-5.30.3/src/zoom-c.c:1682:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char msg[100];
data/yaz-5.30.3/src/zoom-memcached.c:72:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            rc = memcached_server_add(mc, host, port ? atoi(port) : 11211);
data/yaz-5.30.3/src/zoom-memcached.c:83:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *expire_search = atoi(darray[i] + 9);
data/yaz-5.30.3/src/zoom-memcached.c:118:54:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                              port ? atoi(port) : 6379,
data/yaz-5.30.3/src/zoom-memcached.c:123:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *expire_search = atoi(darray[i] + 9);
data/yaz-5.30.3/src/zoom-memcached.c:236:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *argv[2];
data/yaz-5.30.3/src/zoom-memcached.c:325:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[3];
data/yaz-5.30.3/src/zoom-memcached.c:327:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key_val[20];
data/yaz-5.30.3/src/zoom-memcached.c:329:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(key_val, "%d", exp);
data/yaz-5.30.3/src/zoom-memcached.c:365:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(key + strlen(str) + 1, oi_buf, oi_len);
data/yaz-5.30.3/src/zoom-memcached.c:369:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char *argv[3];
data/yaz-5.30.3/src/zoom-memcached.c:409:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(key + strlen(str) + 1, oi_buf, oi_len);
data/yaz-5.30.3/src/zoom-memcached.c:439:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *argv[3];
data/yaz-5.30.3/src/zoom-memcached.c:544:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *argv[2];
data/yaz-5.30.3/src/zoom-opt.c:42:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((*e)->value, value, len);
data/yaz-5.30.3/src/zoom-opt.c:241:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(v);
data/yaz-5.30.3/src/zoom-opt.c:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s[40];
data/yaz-5.30.3/src/zoom-opt.c:249:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(s, "%d", value);
data/yaz-5.30.3/src/zoom-query.c:182:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[512];
data/yaz-5.30.3/src/zoom-query.c:183:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "can't open CQL transform file '%.200s': %.200s",
data/yaz-5.30.3/src/zoom-query.c:193:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[512];
data/yaz-5.30.3/src/zoom-query.c:196:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "%.200s (addinfo=%.200s)",
data/yaz-5.30.3/src/zoom-sru.c:482:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*addinfo, hres->content_buf, sz);
data/yaz-5.30.3/src/zoom-sru.c:484:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(*addinfo + sz, "...");
data/yaz-5.30.3/src/zoom-z3950.c:192:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            (str ? atoi(str) : 1);
data/yaz-5.30.3/src/zoom-z3950.c:431:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                odr_intdup(p->odr_out, atoi(recordIdNumber));
data/yaz-5.30.3/src/zoom-z3950.c:449:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                odr_intdup(p->odr_out, atoi(correlationInfo_id)) : 0;
data/yaz-5.30.3/src/zoom-z3950.c:485:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[80];
data/yaz-5.30.3/src/zoom-z3950.c:489:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "otherInfo%d", i);
data/yaz-5.30.3/src/zoom-z3950.c:499:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, val, len);
data/yaz-5.30.3/src/zoom-z3950.c:534:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *outf = fopen("/tmp/apdu.txt", "a");
data/yaz-5.30.3/src/zoom-z3950.c:789:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char setname[14];
data/yaz-5.30.3/src/zoom-z3950.c:796:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(setname, "%d", ord);
data/yaz-5.30.3/src/zoom-z3950.c:951:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p->buf_out, buf, p->len_out);
data/yaz-5.30.3/src/zoom-z3950.c:968:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oid_name_buf[OID_STR_MAX];
data/yaz-5.30.3/src/zoom-z3950.c:1249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char opt_name[80];
data/yaz-5.30.3/src/zoom-z3950.c:1289:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char pref[80];
data/yaz-5.30.3/src/zoom-z3950.c:1291:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(pref, "searchresult.%d", j);
data/yaz-5.30.3/src/zoom-z3950.c:1295:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char opt_name[80];
data/yaz-5.30.3/src/zoom-z3950.c:1302:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char opt_name[80];
data/yaz-5.30.3/src/zoom-z3950.c:1310:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char opt_name[80];
data/yaz-5.30.3/src/zoom-z3950.c:1318:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char opt_name[80];
data/yaz-5.30.3/src/zoom-z3950.c:1326:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char opt_name[80];
data/yaz-5.30.3/src/zoom-z3950.c:1511:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[80];
data/yaz-5.30.3/src/zoom-z3950.c:1513:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "init_opt_%.70s", name);
data/yaz-5.30.3/test/test_ccl.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstline[128];
data/yaz-5.30.3/test/test_ccl.c:94:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "ti u=4    s=pw t=l,r");
data/yaz-5.30.3/test/test_ccl.c:97:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "term 1=1016 s=al,pw t=r  # default term");
data/yaz-5.30.3/test/test_ccl.c:100:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "reg t=x");
data/yaz-5.30.3/test/test_ccl.c:103:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "z t=z");
data/yaz-5.30.3/test/test_ccl.c:106:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "dc.title 1=/my/title");
data/yaz-5.30.3/test/test_ccl.c:109:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "date r=r,omiteq # ordered relation");
data/yaz-5.30.3/test/test_ccl.c:112:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "x r=o # ordered relation");
data/yaz-5.30.3/test/test_ccl.c:115:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "title dc.title # alias");
data/yaz-5.30.3/test/test_ccl.c:118:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "comb term dc.title # combination");
data/yaz-5.30.3/test/test_ccl.c:121:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "ag s=ag");
data/yaz-5.30.3/test/test_ccl.c:124:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "splitlist s=sl u=2");
data/yaz-5.30.3/test/test_ccl.c:127:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(tstline, "s2 s=sl u=2 u=3");
data/yaz-5.30.3/test/test_embed_record.c:32:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/yaz-5.30.3/test/test_embed_record.c:33:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf_a[1024];
data/yaz-5.30.3/test/test_embed_record.c:34:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf_b[1024];
data/yaz-5.30.3/test/test_embed_record.c:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out_rec[1000];
data/yaz-5.30.3/test/test_filepath.c:19:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullpath[1024];
data/yaz-5.30.3/test/test_iconv.c:48:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char got_char[10];
data/yaz-5.30.3/test/test_iconv.c:49:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char expect_char[10];
data/yaz-5.30.3/test/test_iconv.c:52:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(got_char, "%02X", got_buf[i]);
data/yaz-5.30.3/test/test_iconv.c:54:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(got_char, "?  ");
data/yaz-5.30.3/test/test_iconv.c:57:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(expect_char, "%02X", expect_buf[i]);
data/yaz-5.30.3/test/test_iconv.c:59:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(expect_char, "?  ");
data/yaz-5.30.3/test/test_iconv.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf0[64];
data/yaz-5.30.3/test/test_iconv.c:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf[16];
data/yaz-5.30.3/test/test_iconv.c:313:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char outbuf0[24];
data/yaz-5.30.3/test/test_iconv.c:314:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char outbuf1[10];
data/yaz-5.30.3/test/test_iconv.c:366:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char src[4];
data/yaz-5.30.3/test/test_iconv.c:367:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char dst[4];
data/yaz-5.30.3/test/test_iconv.c:368:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char utf8buf[6];
data/yaz-5.30.3/test/test_iconv.c:586:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char outbuf0[64];
data/yaz-5.30.3/test/test_icu.c:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char disp_term[MAX_KEY_SIZE];  /* standard C utf-8 string */
data/yaz-5.30.3/test/test_icu.c:210:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(list[i]->sort_key, buf8->utf8, buf8->utf8_len);
data/yaz-5.30.3/test/test_icu.c:256:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *en_1_src[6] = {"z", "K", "a", "A", "Z", "k"};
data/yaz-5.30.3/test/test_icu.c:257:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *en_1_cck[6] = {"a", "A", "k", "K", "z", "Z"};
data/yaz-5.30.3/test/test_icu.c:267:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *da_1_src[6] = {"z", "å", "o", "æ", "a", "ø"};
data/yaz-5.30.3/test/test_icu.c:268:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *da_1_cck[6] = {"a", "o", "z", "æ", "ø", "å"};
data/yaz-5.30.3/test/test_icu.c:275:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *de_1_src[9] = {"u", "ä", "o", "t", "s", "ß", "ü", "ö", "a"};
data/yaz-5.30.3/test/test_icu.c:276:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *de_1_cck[9] = {"a","ä", "o", "ö", "s", "ß", "t", "u", "ü"};
data/yaz-5.30.3/test/test_log.c:36:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            yaz_log_init_max_size(atoi(arg));
data/yaz-5.30.3/test/test_log.c:54:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            number = atoi(arg);
data/yaz-5.30.3/test/test_log.c:60:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            wait_between_log = atoi(arg);
data/yaz-5.30.3/test/test_nmem.c:24:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char stat_buf[200];
data/yaz-5.30.3/test/test_nmem.c:36:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char stat_buf[200];
data/yaz-5.30.3/test/test_nmem.c:69:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char stat_buf[200];
data/yaz-5.30.3/test/test_nmem.c:82:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char stat_buf[200];
data/yaz-5.30.3/test/test_odr.c:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[40];
data/yaz-5.30.3/test/test_odr.c:202:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    YAZ_CHECK_EQ(((unsigned char *) buf)[2], 128);
data/yaz-5.30.3/test/test_odrstack.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char qstr[10000];
data/yaz-5.30.3/test/test_odrstack.c:29:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(qstr, "@and 1 ");
data/yaz-5.30.3/test/test_oid.c:18:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oid_buf[OID_STR_MAX];
data/yaz-5.30.3/test/test_options.c:16:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *argv[16] = {
data/yaz-5.30.3/test/test_solr.c:141:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(http_response,
data/yaz-5.30.3/test/test_solr.c:146:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(http_response + strlen(http_response),
data/yaz-5.30.3/test/test_solr.c:171:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(http_response,
data/yaz-5.30.3/test/test_solr.c:176:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(http_response + strlen(http_response),
data/yaz-5.30.3/test/test_tpath.c:17:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullpath[FILENAME_MAX];
data/yaz-5.30.3/test/test_wrbuf.c:33:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[100];
data/yaz-5.30.3/test/test_wrbuf.c:34:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "Hello world %d", i);
data/yaz-5.30.3/test/test_wrbuf.c:80:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/yaz-5.30.3/util/benchmark.c:57:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                port = atoi(arg);
data/yaz-5.30.3/util/benchmark.c:61:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 'c': boptions.nconnect = atoi(arg); break;
data/yaz-5.30.3/util/benchmark.c:62:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 's': boptions.nsearch = atoi(arg); break;
data/yaz-5.30.3/util/benchmark.c:63:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 'p': boptions.npresent = atoi(arg); break;
data/yaz-5.30.3/util/benchmark.c:66:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 'd': boptions.delay = atoi(arg); break;
data/yaz-5.30.3/util/benchmark.c:68:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 'v': boptions.verbosity = atoi(arg); break;
data/yaz-5.30.3/util/cclsh.c:58:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            bib_inf = fopen(bib_fname, "r");
data/yaz-5.30.3/util/cclsh.c:125:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1000];
data/yaz-5.30.3/util/cql2pqf.c:52:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            iterations = atoi(arg);
data/yaz-5.30.3/util/cql2pqf.c:84:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/yaz-5.30.3/util/cql2pqf.c:160:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                FILE *null = fopen("/dev/null", "w");
data/yaz-5.30.3/util/cql2xcql.c:46:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            iterations = atoi(arg);
data/yaz-5.30.3/util/marcdump.c:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vstr[20], sha1_str[41];
data/yaz-5.30.3/util/marcdump.c:103:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *inf = fopen(fname, "rb");
data/yaz-5.30.3/util/marcdump.c:124:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *inf = fopen(fname, "rb");
data/yaz-5.30.3/util/marcdump.c:303:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *inf = fopen(fname, "rb");
data/yaz-5.30.3/util/marcdump.c:322:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[100001];
data/yaz-5.30.3/util/marcdump.c:403:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char fname[256];
data/yaz-5.30.3/util/marcdump.c:413:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(fname, "%.200s%07d", split_fname, split_file_no);
data/yaz-5.30.3/util/marcdump.c:414:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                sf = fopen(fname, mode);
data/yaz-5.30.3/util/marcdump.c:582:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            cfile = fopen(arg, "w");
data/yaz-5.30.3/util/marcdump.c:619:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            split_chunk = atoi(arg);
data/yaz-5.30.3/util/srwtst.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[163840];
data/yaz-5.30.3/util/yaz-icu.c:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char conffile[1024];
data/yaz-5.30.3/util/yaz-icu.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char print[1024];
data/yaz-5.30.3/util/yaz-icu.c:112:32:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            p_config->infile = fopen(arg, "r");
data/yaz-5.30.3/util/yaz-icu.c:244:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char keyword_str[128];
data/yaz-5.30.3/util/yaz-icu.c:249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lang_str[128];
data/yaz-5.30.3/util/yaz-icu.c:254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char script_str[128];
data/yaz-5.30.3/util/yaz-icu.c:259:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char location_str[128];
data/yaz-5.30.3/util/yaz-icu.c:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char variant_str[128];
data/yaz-5.30.3/util/yaz-icu.c:269:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_str[128];
data/yaz-5.30.3/util/yaz-icu.c:274:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localname_str[128];
data/yaz-5.30.3/util/yaz-icu.c:435:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char linebuf[1024];
data/yaz-5.30.3/util/yaz-illclient.c:147:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f=fopen(arg,"r");
data/yaz-5.30.3/util/yaz-illclient.c:149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZE];
data/yaz-5.30.3/util/yaz-illclient.c:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char version[60];
data/yaz-5.30.3/util/yaz-illclient.c:368:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ext->u.single_ASN1_type->buf,buf, siz );
data/yaz-5.30.3/util/yaz-illclient.c:384:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(e->item->buf,buf, siz );
data/yaz-5.30.3/util/yaz-illclient.c:427:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ext->u.single_ASN1_type->buf,buf, siz );
data/yaz-5.30.3/util/yaz-illclient.c:443:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(e->item->buf, buf, siz);
data/yaz-5.30.3/util/yaz-illclient.c:508:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *F = fopen("req.apdu","w");
data/yaz-5.30.3/util/yaz-illclient.c:548:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[60];
data/yaz-5.30.3/util/yaz-record-conv.c:72:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                FILE *f = fopen(arg, "rb");
data/yaz-5.30.3/util/yaz-url.c:35:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *inf = fopen(fname, "rb");
data/yaz-5.30.3/util/yaz-url.c:98:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(name, arg, cp - arg);
data/yaz-5.30.3/util/yaz-url.c:117:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            yaz_url_set_max_redirects(p, atoi(arg));
data/yaz-5.30.3/util/yaz-url.c:125:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(user, arg, cp - arg);
data/yaz-5.30.3/util/yaz-url.c:149:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    outf = fopen(outfname, "w");
data/yaz-5.30.3/util/yaz-xmlquery.c:139:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen(xmlfile, "rb");
data/yaz-5.30.3/util/yaziconv.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char inbuf0[CHUNK_IN], *inbuf = inbuf0;
data/yaz-5.30.3/util/yaziconv.c:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf0[CHUNK_OUT], *outbuf = outbuf0;
data/yaz-5.30.3/util/yaziconv.c:148:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            inf = fopen(arg, "rb");
data/yaz-5.30.3/zoom/zoom-benchmark.c:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[1024];
data/yaz-5.30.3/zoom/zoom-benchmark.c:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char query[1024];
data/yaz-5.30.3/zoom/zoom-benchmark.c:32:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char proxy[1024];
data/yaz-5.30.3/zoom/zoom-benchmark.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char zoom_event[128];
data/yaz-5.30.3/zoom/zoom-benchmark.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errmsg[128];
data/yaz-5.30.3/zoom/zoom-benchmark.c:82:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(els[iels].zoom_event, "---");
data/yaz-5.30.3/zoom/zoom-benchmark.c:116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nullstring[1] = "";
data/yaz-5.30.3/zoom/zoom-benchmark.c:227:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            p_parameters->concurrent = atoi(arg);
data/yaz-5.30.3/zoom/zoom-benchmark.c:231:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            p_parameters->timeout = atoi(arg);
data/yaz-5.30.3/zoom/zoom-benchmark.c:241:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            p_parameters->repeat = atoi(arg);
data/yaz-5.30.3/zoom/zoom-bug-641.c:45:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            (fd = open(fn, O_RDONLY)) < 0) {
data/yaz-5.30.3/zoom/zoom-ka.c:51:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        sleep(atoi(argv[1]));
data/yaz-5.30.3/zoom/zoomsh.c:158:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if ((inf = fopen(wrbuf_cstr(fname), "rb")) == 0)
data/yaz-5.30.3/zoom/zoomsh.c:352:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            start = atoi(wrbuf_cstr(tmp));
data/yaz-5.30.3/zoom/zoomsh.c:358:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            count = atoi(wrbuf_cstr(tmp));
data/yaz-5.30.3/zoom/zoomsh.c:570:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (v && (num = atoi(v)))
data/yaz-5.30.3/zoom/zoomsh.c:577:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char str[60];
data/yaz-5.30.3/zoom/zoomsh.c:582:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "searchresult.%d.id", i);
data/yaz-5.30.3/zoom/zoomsh.c:587:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "searchresult.%d.subquery.term", i);
data/yaz-5.30.3/zoom/zoomsh.c:592:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "searchresult.%d.count", i);
data/yaz-5.30.3/zoom/zoomsh.c:963:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[100000];
data/yaz-5.30.3/zoom/zoomtst11.c:25:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pqf_str[100];
data/yaz-5.30.3/zoom/zoomtst11.c:32:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(pqf_str, "@attr 1=%d water", start);
data/yaz-5.30.3/zoom/zoomtst3.c:32:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        no = atoi(argv[1]);
data/yaz-5.30.3/zoom/zoomtst7.c:52:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char host[40];
data/yaz-5.30.3/zoom/zoomtst7.c:55:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (host, "localhost:9999/%d", i);
data/yaz-5.30.3/zoom/zoomtst7.c:62:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char query[40];
data/yaz-5.30.3/zoom/zoomtst7.c:65:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf (query, "i%dr%d", i, j);
data/yaz-5.30.3/zoom/zoomtst7.c:111:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char host[40];
data/yaz-5.30.3/zoom/zoomtst7.c:114:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (host, "localhost:9999/%d", i);
data/yaz-5.30.3/zoom/zoomtst7.c:120:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char query[40];
data/yaz-5.30.3/zoom/zoomtst7.c:122:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf (query, "i%dr%d", i, j);
data/yaz-5.30.3/zoom/zoomtst7.c:149:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char host[40];
data/yaz-5.30.3/zoom/zoomtst7.c:153:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (host, "localhost:9999/%d", i);
data/yaz-5.30.3/ztest/gfs-example.c:62:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[40];
data/yaz-5.30.3/ztest/gfs-example.c:71:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[OID_STR_MAX];
data/yaz-5.30.3/ztest/read-grs.c:24:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[512], *buf;
data/yaz-5.30.3/ztest/read-grs.c:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[512];
data/yaz-5.30.3/ztest/read-grs.c:70:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if ((ivalue = atoi(value)))
data/yaz-5.30.3/ztest/read-grs.c:102:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen("dummy-grs", "r");
data/yaz-5.30.3/ztest/read-grs.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[512];
data/yaz-5.30.3/ztest/read-marc.c:36:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *marc_records[NO_MARC_RECORDS] = {
data/yaz-5.30.3/ztest/read-marc.c:1543:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(p + 279, "%-5d", num);
data/yaz-5.30.3/ztest/read-marc.c:1663:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                (file = fopen(wrbuf_cstr(w), "rb")))
data/yaz-5.30.3/ztest/ztest.c:411:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                srand(atoi(value));
data/yaz-5.30.3/ztest/ztest.c:499:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char oid_name_str[OID_STR_MAX];
data/yaz-5.30.3/ztest/ztest.c:767:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char oid_name_str[OID_STR_MAX];
data/yaz-5.30.3/ztest/ztest.c:896:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[100];
data/yaz-5.30.3/ztest/ztest.c:898:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "This is dummy SUTRS record number %d\n", r->number);
data/yaz-5.30.3/ztest/ztest.c:917:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fname[20];
data/yaz-5.30.3/ztest/ztest.c:921:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(fname, "part.%d.ps", r->number);
data/yaz-5.30.3/ztest/ztest.c:922:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(fname, "rb");
data/yaz-5.30.3/ztest/ztest.c:978:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[OID_STR_MAX];
data/yaz-5.30.3/ztest/ztest.c:994:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char entries[200][80];
data/yaz-5.30.3/ztest/ztest.c:996:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char term[80], *p;
data/yaz-5.30.3/ztest/ztest.c:1017:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!f && !(f = fopen("dummy-words", "r")))
data/yaz-5.30.3/ztest/ztest.c:1043:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(term, q->term->term->u.general->buf, len);
data/yaz-5.30.3/client/admin.c:193:16:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (arg && sscanf (arg, "%19s %1023s %1023s", type_str,
data/yaz-5.30.3/client/client.c:235:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (++no < 1000 && strlen(dump_file_prefix) < 500)
data/yaz-5.30.3/client/client.c:329:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return odr_create_Odr_oct(out, refid, strlen(refid));
data/yaz-5.30.3/client/client.c:582:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            cp = arg + strlen(arg);
data/yaz-5.30.3/client/client.c:704:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(type_and_host, arg, sizeof(type_and_host)-1);
data/yaz-5.30.3/client/client.c:1264:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        sscanf(arg, "%30s %30s %30s %30s %30s %30s %30s %30s",
data/yaz-5.30.3/client/client.c:1425:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_iconv_write(w, cd, q, strlen(q));
data/yaz-5.30.3/client/client.c:1647:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ccl_query.len = strlen(arg);
data/yaz-5.30.3/client/client.c:2492:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            odr_create_Odr_oct(out, recid, strlen(recid)) : 0;
data/yaz-5.30.3/client/client.c:2531:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            odr_create_Odr_oct(out, recid, strlen(recid)) : 0;
data/yaz-5.30.3/client/client.c:2564:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        sscanf(arg, "%50s%n", oid_str, &noread);
data/yaz-5.30.3/client/client.c:2605:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%10s %d%n", type, &itemno, &no_read) < 2)
data/yaz-5.30.3/client/client.c:2700:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cp1 = cp0 + strlen(cp0);
data/yaz-5.30.3/client/client.c:2820:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        int r = sscanf(arg, "%9s %9s %9s", sru_method, sru_version,
data/yaz-5.30.3/client/client.c:2983:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(token);
data/yaz-5.30.3/client/client.c:3285:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        sscanf(arg, "%15s", command);
data/yaz-5.30.3/client/client.c:3390:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            req->termListAndStartPoint->term->u.general->len = strlen(term);
data/yaz-5.30.3/client/client.c:3578:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (r == 1 && strlen(arg) < sizeof(scan_position)-1)
data/yaz-5.30.3/client/client.c:3663:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%99s%n", setstring, &nor) < 1)
data/yaz-5.30.3/client/client.c:3692:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while (sscanf(cp, "%40s%n", form_str, &nor) >= 1 && nor > 0
data/yaz-5.30.3/client/client.c:3710:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while (sscanf(cp, "%40s%n", form_str, &nor) >= 1 && nor > 0
data/yaz-5.30.3/client/client.c:3813:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%29s", l1) < 1)
data/yaz-5.30.3/client/client.c:3831:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%29s", l1) < 1)
data/yaz-5.30.3/client/client.c:3849:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%29s", l1) < 1)
data/yaz-5.30.3/client/client.c:3879:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%29s %d %d", l1, &negotiationCharsetRecords,
data/yaz-5.30.3/client/client.c:3909:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%29s %29s %29s %29s", l1, l2, l3, l4) < 1)
data/yaz-5.30.3/client/client.c:3949:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(arg) < 1)
data/yaz-5.30.3/client/client.c:3965:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(line) < 2)
data/yaz-5.30.3/client/client.c:3994:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int ret = system(strlen(args) ? args : getenv("SHELL"));
data/yaz-5.30.3/client/client.c:4071:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(arg)==0)
data/yaz-5.30.3/client/client.c:4093:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(arg)==0)
data/yaz-5.30.3/client/client.c:4174:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(args, "%100[^ ] %100[^ ] %100s",
data/yaz-5.30.3/client/client.c:4209:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(arg) > 1)
data/yaz-5.30.3/client/client.c:4258:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(line))
data/yaz-5.30.3/client/client.c:4278:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(scan_position, "1");
data/yaz-5.30.3/client/client.c:4740:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int ioff = 3+strlen(last_cmd)+1+pos;
data/yaz-5.30.3/client/client.c:4765:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscan_res = sscanf(args, "%d %100[^ ] %100s",
data/yaz-5.30.3/client/client.c:4825:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(args)>0)
data/yaz-5.30.3/client/client.c:4943:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(args) > 0)
data/yaz-5.30.3/client/client.c:5087:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(line, "%20s", topic);
data/yaz-5.30.3/client/client.c:5148:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(arg, "%100s %100s", command, tabargument) < 1)
data/yaz-5.30.3/client/client.c:5156:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(cmd_array[i].cmd, command, strlen(command)))
data/yaz-5.30.3/client/client.c:5196:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(line, "%31s%n", word, &no_read);
data/yaz-5.30.3/client/client.c:5200:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        arg = line + strlen(line);
data/yaz-5.30.3/client/client.c:5223:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(cmd_array[i].cmd, word, strlen(word)))
data/yaz-5.30.3/client/client.c:5256:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(cmd_array[idx].cmd, text, strlen(text)))
data/yaz-5.30.3/client/client.c:5299:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (sscanf(rl_line_buffer, "%31s", word) <= 0)
data/yaz-5.30.3/client/client.c:5306:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strncmp(cmd_array[i].cmd, word, strlen(word)))
data/yaz-5.30.3/client/client.c:5379:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(line, line_in, sizeof(line)-1);
data/yaz-5.30.3/client/client.c:5451:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                open_command = (char *) xmalloc(strlen(arg)+6);
data/yaz-5.30.3/client/client.c:5475:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ccl_fields, arg, sizeof(ccl_fields)-1);
data/yaz-5.30.3/client/client.c:5498:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(cql_fields, arg, sizeof(cql_fields)-1);
data/yaz-5.30.3/client/client.c:5507:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                auth_command = (char *) xmalloc(strlen(arg)+6);
data/yaz-5.30.3/client/fhistory.c:66:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = fgetc(f)) != EOF)
data/yaz-5.30.3/client/tabcomplete.c:39:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           (completions[idx],text,strlen(text))) {
data/yaz-5.30.3/src/backtrace.c:53:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        write(fd, cp, strlen(cp));
data/yaz-5.30.3/src/backtrace.c:60:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        write(fd, cp, strlen(cp));
data/yaz-5.30.3/src/backtrace.c:94:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        write(2, cp, strlen(cp)); /* exec failure if we make it this far */
data/yaz-5.30.3/src/backtrace.c:129:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write(yaz_panic_fd, cp, strlen(cp));
data/yaz-5.30.3/src/backtrace.c:173:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        yaz_snprintf(buf + strlen(buf), sizeof buf, "signo=%d", sig);
data/yaz-5.30.3/src/backtrace.c:176:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yaz_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf) - 1,
data/yaz-5.30.3/src/backtrace.c:176:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yaz_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf) - 1,
data/yaz-5.30.3/src/backtrace.c:183:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write(yaz_panic_fd, buf, strlen(buf));
data/yaz-5.30.3/src/backtrace.c:192:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(static_progname, progname, sizeof(static_progname) - 1);
data/yaz-5.30.3/src/base64.c:84:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(in);
data/yaz-5.30.3/src/ccl_stop_words.c:129:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                memmove(cp0, cp, strlen(cp)+1);
data/yaz-5.30.3/src/ccl_stop_words.c:141:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *cp = p->u.t.term + strlen(p->u.t.term);
data/yaz-5.30.3/src/cclfind.c:308:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(dst_term, "\\");
data/yaz-5.30.3/src/cclfind.c:310:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(dst_term, "\\");
data/yaz-5.30.3/src/cclfind.c:324:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(dst_term, "?");
data/yaz-5.30.3/src/cclfind.c:340:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(dst_term, ".");
data/yaz-5.30.3/src/cclfind.c:342:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(dst_term, "#");
data/yaz-5.30.3/src/cclfind.c:352:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(dst_term, "\\");
data/yaz-5.30.3/src/cclfind.c:354:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(dst_term, "\\");
data/yaz-5.30.3/src/cclptree.c:75:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yaz_encode_pqf_term(w, term, strlen(term));
data/yaz-5.30.3/src/cclqfile.c:115:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            else if (strlen(type_str) != 1)
data/yaz-5.30.3/src/cclqfile.c:294:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf (cp, "%100s%n", qual_name, &no_scan) < 1)
data/yaz-5.30.3/src/cclqual.c:50:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (len == strlen(q->name) && !memcmp(q->name, n, len))
data/yaz-5.30.3/src/cclqual.c:148:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        q->sub[i] = ccl_qual_lookup(b, names[i], strlen(names[i]));
data/yaz-5.30.3/src/cclqual.c:354:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(q->name) == name_len)
data/yaz-5.30.3/src/cclqual.c:430:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (src_len == strlen(slist[i])
data/yaz-5.30.3/src/ccltoken.c:37:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (token->len == strlen(kw[i]))
data/yaz-5.30.3/src/charneg.c:25:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(buf);
data/yaz-5.30.3/src/cookie.c:91:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                cp1 = cp + strlen(cp);
data/yaz-5.30.3/src/cookie.c:106:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sz += strlen(c->name) + strlen(c->value) + 3;
data/yaz-5.30.3/src/cookie.c:106:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sz += strlen(c->name) + strlen(c->value) + 3;
data/yaz-5.30.3/src/cookie.c:118:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(buf, "=");
data/yaz-5.30.3/src/cql.c:915:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
data/yaz-5.30.3/src/cqlstdio.c:19:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = fgetc(f);
data/yaz-5.30.3/src/cqltransform.c:327:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t clen = strlen(category);
data/yaz-5.30.3/src/cqltransform.c:796:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    r = emit_term(ct, cn, addinfo, cn->u.st.term, strlen(cn->u.st.term),
data/yaz-5.30.3/src/cqltransform.c:806:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = emit_term(ct, cn, addinfo, ne->u.st.term, strlen(ne->u.st.term),
data/yaz-5.30.3/src/cqltransform.c:840:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            last_length = strlen(cp0);
data/yaz-5.30.3/src/cqlutil.c:120:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(prefix) == (size_t) (cp - n->u.st.index) &&
data/yaz-5.30.3/src/cqlutil.c:121:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                !cql_strncmp(n->u.st.index, prefix, strlen(prefix)))
data/yaz-5.30.3/src/cqlutil.c:136:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(prefix) == (size_t)(cp - n->u.st.relation) &&
data/yaz-5.30.3/src/cqlutil.c:137:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                !cql_strncmp(n->u.st.relation, prefix, strlen(prefix)))
data/yaz-5.30.3/src/cqlutil.c:151:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strlen(prefix) == (size_t) (cp - mod->u.st.index) &&
data/yaz-5.30.3/src/cqlutil.c:152:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    !cql_strncmp(mod->u.st.index, prefix, strlen(prefix)))
data/yaz-5.30.3/src/daemon.c:56:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(pid_fd, buf, strlen(buf)) != (int) strlen(buf))
data/yaz-5.30.3/src/daemon.c:56:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(pid_fd, buf, strlen(buf)) != (int) strlen(buf))
data/yaz-5.30.3/src/daemon.c:308:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int res = read(hand[0], dummy, 1);
data/yaz-5.30.3/src/facet.c:192:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Z_Term *term = z_Term_create(odr, Z_Term_general, cstr, strlen(cstr));
data/yaz-5.30.3/src/file_glob.c:54:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t prefix_len = strlen(prefix);
data/yaz-5.30.3/src/http.c:155:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            odr_malloc(o, strlen(content_type)+strlen(charset) + 15);
data/yaz-5.30.3/src/http.c:155:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            odr_malloc(o, strlen(content_type)+strlen(charset) + 15);
data/yaz-5.30.3/src/http.c:179:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(username) + strlen(password);
data/yaz-5.30.3/src/http.c:179:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(username) + strlen(password);
data/yaz-5.30.3/src/http.c:184:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yaz_base64encode(tmp, &buf[strlen(buf)]);
data/yaz-5.30.3/src/http.c:280:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            cp1 = cp0+strlen(cp0);
data/yaz-5.30.3/src/http.c:304:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cp1 = cp0+strlen(cp0);
data/yaz-5.30.3/src/http.c:319:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p->u.HTTP_Request->path = odr_malloc(odr, cp1 - uri + strlen(args) + 2);
data/yaz-5.30.3/src/http.c:323:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(p->u.HTTP_Request->path + (cp1 - uri), "/");
data/yaz-5.30.3/src/http.c:326:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(p->u.HTTP_Request->path, "/");
data/yaz-5.30.3/src/http.c:349:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t sz = 400 + strlen(http_err) + (details ?
data/yaz-5.30.3/src/http.c:350:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                              strlen(details) : 0);
data/yaz-5.30.3/src/http.c:366:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf(hres->content_buf + strlen(hres->content_buf),
data/yaz-5.30.3/src/http.c:369:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(hres->content_buf + strlen(hres->content_buf),
data/yaz-5.30.3/src/http.c:372:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hres->content_len = strlen(hres->content_buf);
data/yaz-5.30.3/src/http.c:589:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_write(o, sbuf, strlen(sbuf));
data/yaz-5.30.3/src/http.c:592:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_write(o, sbuf, strlen(sbuf));
data/yaz-5.30.3/src/http.c:598:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            odr_write(o, h->name, strlen(h->name));
data/yaz-5.30.3/src/http.c:600:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            odr_write(o, h->value, strlen(h->value));
data/yaz-5.30.3/src/http.c:624:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_write(o, hr->method, strlen(hr->method));
data/yaz-5.30.3/src/http.c:627:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_write(o, hr->path, cp ? (cp - hr->path) : strlen(hr->path));
data/yaz-5.30.3/src/http.c:629:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_write(o, hr->version, strlen(hr->version));
data/yaz-5.30.3/src/http.c:638:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        odr_write(o, lstr, strlen(lstr));
data/yaz-5.30.3/src/http.c:642:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        odr_write(o, h->name, strlen(h->name));
data/yaz-5.30.3/src/http.c:644:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        odr_write(o, h->value, strlen(h->value));
data/yaz-5.30.3/src/http.c:665:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *nlocation = (char *) odr_malloc(odr, strlen(location)
data/yaz-5.30.3/src/http.c:666:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                              + strlen(uri) + 3);
data/yaz-5.30.3/src/http.c:670:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            args = nlocation + strlen(nlocation);
data/yaz-5.30.3/src/iconv_encode_marc8.c:89:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        inbytesleft = strlen(utf8_buf);
data/yaz-5.30.3/src/iconv_encode_marc8.c:256:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    plen = strlen(page_out);
data/yaz-5.30.3/src/iconv_encode_marc8.c:265:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        plen = strlen(page_out);
data/yaz-5.30.3/src/icu_utf8.c:102:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    src8cstr_len = strlen(src8cstr);
data/yaz-5.30.3/src/ill-get.c:27:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:50:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:75:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:103:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:123:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:145:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:170:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:195:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:216:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:242:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:261:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:282:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:303:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:325:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:372:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:393:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:424:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:445:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:465:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:487:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:554:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/ill-get.c:621:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(element, ",");
data/yaz-5.30.3/src/iso5426.c:60:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    size_t len = strlen(flat->from);
data/yaz-5.30.3/src/log.c:177:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(yaz_log_info.l_fname, fname, sizeof(yaz_log_info.l_fname)-1);
data/yaz-5.30.3/src/log.c:445:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen(flags) + strlen(mask_names[i].name)
data/yaz-5.30.3/src/log.c:445:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen(flags) + strlen(mask_names[i].name)
data/yaz-5.30.3/src/log.c:448:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat(flags, "[");
data/yaz-5.30.3/src/log.c:450:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat(flags, "]");
data/yaz-5.30.3/src/log.c:463:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(tbuf, " ");
data/yaz-5.30.3/src/log.c:470:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(tid, " ");
data/yaz-5.30.3/src/log.c:508:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(buf) >= sizeof(buf)-31)
data/yaz-5.30.3/src/log.c:540:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(l_custom_format, fmt, TIMEFORMAT_LEN-1);
data/yaz-5.30.3/src/log.c:552:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(namebuf, name, len);
data/yaz-5.30.3/src/log.c:577:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mask_names[i].name = (char *) malloc(strlen(name)+1);
data/yaz-5.30.3/src/log.c:588:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *n = clean_name(name, strlen(name), clean, sizeof(clean));
data/yaz-5.30.3/src/logrpn.c:176:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(str + strlen(str), " (" ODR_INT_PRINTF "=" ODR_INT_PRINTF")",
data/yaz-5.30.3/src/marc8.c:60:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    size_t len = strlen(flat->from);
data/yaz-5.30.3/src/marc8r.c:60:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    size_t len = strlen(flat->from);
data/yaz-5.30.3/src/marc_read_json.c:57:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      l->u.string, strlen(l->u.string));
data/yaz-5.30.3/src/marc_read_json.c:121:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strlen(p->u.link[1]->u.string) == 24)
data/yaz-5.30.3/src/marc_read_line.c:117:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t line_len = strlen(line);
data/yaz-5.30.3/src/marc_read_line.c:185:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yaz_marc_add_controlfield(mt, tag, line+4, strlen(line+4));
data/yaz-5.30.3/src/marc_read_line.c:215:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    len = strlen(cp);
data/yaz-5.30.3/src/marc_read_xml.c:63:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen((const char *)ptr_code->content);
data/yaz-5.30.3/src/marc_read_xml.c:73:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        ctrl_data_len += strlen((const char *)p->content);
data/yaz-5.30.3/src/marc_read_xml.c:97:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t length = strlen(name);
data/yaz-5.30.3/src/marc_read_xml.c:123:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen((const char *) attr->children->content) < 5)
data/yaz-5.30.3/src/marc_read_xml.c:130:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(res, " ");
data/yaz-5.30.3/src/marc_read_xml.c:154:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                ctrl_data_len = strlen((const char *) tag_value);
data/yaz-5.30.3/src/marc_read_xml.c:158:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        ctrl_data_len += strlen((const char *)p->content);
data/yaz-5.30.3/src/marc_read_xml.c:210:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(leader) != 24)
data/yaz-5.30.3/src/marc_read_xml.c:213:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         " Must have length of 24 characters", strlen(leader));
data/yaz-5.30.3/src/marc_read_xml.c:329:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen((const char *)attr->name) == 2 &&
data/yaz-5.30.3/src/marcdisp.c:113:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(mt->endline_str, "\n");
data/yaz-5.30.3/src/marcdisp.c:226:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf(msg + strlen(msg), " %02X", data[i] & 0xff);
data/yaz-5.30.3/src/marcdisp.c:228:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf(msg + strlen(msg), " ..");
data/yaz-5.30.3/src/marcdisp.c:326:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf(msg + strlen(msg), " %02X", code_data[i] & 0xff);
data/yaz-5.30.3/src/marcdisp.c:328:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf(msg + strlen(msg), " ..");
data/yaz-5.30.3/src/marcdisp.c:434:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mt->subfield_str, s, sizeof(mt->subfield_str)-1);
data/yaz-5.30.3/src/marcdisp.c:440:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mt->endline_str, s, sizeof(mt->endline_str)-1);
data/yaz-5.30.3/src/marcdisp.c:515:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              n->u.comment, strlen(n->u.comment));
data/yaz-5.30.3/src/marcdisp.c:588:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              n->u.comment, strlen(n->u.comment));
data/yaz-5.30.3/src/marcdisp.c:714:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen(n->u.datafield.tag));
data/yaz-5.30.3/src/marcdisp.c:753:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen(s->code_data + using_code_len));
data/yaz-5.30.3/src/marcdisp.c:764:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen(n->u.datafield.tag));
data/yaz-5.30.3/src/marcdisp.c:773:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        				strlen(n->u.controlfield.tag));
data/yaz-5.30.3/src/marcdisp.c:780:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        				strlen(n->u.controlfield.tag));
data/yaz-5.30.3/src/marcdisp.c:785:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen(n->u.controlfield.data));
data/yaz-5.30.3/src/marcdisp.c:791:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    					strlen(n->u.controlfield.tag));
data/yaz-5.30.3/src/marcdisp.c:803:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    n->u.leader, strlen(n->u.leader));
data/yaz-5.30.3/src/marcdisp.c:919:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(field + 1, n->u.datafield.tag, 3);
data/yaz-5.30.3/src/marcdisp.c:1005:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(field + 1, n->u.controlfield.tag, 3);
data/yaz-5.30.3/src/marcdisp.c:1161:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            data_length += strlen(n->u.datafield.indicator);
data/yaz-5.30.3/src/marcdisp.c:1402:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            memcpy(leader+off, str, strlen(str));
data/yaz-5.30.3/src/matchstr.c:23:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return yaz_strncasecmp(s1, s2, strlen(s1) + 1);
data/yaz-5.30.3/src/nmemsdup.c:20:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *dst = (char *) nmem_malloc(mem, strlen(src)+1);
data/yaz-5.30.3/src/odr.c:129:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(o->op->element, element, sizeof(o->op->element)-1);
data/yaz-5.30.3/src/odr.c:297:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    o->op->stream_write(o, o->op->print, ODR_VISIBLESTRING, buf, strlen(buf));
data/yaz-5.30.3/src/odr_oct.c:87:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t->len = strlen(*p);
data/yaz-5.30.3/src/odr_oct.c:137:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t inleft = strlen(*p);
data/yaz-5.30.3/src/odr_oct.c:165:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            t->len = strlen(*p);
data/yaz-5.30.3/src/odr_util.c:105:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int plen = (prefix == 0) ? 0 : strlen(prefix);
data/yaz-5.30.3/src/odr_util.c:106:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int olen = (old == 0) ? 0 : strlen(old);
data/yaz-5.30.3/src/odr_util.c:113:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(res, "/");
data/yaz-5.30.3/src/oid_util.c:69:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(oidbuf, ".");
data/yaz-5.30.3/src/opac_to_xml.c:34:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (wrbuf_iconv_write2(wrbuf, cd1, data, strlen(data), wrbuf_xmlputs_n)
data/yaz-5.30.3/src/opac_to_xml.c:38:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            wrbuf_iconv_write2(wrbuf, cd2, data, strlen(data), wrbuf_xmlputs_n);
data/yaz-5.30.3/src/options.c:58:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        arg_off = strlen(argv[arg_no]);
data/yaz-5.30.3/src/options.c:73:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (opt_buf && (i - i0) == strlen(opt_buf) &&
data/yaz-5.30.3/src/pquery.c:54:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len=strlen(src);
data/yaz-5.30.3/src/querytowrbuf.c:129:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen(zapt->term->u.characterString));
data/yaz-5.30.3/src/querytowrbuf.c:190:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(zs->u.simple->u.resultSetId));
data/yaz-5.30.3/src/record_conv.c:188:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        qvalue = nmem_malloc(nmem, strlen(value) + 3);
data/yaz-5.30.3/src/record_conv.c:189:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(qvalue, "\'");
data/yaz-5.30.3/src/record_conv.c:191:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(qvalue, "\'");
data/yaz-5.30.3/src/record_conv.c:974:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        char *keybuf = xmalloc(3*strlen((const char*) f->content)+1);
data/yaz-5.30.3/src/record_render.c:44:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(charset_buf, record_charset, sizeof(charset_buf)-1);
data/yaz-5.30.3/src/record_render.c:265:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            z_ext_record_usmarc(odr, record_buf, strlen(record_buf));
data/yaz-5.30.3/src/record_render.c:268:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            z_ext_record_xml(odr, record_buf, strlen(record_buf));
data/yaz-5.30.3/src/record_render.c:272:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        xmlDoc *doc = xmlParseMemory(res, strlen(res));
data/yaz-5.30.3/src/record_render.c:321:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                nmem, strlen(input) + 1);
data/yaz-5.30.3/src/record_render.c:429:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *len = (npr->databaseName ? strlen(npr->databaseName) : 0);
data/yaz-5.30.3/src/record_render.c:434:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *len = schema ? strlen(schema) : 0;
data/yaz-5.30.3/src/record_render.c:447:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *len = strlen(desc);
data/yaz-5.30.3/src/record_render.c:491:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      strlen(type) + strlen(charset) + 11);
data/yaz-5.30.3/src/record_render.c:491:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      strlen(type) + strlen(charset) + 11);
data/yaz-5.30.3/src/rpn2cql.c:213:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            lterm = strlen(sterm);
data/yaz-5.30.3/src/rpn2solr.c:220:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        lterm = strlen(sterm);
data/yaz-5.30.3/src/sc.c:262:17:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                strcpy (cwdstr, ".");
data/yaz-5.30.3/src/seshigh.c:519:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   (peer_name1 ? strlen(peer_name1) : 0)
data/yaz-5.30.3/src/seshigh.c:520:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   + 4 + strlen(peer_name2));
data/yaz-5.30.3/src/seshigh.c:521:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(assoc->init->peer_name, "");
data/yaz-5.30.3/src/seshigh.c:551:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(sr->username) + 1;
data/yaz-5.30.3/src/seshigh.c:553:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len += strlen(sr->password) + 2;
data/yaz-5.30.3/src/seshigh.c:556:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    (sr->password ? strlen(sr->password) : 0));
data/yaz-5.30.3/src/seshigh.c:562:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(auth->u.open, "/");
data/yaz-5.30.3/src/seshigh.c:1190:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    res->extraResponseData_len = strlen(rr.extra_response_data);
data/yaz-5.30.3/src/seshigh.c:1322:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            srw_res->record.recordData_len = strlen(rr.explain_buf);
data/yaz-5.30.3/src/seshigh.c:1439:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            res->extraResponseData_len = strlen(bsrr->extra_response_data);
data/yaz-5.30.3/src/seshigh.c:1713:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            srw_res->extraResponseData_len = strlen(rr.extra_response_data);
data/yaz-5.30.3/src/seshigh.c:1732:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            srw_res->record->recordData_len = strlen(rr.record_data);
data/yaz-5.30.3/src/seshigh.c:1739:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                ex->extraRecordData_len = strlen(rr.extra_record_data);
data/yaz-5.30.3/src/seshigh.c:1819:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(assoc->server->docpath))
data/yaz-5.30.3/src/seshigh.c:2438:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len = strlen(open);
data/yaz-5.30.3/src/seshigh.c:3192:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       strlen(bsrr->entries[i].term));
data/yaz-5.30.3/src/soap.c:279:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *content = (char *) odr_malloc(o, strlen(stylesheet) + 40);
data/yaz-5.30.3/src/soap.c:326:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *content_len = strlen(err_xml);
data/yaz-5.30.3/src/solr.c:614:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        odr_malloc(encode, strlen(hreq->path) +
data/yaz-5.30.3/src/solr.c:615:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(uri_args) + strlen(solr_op) + 5);
data/yaz-5.30.3/src/solr.c:615:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(uri_args) + strlen(solr_op) + 5);
data/yaz-5.30.3/src/solr.c:624:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int last = path[strlen(path)-1];
data/yaz-5.30.3/src/solr.c:626:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(path, "&");
data/yaz-5.30.3/src/solr.c:637:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(path, "/");
data/yaz-5.30.3/src/solr.c:639:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(path, "?");
data/yaz-5.30.3/src/sortspec.c:33:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while ((sscanf(arg, "%63s %63s%n", sort_string_buf,
data/yaz-5.30.3/src/sortspec.c:123:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sks->u.missingValueData->len = strlen(sort_flags+i);
data/yaz-5.30.3/src/sortspec.c:125:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                i += strlen(sort_flags+i) - 1;
data/yaz-5.30.3/src/sru_facet.c:45:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            wrbuf_insert(w, cp - cp0, attr, strlen(attr));
data/yaz-5.30.3/src/sru_facet.c:105:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                wrbuf_insert(w_limit, 0, tmp, strlen(tmp));
data/yaz-5.30.3/src/sru_facet.c:147:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (*start && strlen(*start) < 20)
data/yaz-5.30.3/src/srw.c:466:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (!strncmp((*recs)[i].uri, std_diag, strlen(std_diag)))
data/yaz-5.30.3/src/srw.c:468:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    int no = atoi((*recs)[i].uri + strlen(std_diag));
data/yaz-5.30.3/src/srw.c:473:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                else if (!strncmp((*recs)[i].uri, ucp_diag, strlen(ucp_diag)))
data/yaz-5.30.3/src/srw.c:475:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    int no = atoi((*recs)[i].uri + strlen(ucp_diag));
data/yaz-5.30.3/src/srwutil.c:65:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *dst = odr_malloc(out, 3 * strlen(db) + 2);
data/yaz-5.30.3/src/srwutil.c:128:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(basic);
data/yaz-5.30.3/src/srwutil.c:211:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(message);
data/yaz-5.30.3/src/srwutil.c:213:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(details);
data/yaz-5.30.3/src/srwutil.c:221:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(record->recordData_buf + strlen(record->recordData_buf),
data/yaz-5.30.3/src/srwutil.c:224:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(record->recordData_buf + strlen(record->recordData_buf),
data/yaz-5.30.3/src/srwutil.c:226:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(record->recordData_buf + strlen(record->recordData_buf),
data/yaz-5.30.3/src/srwutil.c:228:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    record->recordData_len = strlen(record->recordData_buf);
data/yaz-5.30.3/src/srwutil.c:289:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                p1 = p0 + strlen(p0);
data/yaz-5.30.3/src/srwutil.c:418:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p1 = p0 + strlen(p0);
data/yaz-5.30.3/src/srwutil.c:1126:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        odr_malloc(encode, strlen(hreq->path) + strlen(uri_args) + 4);
data/yaz-5.30.3/src/srwutil.c:1126:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        odr_malloc(encode, strlen(hreq->path) + strlen(uri_args) + 4);
data/yaz-5.30.3/src/srwutil.c:1153:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hreq->content_len = strlen(uri_args);
data/yaz-5.30.3/src/statserv.c:205:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cp = strlen((const char *)str) + str;
data/yaz-5.30.3/src/statserv.c:272:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(vhost, host, 127);
data/yaz-5.30.3/src/statserv.c:491:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        nmem_malloc(gfs_nmem, strlen(s) + 2);
data/yaz-5.30.3/src/statserv.c:1355:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dst, src ? src : "", BEND_NAME_MAX-1);
data/yaz-5.30.3/src/tcpip.c:254:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sp->bind_host = xmalloc(strlen(bind_host) + 4);
data/yaz-5.30.3/src/tcpip.c:267:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sp->connect_request_buf = (char *) xmalloc(strlen(connect_host) + 130);
data/yaz-5.30.3/src/tcpip.c:274:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (connect_auth && strlen(connect_auth) < 40)
data/yaz-5.30.3/src/tcpip.c:278:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                             strlen(sp->connect_request_buf));
data/yaz-5.30.3/src/tcpip.c:282:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sp->connect_request_len = strlen(sp->connect_request_buf);
data/yaz-5.30.3/src/tcpip.c:381:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp, host_port, tmp_sz-1);
data/yaz-5.30.3/src/tcpip.c:561:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(sp->pipefd[0], &buf, 1);
data/yaz-5.30.3/src/tcpip.c:789:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                   host, strlen(host));
data/yaz-5.30.3/src/tcpip.c:1553:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sp->cert_fname, fname, sizeof(sp->cert_fname)-1);
data/yaz-5.30.3/src/tcpip.c:1587:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                *len = strlen(*buf);
data/yaz-5.30.3/src/test.c:61:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(argv[i]) >= 7 && !memcmp(argv[i], "--test-", 7))
data/yaz-5.30.3/src/thread_id.c:42:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(buf) >= buf_max-2)
data/yaz-5.30.3/src/thread_id.c:44:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(buf + strlen(buf), "%02x", ((const unsigned char *) &t)[i]);
data/yaz-5.30.3/src/tpath.c:67:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(path);
data/yaz-5.30.3/src/tpath.c:100:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                slen = strlen(fullpath);
data/yaz-5.30.3/src/unix.c:77:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      + strlen ((ptr)->sun_path))
data/yaz-5.30.3/src/unix.c:93:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    int umask;
data/yaz-5.30.3/src/unix.c:185:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(add->sun_path, str, sizeof(add->sun_path)-1);
data/yaz-5.30.3/src/unix.c:211:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strspn(arg, "0123456789") == strlen(arg))
data/yaz-5.30.3/src/unix.c:230:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strspn(arg, "0123456789") == strlen(arg))
data/yaz-5.30.3/src/unix.c:340:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(i*10000+1000); /* 1ms, 11ms, 21ms */
data/yaz-5.30.3/src/unix.c:409:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(socket_unix.sun_path, path, sizeof(socket_unix.sun_path)-1);
data/yaz-5.30.3/src/unix.c:437:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    if (chmod(path, sp->umask != -1 ? sp->umask : 0666))
data/yaz-5.30.3/src/unix.c:437:43:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    if (chmod(path, sp->umask != -1 ? sp->umask : 0666))
data/yaz-5.30.3/src/uri.c:50:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        dst += strlen(dst);
data/yaz-5.30.3/src/uri.c:102:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sz += strlen(name[i]) + 3 + strlen(value[i]) * 3;
data/yaz-5.30.3/src/uri.c:102:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sz += strlen(name[i]) + 3 + strlen(value[i]) * 3;
data/yaz-5.30.3/src/uri.c:110:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ilen = strlen(name[i]);
data/yaz-5.30.3/src/uri.c:116:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        szp += strlen(*path + szp);
data/yaz-5.30.3/src/url.c:109:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                *uri_lean = nmem_malloc(nmem, strlen(uri) + 1);
data/yaz-5.30.3/src/utf8.c:247:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t inbytesleft = strlen(str);
data/yaz-5.30.3/src/wrbuf.c:91:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_write(b, buf, strlen(buf));
data/yaz-5.30.3/src/wrbuf.c:125:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cp0 = cp1 + strlen(from);
data/yaz-5.30.3/src/wrbuf.c:140:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_xmlputs_n(b, cp, strlen(cp));
data/yaz-5.30.3/src/wrbuf.c:237:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_iconv_write(b, cd, strz, strlen(strz));
data/yaz-5.30.3/src/wrbuf.c:254:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_iconv_write2(b, cd, strz, strlen(strz), wrbuf_xmlputs_n);
data/yaz-5.30.3/src/wrbuf.c:265:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_iconv_write2(b, cd, strz, strlen(strz), wrbuf_json_write);
data/yaz-5.30.3/src/wrbuf.c:306:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_write_escaped(b, str, strlen(str));
data/yaz-5.30.3/src/wrbuf.c:356:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_json_write(b, str, strlen(str));
data/yaz-5.30.3/src/wrbuf_sha1.c:216:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return wrbuf_sha1_write(b, cp, strlen(cp), hexit);
data/yaz-5.30.3/src/xcqlutil.c:254:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int l = strlen(b);
data/yaz-5.30.3/src/xmalloc.c:63:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dinfo->file, file, sizeof(dinfo->file)-1);
data/yaz-5.30.3/src/xmalloc.c:160:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dinfo->file, file, sizeof(dinfo->file)-1);
data/yaz-5.30.3/src/xmalloc.c:192:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dinfo->file, file, sizeof(dinfo->file)-1);
data/yaz-5.30.3/src/xmalloc.c:326:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *p = (char *)xmalloc_d(strlen(s)+1, file, line);
data/yaz-5.30.3/src/xmalloc.c:335:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (long) strlen(s)+1, p);
data/yaz-5.30.3/src/xmalloc.c:352:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t l = strlen(s);
data/yaz-5.30.3/src/xml_get.c:55:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (l > 0 && strlen((const char *) attr->name) == l &&
data/yaz-5.30.3/src/xmlerror.c:38:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t l = strlen(buf);
data/yaz-5.30.3/src/xmlquery.c:567:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            odr_create_Odr_oct(odr, cdata, strlen(cdata));
data/yaz-5.30.3/src/zoom-c.c:73:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        c->addinfo = (char*) xmalloc(strlen(addinfo) + strlen(addinfo2) + 3);
data/yaz-5.30.3/src/zoom-c.c:73:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        c->addinfo = (char*) xmalloc(strlen(addinfo) + strlen(addinfo2) + 3);
data/yaz-5.30.3/src/zoom-c.c:436:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        c->host_port = xmalloc(strlen(host) + strlen(http_lead) + 1);
data/yaz-5.30.3/src/zoom-c.c:436:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        c->host_port = xmalloc(strlen(host) + strlen(http_lead) + 1);
data/yaz-5.30.3/src/zoom-c.c:1303:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                *disp_len = strlen(*disp_term);
data/yaz-5.30.3/src/zoom-c.c:1320:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *value_len = strlen(*value_term);
data/yaz-5.30.3/src/zoom-c.c:1326:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *disp_len = strlen(*disp_term);
data/yaz-5.30.3/src/zoom-memcached.c:192:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(v) > 40)
data/yaz-5.30.3/src/zoom-memcached.c:248:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t lead_len = strlen(v) + 1;
data/yaz-5.30.3/src/zoom-memcached.c:290:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t lead_len = strlen(v) + 1;
data/yaz-5.30.3/src/zoom-memcached.c:336:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    argvlen[2] = strlen(key_val);
data/yaz-5.30.3/src/zoom-memcached.c:354:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        str = odr_malloc(odr, 20 + strlen(precision));
data/yaz-5.30.3/src/zoom-memcached.c:362:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        key = odr_malloc(odr, strlen(str) + 1 + oi_len);
data/yaz-5.30.3/src/zoom-memcached.c:365:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            memcpy(key + strlen(str) + 1, oi_buf, oi_len);
data/yaz-5.30.3/src/zoom-memcached.c:376:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            argvlen[2] = strlen(str) + 1 + oi_len;
data/yaz-5.30.3/src/zoom-memcached.c:398:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        str = odr_malloc(odr, 20 + strlen(precision));
data/yaz-5.30.3/src/zoom-memcached.c:406:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        key = odr_malloc(odr, strlen(str) + 1 + oi_len);
data/yaz-5.30.3/src/zoom-memcached.c:409:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            memcpy(key + strlen(str) + 1, oi_buf, oi_len);
data/yaz-5.30.3/src/zoom-memcached.c:414:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           key, strlen(str) + 1 + oi_len,
data/yaz-5.30.3/src/zoom-opt.c:182:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ZOOM_options_setl(opt, name, value, value ? strlen(value): 0);
data/yaz-5.30.3/src/zoom-opt.c:195:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *lenp = strlen(v);
data/yaz-5.30.3/src/zoom-sru.c:486:17:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                strcpy(*addinfo + sz, "");
data/yaz-5.30.3/test/test_ccl.c:201:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_comstack.c:217:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int protocol_package_length = strlen(protocol_package);
data/yaz-5.30.3/test/test_embed_record.c:70:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int marc_size = strlen(bin_marc);
data/yaz-5.30.3/test/test_embed_record.c:99:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        npr->u.databaseRecord = z_ext_record_usmarc(odr, input, strlen(input));
data/yaz-5.30.3/test/test_embed_record.c:101:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        npr->u.databaseRecord = z_ext_record_xml(odr, input, strlen(input));
data/yaz-5.30.3/test/test_embed_record.c:107:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(expected_output) == actual_len &&
data/yaz-5.30.3/test/test_file_glob.c:38:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t l_match = strlen(expect);
data/yaz-5.30.3/test/test_file_glob.c:39:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    YAZ_CHECK(f && strlen(f) >= l_match);
data/yaz-5.30.3/test/test_file_glob.c:40:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (f && strlen(f) >= l_match && !strcmp(f + strlen(f) - l_match, expect))
data/yaz-5.30.3/test/test_file_glob.c:40:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (f && strlen(f) >= l_match && !strcmp(f + strlen(f) - l_match, expect))
data/yaz-5.30.3/test/test_iconv.c:75:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t inbytesleft = in_len > 0 ? in_len : strlen(in_buf);
data/yaz-5.30.3/test/test_iconv.c:109:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t inbytesleft = strlen(buf);
data/yaz-5.30.3/test/test_iconv.c:142:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (wrbuf_len(b) == strlen(cmpbuf)
data/yaz-5.30.3/test/test_iconv.c:312:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t inbytesleft = strlen(inbuf);
data/yaz-5.30.3/test/test_iconv.c:353:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen(iso_8859_1_a[i]), iso_8859_1_a[i],
data/yaz-5.30.3/test/test_iconv.c:585:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t inbytesleft = strlen(inbuf);
data/yaz-5.30.3/test/test_icu.c:70:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int src8cstr_len = strlen(src8cstr);
data/yaz-5.30.3/test/test_icu.c:71:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int chk8cstr_len = strlen(chk8cstr);
data/yaz-5.30.3/test/test_icu.c:84:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        && (dest8->utf8_len == strlen(chk8cstr))
data/yaz-5.30.3/test/test_icu.c:452:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:511:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:566:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:604:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:646:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:788:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:830:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:872:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:915:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
data/yaz-5.30.3/test/test_icu.c:937:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        (long) strlen(norm_str), norm_str);
data/yaz-5.30.3/test/test_icu.c:952:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        (long) strlen(norm_str), norm_str);
data/yaz-5.30.3/test/test_odrstack.c:30:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(qstr, "1");
data/yaz-5.30.3/test/test_record_conv.c:28:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDocPtr doc = xmlParseMemory(xmlstring, strlen(xmlstring));
data/yaz-5.30.3/test/test_record_conv.c:167:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int r = yaz_record_conv_record(p, input_record, strlen(input_record),
data/yaz-5.30.3/test/test_record_conv.c:193:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (long) strlen(output_expect_record),
data/yaz-5.30.3/test/test_record_conv.c:446:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              iso2709_rec, strlen(iso2709_rec));
data/yaz-5.30.3/test/test_record_conv.c:529:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (long) strlen(opacxml_rec),
data/yaz-5.30.3/test/test_record_conv.c:539:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ret = yaz_xml_to_opac(mt, opacxml_rec, strlen(opacxml_rec),
data/yaz-5.30.3/test/test_record_conv.c:567:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (long) strlen(opacxml_rec),
data/yaz-5.30.3/test/test_record_conv.c:606:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ret = yaz_xml_to_opac(mt, opacxml_rec, strlen(opacxml_rec),
data/yaz-5.30.3/test/test_retrieval.c:23:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xmlDocPtr doc = xmlParseMemory(xmlstring, strlen(xmlstring));
data/yaz-5.30.3/test/test_solr.c:46:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (len == strlen(expect) && !memcmp(buf, expect, len))
data/yaz-5.30.3/test/test_solr.c:139:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *http_response = odr_malloc(o, strlen(content) + 300);
data/yaz-5.30.3/test/test_solr.c:146:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(http_response + strlen(http_response),
data/yaz-5.30.3/test/test_solr.c:147:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            "Content-Length: %d\r\n\r\n", (int) strlen(content));
data/yaz-5.30.3/test/test_solr.c:150:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_setbuf(o, http_response, strlen(http_response), 0);
data/yaz-5.30.3/test/test_solr.c:169:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *http_response = odr_malloc(o, strlen(content) + 300);
data/yaz-5.30.3/test/test_solr.c:176:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(http_response + strlen(http_response),
data/yaz-5.30.3/test/test_solr.c:177:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            "Content-Length: %d\r\n\r\n", (int) strlen(content));
data/yaz-5.30.3/test/test_solr.c:180:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_setbuf(o, http_response, strlen(http_response), 0);
data/yaz-5.30.3/test/test_solr.c:336:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        YAZ_CHECK(record->recordData_len == strlen(doc) &&
data/yaz-5.30.3/test/test_wrbuf.c:20:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    wrbuf_sha1_write(wr, msg, strlen(msg), 1);
data/yaz-5.30.3/test/test_wrbuf.c:35:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        wrbuf_sha1_write(wr, buf, strlen(buf), 1);
data/yaz-5.30.3/test/test_wrbuf.c:148:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        YAZ_CHECK(strlen(cp) == i);
data/yaz-5.30.3/test/test_wrbuf.c:157:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        YAZ_CHECK(strlen(cp) == i);
data/yaz-5.30.3/test/test_xml_include.c:27:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    doc = xmlParseMemory(xml_in, strlen(xml_in));
data/yaz-5.30.3/test/test_xml_include.c:49:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            YAZ_CHECK(strlen(expect) == len_out);
data/yaz-5.30.3/test/test_xml_include.c:50:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(expect) == len_out)
data/yaz-5.30.3/test/test_xml_include.c:77:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    doc = xmlParseMemory(xml_in, strlen(xml_in));
data/yaz-5.30.3/test/test_xml_include.c:110:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    doc = xmlParseMemory(xml_in, strlen(xml_in));
data/yaz-5.30.3/test/test_xml_include.c:131:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            YAZ_CHECK(strlen(expect) == len_out);
data/yaz-5.30.3/test/test_xml_include.c:132:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(expect) == len_out)
data/yaz-5.30.3/test/test_xmlquery.c:65:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (len_out == (int) strlen(expect_xml)
data/yaz-5.30.3/test/test_zgdu.c:32:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    odr_setbuf(dec, (char *) http_buf, strlen(http_buf), 0);
data/yaz-5.30.3/test/test_zgdu.c:54:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            YAZ_CHECK_EQ(http_len1, strlen(http_buf2));
data/yaz-5.30.3/test/test_zgdu.c:55:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            YAZ_CHECK(http_len1 == strlen(http_buf2) &&
data/yaz-5.30.3/util/cclsh.c:138:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(line_in) > 999) {
data/yaz-5.30.3/util/cql2pqf.c:90:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (*buf && buf[strlen(buf)-1] == '\n')
data/yaz-5.30.3/util/cql2pqf.c:91:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    buf[strlen(buf)-1] = '\0';
data/yaz-5.30.3/util/json-parse.c:34:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(f)) != EOF)
data/yaz-5.30.3/util/marcdump.c:86:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = fgetc(f);
data/yaz-5.30.3/util/marcdump.c:139:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = getc(inf)) != EOF)
data/yaz-5.30.3/util/marcdump.c:552:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(arg) > 4 && strncmp(arg, "xml,", 4) == 0)
data/yaz-5.30.3/util/yaz-icu.c:129:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen(p_config->conffile) && !strlen(p_config->print))
data/yaz-5.30.3/util/yaz-icu.c:129:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen(p_config->conffile) && !strlen(p_config->print))
data/yaz-5.30.3/util/yaz-icu.c:362:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(lang_str))
data/yaz-5.30.3/util/yaz-icu.c:364:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(script_str))
data/yaz-5.30.3/util/yaz-icu.c:366:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(location_str))
data/yaz-5.30.3/util/yaz-icu.c:368:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(variant_str))
data/yaz-5.30.3/util/yaz-icu.c:370:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(name_str))
data/yaz-5.30.3/util/yaz-icu.c:372:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(localname_str))
data/yaz-5.30.3/util/yaz-icu.c:375:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(localname_str))
data/yaz-5.30.3/util/yaz-icu.c:383:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(name_str))
data/yaz-5.30.3/util/yaz-icu.c:386:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(localname_str))
data/yaz-5.30.3/util/yaz-icu.c:567:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (config.conffile && strlen(config.conffile))
data/yaz-5.30.3/util/yaz-icu.c:570:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (config.print && strlen(config.print))
data/yaz-5.30.3/util/yaz-illclient.c:117:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nv->name, arg, len);
data/yaz-5.30.3/util/yaz-illclient.c:160:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len=strlen(buf)-1;
data/yaz-5.30.3/util/yaz-record-conv.c:80:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while ((c = getc(f)) != EOF)
data/yaz-5.30.3/util/yaz-xmlquery.c:96:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    doc = xmlParseMemory(xmlstr, strlen(xmlstr));
data/yaz-5.30.3/zoom/zoom-benchmark.c:265:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (! strlen(p_parameters->host))
data/yaz-5.30.3/zoom/zoom-benchmark.c:267:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (! strlen(p_parameters->query))
data/yaz-5.30.3/zoom/zoom-benchmark.c:318:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(parameters.proxy))
data/yaz-5.30.3/zoom/zoom-bug-641.c:52:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((n = read(fd, &buf[offset], size)) < size) {
data/yaz-5.30.3/zoom/zoomsh.c:132:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int cmd_len = strlen(cmd_str);
data/yaz-5.30.3/zoom/zoomsh.c:981:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(line_in) > sizeof(buf)-1)
data/yaz-5.30.3/zoom/zoomtst11.c:99:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getchar();
data/yaz-5.30.3/zoom/zoomtst9.c:81:30:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while ((ch = getchar()) != EOF)
data/yaz-5.30.3/ztest/dummy-opac.c:24:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        z_ext_record_usmarc(odr, marc_input, strlen(marc_input));
data/yaz-5.30.3/ztest/gfs-example.c:67:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r->len = strlen(r->record);
data/yaz-5.30.3/ztest/read-grs.c:78:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            t->tagValue->u.string = (char *)odr_malloc(o, strlen(value)+1);
data/yaz-5.30.3/ztest/read-grs.c:93:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            buf[strlen(buf)-1] = '\0';
data/yaz-5.30.3/ztest/ztest.c:206:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t l = strlen(p);
data/yaz-5.30.3/ztest/ztest.c:207:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(s) >= l && !memcmp(s, p, l))
data/yaz-5.30.3/ztest/ztest.c:256:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length = strlen(facet_name) + 10;
data/yaz-5.30.3/ztest/ztest.c:619:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                         strlen(xml_in_response));
data/yaz-5.30.3/ztest/ztest.c:876:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            r->len = strlen(cp);
data/yaz-5.30.3/ztest/ztest.c:900:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r->len = strlen(buf);
data/yaz-5.30.3/ztest/ztest.c:950:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            r->len = strlen(cp);
data/yaz-5.30.3/ztest/ztest.c:965:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            r->len = strlen(cp);
data/yaz-5.30.3/ztest/ztest.c:1048:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(term, q->scanClause, sizeof(term)-1);
data/yaz-5.30.3/ztest/ztest.c:1052:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(term, "0");

ANALYSIS SUMMARY:

Hits = 1454
Lines analyzed = 185375 in approximately 5.37 seconds (34529 lines/second)
Physical Source Lines of Code (SLOC) = 159704
Hits@level = [0] 1017 [1] 480 [2] 755 [3]  25 [4] 192 [5]   2
Hits@level+ = [0+] 2471 [1+] 1454 [2+] 974 [3+] 219 [4+] 194 [5+]   2
Hits/KSLOC@level+ = [0+] 15.4724 [1+] 9.10434 [2+] 6.09878 [3+] 1.37129 [4+] 1.21475 [5+] 0.0125232
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.