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/openbabel-3.1.1+dfsg/tools/obsym.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obmm.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obgen.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obthermo.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obdistgen.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obrotate.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obenergy.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obfragment.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obfitall.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obprobe.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obabel.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obgrep.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obseq.cpp
Examining data/openbabel-3.1.1+dfsg/tools/getopt.h
Examining data/openbabel-3.1.1+dfsg/tools/obminimize.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obrotamer.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obtautomer.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obxyz.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obfragment-index.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obfit.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obrms.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obprop.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obconformer.cpp
Examining data/openbabel-3.1.1+dfsg/tools/getopt.c
Examining data/openbabel-3.1.1+dfsg/tools/obdoc.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obspectrophore.cpp
Examining data/openbabel-3.1.1+dfsg/tools/obtorsion.cpp
Examining data/openbabel-3.1.1+dfsg/tools/svgdepict.cpp
Examining data/openbabel-3.1.1+dfsg/test/strip.cpp
Examining data/openbabel-3.1.1+dfsg/test/ffgaff.cpp
Examining data/openbabel-3.1.1+dfsg/test/charge_gasteiger.cpp
Examining data/openbabel-3.1.1+dfsg/test/isomorphismtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/tetranonplanartest.cpp
Examining data/openbabel-3.1.1+dfsg/test/bond.cpp
Examining data/openbabel-3.1.1+dfsg/test/buildertest.cpp
Examining data/openbabel-3.1.1+dfsg/test/smilestest.cpp
Examining data/openbabel-3.1.1+dfsg/test/implicitHtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/tautomertest.cpp
Examining data/openbabel-3.1.1+dfsg/test/ringtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/format.cpp
Examining data/openbabel-3.1.1+dfsg/test/uniqueidtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/inchiwrite.cpp
Examining data/openbabel-3.1.1+dfsg/test/squareplanartest.cpp
Examining data/openbabel-3.1.1+dfsg/test/lssrtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/tetraplanartest.cpp
Examining data/openbabel-3.1.1+dfsg/test/invalidsmarts.cpp
Examining data/openbabel-3.1.1+dfsg/test/regressionstest.cpp
Examining data/openbabel-3.1.1+dfsg/test/obbench.h
Examining data/openbabel-3.1.1+dfsg/test/math.cpp
Examining data/openbabel-3.1.1+dfsg/test/atom.cpp
Examining data/openbabel-3.1.1+dfsg/test/graphsymtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/obtest.h
Examining data/openbabel-3.1.1+dfsg/test/carspacegrouptest.cpp
Examining data/openbabel-3.1.1+dfsg/test/conversiontest.cpp
Examining data/openbabel-3.1.1+dfsg/test/rotortest.cpp
Examining data/openbabel-3.1.1+dfsg/test/aromatest.cpp
Examining data/openbabel-3.1.1+dfsg/test/smileytest.cpp
Examining data/openbabel-3.1.1+dfsg/test/roundtrip.cpp
Examining data/openbabel-3.1.1+dfsg/test/canonfragmenttest.cpp
Examining data/openbabel-3.1.1+dfsg/test/mmff94validate.cpp
Examining data/openbabel-3.1.1+dfsg/test/residue.cpp
Examining data/openbabel-3.1.1+dfsg/test/zipstream.cpp
Examining data/openbabel-3.1.1+dfsg/test/pdbreadfile.cpp
Examining data/openbabel-3.1.1+dfsg/test/spectrophoretest.cpp
Examining data/openbabel-3.1.1+dfsg/test/smilesmatch.cpp
Examining data/openbabel-3.1.1+dfsg/test/charge_mmff94.cpp
Examining data/openbabel-3.1.1+dfsg/test/cistranstest.cpp
Examining data/openbabel-3.1.1+dfsg/test/formula.cpp
Examining data/openbabel-3.1.1+dfsg/test/cifspacegrouptest.cpp
Examining data/openbabel-3.1.1+dfsg/test/addhtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/logp_psa.cpp
Examining data/openbabel-3.1.1+dfsg/test/mol.cpp
Examining data/openbabel-3.1.1+dfsg/test/shuffletest.cpp
Examining data/openbabel-3.1.1+dfsg/test/aliastest.cpp
Examining data/openbabel-3.1.1+dfsg/test/ffmmff94.cpp
Examining data/openbabel-3.1.1+dfsg/test/iterators.cpp
Examining data/openbabel-3.1.1+dfsg/test/stereoperceptiontest.cpp
Examining data/openbabel-3.1.1+dfsg/test/obtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/obmolbenchmark.cpp
Examining data/openbabel-3.1.1+dfsg/test/invalidsmiles.cpp
Examining data/openbabel-3.1.1+dfsg/test/multicmltest.cpp
Examining data/openbabel-3.1.1+dfsg/test/canonconsistenttest.cpp
Examining data/openbabel-3.1.1+dfsg/test/datatest.cpp
Examining data/openbabel-3.1.1+dfsg/test/cansmi.cpp
Examining data/openbabel-3.1.1+dfsg/test/periodictest.cpp
Examining data/openbabel-3.1.1+dfsg/test/canonstabletest.cpp
Examining data/openbabel-3.1.1+dfsg/test/automorphismtest.cpp
Examining data/openbabel-3.1.1+dfsg/test/tetrahedraltest.cpp
Examining data/openbabel-3.1.1+dfsg/test/phmodel.cpp
Examining data/openbabel-3.1.1+dfsg/test/gziptest.cpp
Examining data/openbabel-3.1.1+dfsg/test/smartstest.cpp
Examining data/openbabel-3.1.1+dfsg/test/conversion.cpp
Examining data/openbabel-3.1.1+dfsg/test/ffuff.cpp
Examining data/openbabel-3.1.1+dfsg/test/aligntest.cpp
Examining data/openbabel-3.1.1+dfsg/test/smartsparse.cpp
Examining data/openbabel-3.1.1+dfsg/test/formalcharge.cpp
Examining data/openbabel-3.1.1+dfsg/test/cmlreadfile.cpp
Examining data/openbabel-3.1.1+dfsg/test/ffghemical.cpp
Examining data/openbabel-3.1.1+dfsg/test/internalcoord.cpp
Examining data/openbabel-3.1.1+dfsg/test/stereotest.cpp
Examining data/openbabel-3.1.1+dfsg/test/unitcell.cpp
Examining data/openbabel-3.1.1+dfsg/test/maereadertest.cpp
Examining data/openbabel-3.1.1+dfsg/include/chemdrawcdx.h
Examining data/openbabel-3.1.1+dfsg/include/RDKitConv.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/generic.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/conformersearch.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/oberror.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/chargemodel.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/chains.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/isomorphism.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/obconversion.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/op.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/stereo/tetrahedral.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/stereo/stereo.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/stereo/tetranonplanar.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/stereo/cistrans.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/stereo/tetraplanar.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/stereo/bindings.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/stereo/squareplanar.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/plugin.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/text.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/groupcontrib.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/dlhandler.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/alias.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/query.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/locale.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/internalcoord.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/optransform.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/elements.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/obmolecformat.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/obiter.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/reactionfacade.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/ring.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/data.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/graphsym.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/mol.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/tautomer.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/descriptor.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/rotor.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/molchrg.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/matrix.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/kekulize.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/tokenst.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/grid.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/math/align.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/math/matrix3x3.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/math/spacegroup.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/math/erf.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/math/transform3d.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/math/vector3.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/depict/depict.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/depict/cairopainter.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/depict/commandpainter.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/depict/svgpainter.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/depict/painter.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/depict/asciipainter.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/atom.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/griddata.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/canon.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/reaction.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/forcefield.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/shared_ptr.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/inchiformat.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/xml.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/obfunctions.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/json.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/phmodel.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/spectrophore.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/pointgroup.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/distgeom.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/residue.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/builder.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/patty.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/rotamer.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/obutil.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/bitvec.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/lineend.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/data_utilities.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/format.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/kinetics.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/mcdlutil.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/bondtyper.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/fingerprint.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/parsmart.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/typer.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/bond.h
Examining data/openbabel-3.1.1+dfsg/include/openbabel/base.h
Examining data/openbabel-3.1.1+dfsg/include/inchi_api.h
Examining data/openbabel-3.1.1+dfsg/include/LBFGS.h
Examining data/openbabel-3.1.1+dfsg/include/iconv.h
Examining data/openbabel-3.1.1+dfsg/include/zlib.h
Examining data/openbabel-3.1.1+dfsg/include/OB-BGL/example.cpp
Examining data/openbabel-3.1.1+dfsg/include/OB-BGL/mol_graph.h
Examining data/openbabel-3.1.1+dfsg/include/OB-BGL/verbose_visitors.h
Examining data/openbabel-3.1.1+dfsg/include/zconf.h
Examining data/openbabel-3.1.1+dfsg/include/LBFGS/LineSearchBracketing.h
Examining data/openbabel-3.1.1+dfsg/include/LBFGS/LineSearchNocedalWright.h
Examining data/openbabel-3.1.1+dfsg/include/LBFGS/Param.h
Examining data/openbabel-3.1.1+dfsg/include/LBFGS/LineSearchBacktracking.h
Examining data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp
Examining data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp
Examining data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp
Examining data/openbabel-3.1.1+dfsg/scripts/java/openbabel-java.cpp
Examining data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp
Examining data/openbabel-3.1.1+dfsg/doc/modules.h
Examining data/openbabel-3.1.1+dfsg/doc/examples/obconversion_readstring.cpp
Examining data/openbabel-3.1.1+dfsg/doc/examples/obfingerprint_getfingerprint.cpp
Examining data/openbabel-3.1.1+dfsg/doc/examples/obconformersearch_default.cpp
Examining data/openbabel-3.1.1+dfsg/doc/examples/static_executable/myexe.cpp
Examining data/openbabel-3.1.1+dfsg/doc/examples/obforcefield_energy.cpp
Examining data/openbabel-3.1.1+dfsg/data/chemdrawcdx.h
Examining data/openbabel-3.1.1+dfsg/data/torlib.h
Examining data/openbabel-3.1.1+dfsg/data/types.h
Examining data/openbabel-3.1.1+dfsg/data/phmodeldata.h
Examining data/openbabel-3.1.1+dfsg/data/resdata.h
Examining data/openbabel-3.1.1+dfsg/data/bondtyp.h
Examining data/openbabel-3.1.1+dfsg/data/atomtyp.h
Examining data/openbabel-3.1.1+dfsg/src/memcpy.c
Examining data/openbabel-3.1.1+dfsg/src/data_utilities.cpp
Examining data/openbabel-3.1.1+dfsg/src/snprintf.h
Examining data/openbabel-3.1.1+dfsg/src/alias.cpp
Examining data/openbabel-3.1.1+dfsg/src/op.cpp
Examining data/openbabel-3.1.1+dfsg/src/descriptor.cpp
Examining data/openbabel-3.1.1+dfsg/src/typer.cpp
Examining data/openbabel-3.1.1+dfsg/src/query.cpp
Examining data/openbabel-3.1.1+dfsg/src/bond.cpp
Examining data/openbabel-3.1.1+dfsg/src/elements.cpp
Examining data/openbabel-3.1.1+dfsg/src/kekulize.cpp
Examining data/openbabel-3.1.1+dfsg/src/griddata.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/perception.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/gen3dstereohelper.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/facade.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/tetranonplanar.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/stereoutil.h
Examining data/openbabel-3.1.1+dfsg/src/stereo/stereo.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/cistrans.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/gen3dstereohelper.h
Examining data/openbabel-3.1.1+dfsg/src/stereo/tetraplanar.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/tetrahedral.cpp
Examining data/openbabel-3.1.1+dfsg/src/stereo/squareplanar.cpp
Examining data/openbabel-3.1.1+dfsg/src/strncasecmp.c
Examining data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/exampleformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mmcifformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/fastsearchformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/msmsformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/asciiformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/carformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/boxformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/zindoformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/pointcloudformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/molreport.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/dmolformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/shelxformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/acesformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/titleformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/fchkformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/rxnformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/fpsformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/pcmodelformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/castepformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/copyformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/gulpformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/smilesvalence.h
Examining data/openbabel-3.1.1+dfsg/src/formats/fingerprintformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/lmpdatformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/povrayformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/ArrayList.c
Examining data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/pwscfformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/moldenformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mpdformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/dlpolyformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xsfformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/wlnformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/aoforceformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/rinchiformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/chemkinformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/cifformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/painterformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/groformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/outformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/genbankformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/molproformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/fhformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/maeformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xml/pubchem.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xml/xmlformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xml/iconv.h
Examining data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xml/cmlreactformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xml/xml.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/featformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/MNAformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mdlvalence.h
Examining data/openbabel-3.1.1+dfsg/src/formats/exyzformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/posformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/acrformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/rsmiformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/jaguarformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/json/pubchemjsonformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/json/chemdoodlejsonformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/msiformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/crystal09format.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/vaspformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/textformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/CSRformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/adfformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/cacaoformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/cofformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/viewmolformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/qchemformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/png2format.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xyzformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/reportformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/gamessukformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/confabreport.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/stlformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/getinchi.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/lpmdformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mpqcformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/ArrayList.h
Examining data/openbabel-3.1.1+dfsg/src/formats/opendxformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/smiley.h
Examining data/openbabel-3.1.1+dfsg/src/formats/xedformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/svgformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/fhiaimsformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/orcaformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/nulformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/gausscubeformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/abinitformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/unichemformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/siestaformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/freefracformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/cssrformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/chemtoolformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/inchiformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/xtcformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/chemdrawct.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/wln-nextmove.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/ghemicalformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/APIInterface.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/cccformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/smileyformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/formats/amberformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/format.cpp
Examining data/openbabel-3.1.1+dfsg/src/locale.cpp
Examining data/openbabel-3.1.1+dfsg/src/tokenst.cpp
Examining data/openbabel-3.1.1+dfsg/src/zipstream.h
Examining data/openbabel-3.1.1+dfsg/src/dlhandler_win32.cpp
Examining data/openbabel-3.1.1+dfsg/src/conformersearch.cpp
Examining data/openbabel-3.1.1+dfsg/src/atom.cpp
Examining data/openbabel-3.1.1+dfsg/src/ring.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/none.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/fromfile.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/eem.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/gasteiger.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/mmff94.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/qeq.h
Examining data/openbabel-3.1.1+dfsg/src/charges/eqeq.h
Examining data/openbabel-3.1.1+dfsg/src/charges/qtpie.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/qeq.cpp
Examining data/openbabel-3.1.1+dfsg/src/charges/qtpie.h
Examining data/openbabel-3.1.1+dfsg/src/charges/eqeq.cpp
Examining data/openbabel-3.1.1+dfsg/src/fingerprint.cpp
Examining data/openbabel-3.1.1+dfsg/src/obiter.cpp
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.h
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.h
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.h
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldghemical.cpp
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefielduff.h
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldghemical.h
Examining data/openbabel-3.1.1+dfsg/src/forcefields/forcefielduff.cpp
Examining data/openbabel-3.1.1+dfsg/src/elementtable.h
Examining data/openbabel-3.1.1+dfsg/src/oberror.cpp
Examining data/openbabel-3.1.1+dfsg/src/chains.cpp
Examining data/openbabel-3.1.1+dfsg/src/zipstreamimpl.h
Examining data/openbabel-3.1.1+dfsg/src/generic.cpp
Examining data/openbabel-3.1.1+dfsg/src/base.cpp
Examining data/openbabel-3.1.1+dfsg/src/residue.cpp
Examining data/openbabel-3.1.1+dfsg/src/data.cpp
Examining data/openbabel-3.1.1+dfsg/src/math/vector3.cpp
Examining data/openbabel-3.1.1+dfsg/src/math/matrix3x3.cpp
Examining data/openbabel-3.1.1+dfsg/src/math/align.cpp
Examining data/openbabel-3.1.1+dfsg/src/math/spacegroup.cpp
Examining data/openbabel-3.1.1+dfsg/src/math/transform3d.cpp
Examining data/openbabel-3.1.1+dfsg/src/builder.cpp
Examining data/openbabel-3.1.1+dfsg/src/molchrg.cpp
Examining data/openbabel-3.1.1+dfsg/src/pointgroup.cpp
Examining data/openbabel-3.1.1+dfsg/src/depict/depict.cpp
Examining data/openbabel-3.1.1+dfsg/src/depict/commandpainter.cpp
Examining data/openbabel-3.1.1+dfsg/src/depict/cairopainter.cpp
Examining data/openbabel-3.1.1+dfsg/src/depict/svgpainter.cpp
Examining data/openbabel-3.1.1+dfsg/src/depict/asciipainter.cpp
Examining data/openbabel-3.1.1+dfsg/src/bondtyper.cpp
Examining data/openbabel-3.1.1+dfsg/src/canon.cpp
Examining data/openbabel-3.1.1+dfsg/src/plugin.cpp
Examining data/openbabel-3.1.1+dfsg/src/mol.cpp
Examining data/openbabel-3.1.1+dfsg/src/snprintf.c
Examining data/openbabel-3.1.1+dfsg/src/bitvec.cpp
Examining data/openbabel-3.1.1+dfsg/src/transform.cpp
Examining data/openbabel-3.1.1+dfsg/src/spectrophore.cpp
Examining data/openbabel-3.1.1+dfsg/src/rand.cpp
Examining data/openbabel-3.1.1+dfsg/src/fingerprints/fingerecfp.cpp
Examining data/openbabel-3.1.1+dfsg/src/fingerprints/finger3.cpp
Examining data/openbabel-3.1.1+dfsg/src/fingerprints/finger2.cpp
Examining data/openbabel-3.1.1+dfsg/src/grid.cpp
Examining data/openbabel-3.1.1+dfsg/src/patty.cpp
Examining data/openbabel-3.1.1+dfsg/src/descriptors/cansmidescriptor.cpp
Examining data/openbabel-3.1.1+dfsg/src/descriptors/groupcontrib.cpp
Examining data/openbabel-3.1.1+dfsg/src/descriptors/cmpdfilter.cpp
Examining data/openbabel-3.1.1+dfsg/src/descriptors/smartsdescriptors.cpp
Examining data/openbabel-3.1.1+dfsg/src/descriptors/filters.cpp
Examining data/openbabel-3.1.1+dfsg/src/descriptors/inchidescriptor.cpp
Examining data/openbabel-3.1.1+dfsg/src/rotamer.cpp
Examining data/openbabel-3.1.1+dfsg/src/reactionfacade.cpp
Examining data/openbabel-3.1.1+dfsg/src/matrix.cpp
Examining data/openbabel-3.1.1+dfsg/src/GUI/stdwx.cpp
Examining data/openbabel-3.1.1+dfsg/src/GUI/optswx.h
Examining data/openbabel-3.1.1+dfsg/src/GUI/selformats.h
Examining data/openbabel-3.1.1+dfsg/src/GUI/OBGUI.cpp
Examining data/openbabel-3.1.1+dfsg/src/GUI/OBGUI.h
Examining data/openbabel-3.1.1+dfsg/src/GUI/optswx.cpp
Examining data/openbabel-3.1.1+dfsg/src/GUI/stdwx.h
Examining data/openbabel-3.1.1+dfsg/src/obmolecformat.cpp
Examining data/openbabel-3.1.1+dfsg/src/forcefield.cpp
Examining data/openbabel-3.1.1+dfsg/src/rand.h
Examining data/openbabel-3.1.1+dfsg/src/parsmart.cpp
Examining data/openbabel-3.1.1+dfsg/src/distgeom.cpp
Examining data/openbabel-3.1.1+dfsg/src/confsearch.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/partialcharges.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/deferred.h
Examining data/openbabel-3.1.1+dfsg/src/ops/neutralize.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/opisomorph.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/addinindex.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/opsplit.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/sort.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/opisomorph.h
Examining data/openbabel-3.1.1+dfsg/src/ops/addnonpolarh.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/unique.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/canonical.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/gen3d.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/delnonpolarh.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/addpolarh.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/gen2D.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/largest.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/fillUC.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/forcefield.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/addfilename.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/op2d.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/xout.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/opconfab.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/loader.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/opalign.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/optransform.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/changecell.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/conformer.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/ophighlight.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/readconformers.cpp
Examining data/openbabel-3.1.1+dfsg/src/ops/delpolarh.cpp
Examining data/openbabel-3.1.1+dfsg/src/isomorphism.cpp
Examining data/openbabel-3.1.1+dfsg/src/doxygen_pages.cpp
Examining data/openbabel-3.1.1+dfsg/src/RDKitConv.cpp
Examining data/openbabel-3.1.1+dfsg/src/phmodel.cpp
Examining data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp
Examining data/openbabel-3.1.1+dfsg/src/obconversion.cpp
Examining data/openbabel-3.1.1+dfsg/src/obutil.cpp
Examining data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp
Examining data/openbabel-3.1.1+dfsg/src/chargemodel.cpp
Examining data/openbabel-3.1.1+dfsg/src/graphsym.cpp
Examining data/openbabel-3.1.1+dfsg/src/obfunctions.cpp
Examining data/openbabel-3.1.1+dfsg/src/tautomer.cpp
Examining data/openbabel-3.1.1+dfsg/src/rotor.cpp

FINAL RESULTS:

data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:670:3:  [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,name);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:1637:15:  [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).
      *cptr = strcpy(*cptr, cstr);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:3475:10:  [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).
  return strcpy(newstr, str);
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:690:3:  [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,name);
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1277:3:  [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,SWIG_Perl_TypeProxyName(type));
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1505:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#ifdef access
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1506:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  #undef access
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2474:10:  [4] (format) snprintf:
  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.
# ifndef snprintf
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2475:11:  [4] (format) snprintf:
  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.
#  define snprintf _snprintf
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2475:20:  [4] (format) _snprintf:
  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.
#  define snprintf _snprintf
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:704:3:  [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,name);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:844:25:  [4] (format) _snprintf:
  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.
#  define PyOS_snprintf _snprintf
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:846:25:  [4] (format) snprintf:
  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.
#  define PyOS_snprintf snprintf
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:863:9:  [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.
  res = vsnprintf(buf, sizeof(buf), fmt, ap);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:813:3:  [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,name);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1515:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(klass_name, "TYPE%s", type->name);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1571:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(klass_name, "TYPE%s", type->name);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1721:3:  [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, type->name);
data/openbabel-3.1.1+dfsg/src/GUI/optswx.cpp:116:3:  [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(pNewStr,OptionsText); //Make a working copy
data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp:168:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s did not load properly.\n Error: %s",
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:409:7:  [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(_pindex->header.fpid, _pFP->GetID());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:214:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(line,"%s%d",semis,icons[j]);
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:324: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(strngs[nn++],strg);
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:336: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(tstr,strngs[i]);
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:337: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(strngs[i],strngs[j]);
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:338: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(strngs[j],tstr);
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:234: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(full_coord_path,coord_file);
data/openbabel-3.1.1+dfsg/src/formats/inchiformat.cpp:88: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).
  inp.szInChI = strcpy(nonconstinchi, inchi.c_str());
data/openbabel-3.1.1+dfsg/src/formats/inchiformat.cpp:396:7:  [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(iat.elname,OBElements::GetSymbol(patom->GetAtomicNum()));
data/openbabel-3.1.1+dfsg/src/formats/inchiformat.cpp:776:10:  [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).
  return strcpy(opts, sopts.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:186: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.
            sscanf(buffer, "########## %[^:]:%s", attr, val);
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:685: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(buffer,vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:688:11:  [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(buffer,vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp:178:7:  [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(symb,OBElements::GetSymbol(atom->GetAtomicNum()));
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:46:18:  [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).
#define str_copy strcpy
data/openbabel-3.1.1+dfsg/src/parsmart.cpp:1715: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(_buffer,buffer);
data/openbabel-3.1.1+dfsg/src/parsmart.cpp:1730: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(_buffer, s.c_str());
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1773:11:  [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( symmetry_code, buf ) ;
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1776:79:  [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).
          if( NormalAxesCounts[i] == 1 ){ snprintf( buf, 100, "(C%d) ", i ) ; strcat( symmetry_code, buf ) ; }
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1777:103:  [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).
          if( NormalAxesCounts[i] >  1 ){ snprintf( buf, 100, "%d*(C%d) ", NormalAxesCounts[i], i ) ; strcat( symmetry_code, buf ) ; }
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1780:81:  [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).
          if( ImproperAxesCounts[i] == 1 ){ snprintf( buf, 100, "(S%d) ", i ) ; strcat( symmetry_code, buf ) ; }
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1781:107:  [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).
          if( ImproperAxesCounts[i] >  1 ){ snprintf( buf, 100, "%d*(S%d) ", ImproperAxesCounts[i], i ) ; strcat( symmetry_code, buf ) ; }
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1784:84:  [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).
        if( PlanesCount >  1 ){ snprintf( buf, 100, "%d*(sigma) ", PlanesCount ) ; strcat( symmetry_code, buf ) ; }
data/openbabel-3.1.1+dfsg/src/snprintf.c:398:27:  [4] (format) snprintf:
  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.
#define portable_snprintf snprintf
data/openbabel-3.1.1+dfsg/src/snprintf.c:400:28:  [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.
#define portable_vsnprintf vsnprintf
data/openbabel-3.1.1+dfsg/src/snprintf.c:1036:42:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            str_arg_l += sprintf(tmp+str_arg_l, f, ptr_arg);
data/openbabel-3.1.1+dfsg/src/snprintf.c:1043:44:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                str_arg_l+=sprintf(tmp+str_arg_l, f, int_arg);
data/openbabel-3.1.1+dfsg/src/snprintf.c:1046:44:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                str_arg_l+=sprintf(tmp+str_arg_l, f, long_arg);
data/openbabel-3.1.1+dfsg/src/snprintf.c:1051:44:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                str_arg_l+=sprintf(tmp+str_arg_l,f,long_long_arg);
data/openbabel-3.1.1+dfsg/src/snprintf.c:1063:44:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                str_arg_l+=sprintf(tmp+str_arg_l, f, uint_arg);
data/openbabel-3.1.1+dfsg/src/snprintf.c:1066:44:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                str_arg_l+=sprintf(tmp+str_arg_l, f, ulong_arg);
data/openbabel-3.1.1+dfsg/src/snprintf.c:1071:44:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                str_arg_l+=sprintf(tmp+str_arg_l,f,ulong_long_arg);
data/openbabel-3.1.1+dfsg/src/snprintf.h:10:12:  [4] (format) snprintf:
  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.
extern int snprintf(char *, size_t, const char *, /*args*/ ...);
data/openbabel-3.1.1+dfsg/src/snprintf.h:11:12:  [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.
extern int vsnprintf(char *, size_t, const char *, va_list);
data/openbabel-3.1.1+dfsg/src/snprintf.h:17:9:  [4] (format) snprintf:
  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.
#define snprintf  portable_snprintf
data/openbabel-3.1.1+dfsg/src/snprintf.h:18:9:  [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.
#define vsnprintf portable_vsnprintf
data/openbabel-3.1.1+dfsg/test/math.cpp:44:3:  [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( currentFunc, #func ); \
data/openbabel-3.1.1+dfsg/src/descriptor.cpp:66:14:  [3] (random) setstate:
  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.
  optionText.setstate(std::ios::badbit); //shows error
data/openbabel-3.1.1+dfsg/src/descriptor.cpp:125:20:  [3] (random) setstate:
  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.
        optionText.setstate(std::ios::badbit); //shows error
data/openbabel-3.1.1+dfsg/src/descriptor.cpp:134:20:  [3] (random) setstate:
  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.
        optionText.setstate(std::ios::badbit); //shows error
data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp:84:7:  [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("BABEL_LIBDIR") != nullptr)
data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp:89:22:  [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.
      strncpy(buffer,getenv("BABEL_LIBDIR"), BUFF_SIZE - 1);
data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp:156:8:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    if(LoadLibrary(lib_name.c_str()))
data/openbabel-3.1.1+dfsg/src/dlhandler_win32.cpp:131:8:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    if(LoadLibrary(lib_name.c_str()))
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:2044:9:  [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(static_cast<unsigned int>(time(nullptr)));
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:684:13:  [3] (random) setstate:
  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.
        ifs.setstate(ios::eofbit); //ignore everything after end of document
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:742:9:  [3] (random) setstate:
  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.
    ifs.setstate(ios::eofbit);
data/openbabel-3.1.1+dfsg/src/formats/maeformat.cpp:142:31:  [3] (random) setstate:
  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.
        pConv->GetInStream()->setstate(ios::eofbit);
data/openbabel-3.1.1+dfsg/src/formats/pointcloudformat.cpp:192:10:  [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.
    std::srand(0); // let's be deterministic(FSVO)
data/openbabel-3.1.1+dfsg/src/formats/xml/xml.cpp:252:22:  [3] (random) setstate:
  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.
      GetInStream()->setstate(ios::eofbit);
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:1488: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(30000);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1547:13:  [3] (random) setstate:
  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.
        is->setstate(ios::failbit); // do not use the input filestream...
data/openbabel-3.1.1+dfsg/src/ops/conformer.cpp:152:23:  [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.
    if (systematic || random || fast || weighted) {
data/openbabel-3.1.1+dfsg/src/ops/conformer.cpp:180:18:  [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.
      } else if (random) {
data/openbabel-3.1.1+dfsg/src/ops/opsplit.cpp:107:14:  [3] (random) setstate:
  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.
      oldfs->setstate(std::ios::failbit);
data/openbabel-3.1.1+dfsg/src/patty.cpp:88: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("BABEL_DATADIR") == nullptr)
data/openbabel-3.1.1+dfsg/src/patty.cpp:97:23:  [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.
          patty_dir = getenv("BABEL_DATADIR");
data/openbabel-3.1.1+dfsg/src/rand.cpp:509: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( (unsigned)time( NULL ) );
data/openbabel-3.1.1+dfsg/src/rand.cpp:515: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( x );
data/openbabel-3.1.1+dfsg/src/tokenst.cpp:207:27:  [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* datadir = getenv(envvar.c_str());
data/openbabel-3.1.1+dfsg/tools/getopt.c:217:9:  [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.
#ifndef getenv
data/openbabel-3.1.1+dfsg/tools/getopt.c:218:14:  [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.
extern char *getenv ();
data/openbabel-3.1.1+dfsg/tools/getopt.c:403: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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/openbabel-3.1.1+dfsg/tools/getopt.c:1172:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/openbabel-3.1.1+dfsg/tools/getopt.c:1184:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (int ___argc, char *const *___argv,
data/openbabel-3.1.1+dfsg/tools/getopt.c:1219:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/openbabel-3.1.1+dfsg/tools/getopt.h:152:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
data/openbabel-3.1.1+dfsg/tools/getopt.h:155:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
data/openbabel-3.1.1+dfsg/tools/getopt.h:159:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *const *___argv,
data/openbabel-3.1.1+dfsg/tools/getopt.h:173:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/openbabel-3.1.1+dfsg/tools/getopt.h:175:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long ();
data/openbabel-3.1.1+dfsg/tools/obgrep.cpp:59:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "t:nvcfi:-")) != -1)
data/openbabel-3.1.1+dfsg/tools/obrms.cpp:246:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "hfmxso:", long_options, &option_index) ) != -1) {
data/openbabel-3.1.1+dfsg/tools/obspectrophore.cpp:39:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "ui:n:a:s:r:h")) != -1)
data/openbabel-3.1.1+dfsg/tools/obxyz.cpp:52:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "x:y:z:c:")) != -1)
data/openbabel-3.1.1+dfsg/include/OB-BGL/example.cpp:66: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).
    ifs.open(FileIn);
data/openbabel-3.1.1+dfsg/include/inchi_api.h:147: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    elname[ATOM_EL_LEN];  /* zero-terminated chemical element name:*/
data/openbabel-3.1.1+dfsg/include/inchi_api.h:763: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         szErrMsg[STR_ERR_LEN];
data/openbabel-3.1.1+dfsg/include/inchi_api.h:1026: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          elname[ATOM_EL_LEN];      /* chem. element name */
data/openbabel-3.1.1+dfsg/include/inchi_api.h:1110: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          pStrErrStruct[STR_ERR_LEN]; /* intermediate log (warning/error report) */
data/openbabel-3.1.1+dfsg/include/openbabel/atom.h:76:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[OBATOM_TYPE_LEN];   //!< atomic type
data/openbabel-3.1.1+dfsg/include/openbabel/fingerprint.h:143: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 fpid[15];            ///<ID of the fingerprint type
data/openbabel-3.1.1+dfsg/include/openbabel/fingerprint.h:145: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 datafilename[256];   ///<the data that this is an index to
data/openbabel-3.1.1+dfsg/include/openbabel/forcefield.h:534: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 	_logbuf[BUFF_SIZE+1]; //!< Temporary buffer for logfile output
data/openbabel-3.1.1+dfsg/include/openbabel/inchiformat.h:147:18:  [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).
            n1 = atoi(&*p1);
data/openbabel-3.1.1+dfsg/include/openbabel/inchiformat.h:153:18:  [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).
            n2 = atoi(&*p2);
data/openbabel-3.1.1+dfsg/include/openbabel/ring.h:107: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[30];   //!< ring type
data/openbabel-3.1.1+dfsg/include/openbabel/rotor.h:60: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.
  OBRotorRule(char *buffer,int ref[4],std::vector<double> &vals,double d):
data/openbabel-3.1.1+dfsg/include/openbabel/rotor.h:65:7:  [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(_ref,ref,sizeof(int)*4);
data/openbabel-3.1.1+dfsg/include/openbabel/rotor.h:82:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void    GetReferenceAtoms(int ref[4]) { memcpy(ref,_ref,sizeof(int)*4); }
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:621: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 const char hex[17] = "0123456789abcdef";
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:1046:7:  [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(pack, ptr, sz);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:1064: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(ptr, sobj->pack, size);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:1630:43:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:3495: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.
	if (csize) memcpy(val, cptr, csize*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14374: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[2] = "x"; tmp[0] = result;     r_ans = Rf_mkString(tmp);  }  vmaxset(r_vmax);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14551:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
SWIGEXPORT SEXP R_swig_Residue_set ( SEXP s_Residue) { char (*arg1)[4] ; void *argp1 = 0 ; int res1 = 0 ;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14555:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    arg1 = reinterpret_cast< char (*)[4] >(argp1); { if (arg1) { size_t ii = 0; for (; ii < (size_t)100; ++ii) { if (arg1[ii]) {
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14561:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
SWIGEXPORT SEXP R_swig_Residue_get ( SEXP s_swig_copy) { char (*result)[4] = 0 ; unsigned int r_nprotect = 0;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14562:69:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char (*)[4])(char (*)[4])OpenBabel::Residue;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14562:82:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char (*)[4])(char (*)[4])OpenBabel::Residue;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14565:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
SWIGEXPORT SEXP R_swig_ElemDesc_set ( SEXP s_ElemDesc) { char (*arg1)[4] ; void *argp1 = 0 ; int res1 = 0 ;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14569:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    arg1 = reinterpret_cast< char (*)[4] >(argp1); { if (arg1) { size_t ii = 0; for (; ii < (size_t)1024; ++ii) {
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14575:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
SWIGEXPORT SEXP R_swig_ElemDesc_get ( SEXP s_swig_copy) { char (*result)[4] = 0 ; unsigned int r_nprotect = 0;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14576:69:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char (*)[4])(char (*)[4])OpenBabel::ElemDesc;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:14576:82:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  SEXP r_ans = R_NilValue ; VMAXTYPE r_vmax = vmaxget() ; result = (char (*)[4])(char (*)[4])OpenBabel::ElemDesc;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:19979: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.
  if (arg2) memcpy(arg1->fpid,arg2,16*sizeof(char)); else memset(arg1->fpid,0,16*sizeof(char)); r_ans = R_NilValue; free(arg2);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:19995: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.
  if (arg2) memcpy(arg1->datafilename,arg2,256*sizeof(char)); else memset(arg1->datafilename,0,256*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:36130:104:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   arg1 = reinterpret_cast< OpenBabel::OBResidueIter * >(argp1); result = (char)(*arg1)->GetChain(); { char tmp[2] = "x";
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:641: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 const char hex[17] = "0123456789abcdef";
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1272: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 result[1024];
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1496:8:  [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).
#ifdef open
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1497:10:  [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).
  #undef open
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2179:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2489: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 temp[256];
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2490: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(temp, "%llu", value);
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2557: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.
	if (csize) memcpy(val, cptr, csize*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:44657:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      sv_setpv(sv, (const char *) swig_constants[i].pvalue);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:655: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 const char hex[17] = "0123456789abcdef";
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:816:3:  [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(newstr, cstr, len+1);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:860: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 buf[SWIG_PYBUFFER_SIZE * 2];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:2050: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 result[SWIG_BUFFER_SIZE];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:2064: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 result[SWIG_BUFFER_SIZE];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:2075: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 result[SWIG_BUFFER_SIZE];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:2217:7:  [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(pack, ptr, size);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:2235: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(ptr, sobj->pack, size);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:2872: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 mesg[256];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4491: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.
          char msg[1024];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4492:11:  [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, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4507: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[1024];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4508: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, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4794:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4795:2:  [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, "in sequence element %d ", (int)_index);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4995:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4996:6:  [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, "in sequence element %d", (int)i);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:5774:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:5812:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:7449: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.
	if (csize) memcpy(val, cptr, csize*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:32334: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 temp2[15] ; int res2 ; PyObject *swig_obj[2] ;
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:32341:56:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->fpid,arg2,15*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:32371: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.
  int res1 = 0 ; char temp2[256] ; int res2 ; PyObject *swig_obj[2] ;
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:32378:56:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->datafilename,arg2,256*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:764: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 const char hex[17] = "0123456789abcdef";
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1136: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 buf[128];
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1149:3:  [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 of type ", argn-1 );
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1716: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 result[1024];
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:4014:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:4015:2:  [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, "in sequence element %d ", _index);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:4231:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:4232:6:  [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, "in sequence element %d", i);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:5722:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:8293: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.
	if (csize) memcpy(val, cptr, csize*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:31252: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 temp2[15] ; int res2 ; if ((argc < 1) || (argc > 1)) {
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:31259:55:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->fpid,arg2,15*sizeof(char));
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:31289: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 temp2[256] ; int res2 ; if ((argc < 1) || (argc > 1)) {
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:31296:55:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->datafilename,arg2,256*sizeof(char));
data/openbabel-3.1.1+dfsg/src/alias.cpp:91: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).
        n = atoi(_alias.c_str()+1);
data/openbabel-3.1.1+dfsg/src/atom.cpp:477: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 num[6];
data/openbabel-3.1.1+dfsg/src/bitvec.cpp:353: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).
        int bit = atoi(tokens[i].c_str());
data/openbabel-3.1.1+dfsg/src/bitvec.cpp:620: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).
        int bit = atoi(tokens[i].c_str());
data/openbabel-3.1.1+dfsg/src/bondtyper.cpp:88: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).
                bovector.push_back( atoi((char *)vs[i].c_str()) );
data/openbabel-3.1.1+dfsg/src/bondtyper.cpp:88:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                bovector.push_back( atoi((char *)vs[i].c_str()) );
data/openbabel-3.1.1+dfsg/src/builder.cpp:122: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/builder.cpp:182: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/chains.cpp:55: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 ChainsResName[RESIDMAX][4] = {
data/openbabel-3.1.1+dfsg/src/chains.cpp:219:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ChainsAtomName[ATOMMAX][4] = {
data/openbabel-3.1.1+dfsg/src/chains.cpp:859: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/charges/eem.cpp:113:60:  [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).
      parameter.bond_order = bond_order == "*" ? -1 : std::atoi(bond_order.c_str());
data/openbabel-3.1.1+dfsg/src/charges/eqeq.cpp:52: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/charges/eqeq.cpp:78: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).
      atomicNumber = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/charges/eqeq.cpp:79: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).
      _chargeCenter[atomicNumber] = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/charges/fromfile.cpp:58: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 name[17];
data/openbabel-3.1.1+dfsg/src/charges/fromfile.cpp:61: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 *fin = fopen( file, "r" );
data/openbabel-3.1.1+dfsg/src/charges/qeq.cpp:125: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/charges/qtpie.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/confsearch.cpp:343: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*)initialCoord,(char*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/confsearch.cpp:344: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*)store_initial,(char*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/data.cpp:113: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).
                                  atoi(vs[1].c_str()),
data/openbabel-3.1.1+dfsg/src/data.cpp:118: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).
                                  atoi(vs[6].c_str()),
data/openbabel-3.1.1+dfsg/src/data.cpp: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 desc[128];
data/openbabel-3.1.1+dfsg/src/data.cpp:574:18:  [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).
            bo = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/data.cpp:659: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).
          hyb = atoi((*i).c_str());
data/openbabel-3.1.1+dfsg/src/data.cpp:673: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 charBuffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp:79: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp:167: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/dlhandler_win32.cpp: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 path[MAX_PATH+1];
data/openbabel-3.1.1+dfsg/src/fingerprints/fingerecfp.cpp:223: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.
  unsigned char buffer[8];
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1296: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*)initialCoord,(char*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1297: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*)store_initial,(char*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1325: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*)bestconf,(char*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1342: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 permutations[24*4] = {0,1,2,3, 1,0,2,3, 0,2,1,3, 1,2,0,3, 2,0,1,3, 2,1,0,3,
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1346: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 factorial[5] = {0, 1, 2, 6, 24};
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1390: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((char*)minconf,(char*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1407: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((char*)bestconf,(char*)minconf,sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1412: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((char*)verybestconf,(char*)bestconf,sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1618: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((double*)initialCoord,(double*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:1787:7:  [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*)confCoord,(char*)_mol.GetCoordinates(),sizeof(double)*3*_mol.NumAtoms());
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:2433: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*)origCoords,(char*)_mol.GetCoordinates(),sizeof(double)*_ncoords);
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:2521:7:  [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*)lastStep,(char*)currentCoords,sizeof(double)*numCoords);
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:2551: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((char*)currentCoords,(char*)lastStep,sizeof(double)*numCoords);
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:2953: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(_grad1, _gradientPtr, sizeof(double)*_ncoords);
data/openbabel-3.1.1+dfsg/src/forcefield.cpp:3037:7:  [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(_gradientPtr, _grad1, sizeof(double)*_ncoords);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1079: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1141: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).
        parameter._ipar.push_back(atoi(vs[4].c_str())); // IDIVF
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1224: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 buffer[150];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldghemical.cpp:856: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldghemical.cpp:962: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:49: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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), 0, 0, _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:49:52:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), 0, 0, _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:101: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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), 0, _ffangleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:101:52:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), 0, _ffangleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:101:72:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), 0, _ffangleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:164: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).
      parameter = GetParameter(atoi(b->GetType()), 0, 0, 0, _ffstretchbendparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:171: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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), 0, _ffangleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:171:52:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), 0, _ffangleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:171:72:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), 0, _ffangleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:174: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).
      parameter = GetParameter(atoi(b->GetType()), atoi(a->GetType()), 0, 0, _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:174:52:  [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).
      parameter = GetParameter(atoi(b->GetType()), atoi(a->GetType()), 0, 0, _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:177: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).
      parameter = GetParameter(atoi(b->GetType()), atoi(c->GetType()), 0, 0, _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:177:52:  [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).
      parameter = GetParameter(atoi(b->GetType()), atoi(c->GetType()), 0, 0, _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:219: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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), atoi(d->GetType()), _fftorsionparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:219:52:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), atoi(d->GetType()), _fftorsionparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:219:72:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), atoi(d->GetType()), _fftorsionparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:219:92:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), atoi(c->GetType()), atoi(d->GetType()), _fftorsionparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:293: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).
        if (atoi(b->GetType()) == _ffoutplanebendparams[idx].a) {
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:307: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).
          if (atoi(d->GetType()) == _ffoutplanebendparams[idx].b) {
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:317: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).
          if (atoi(a->GetType()) == _ffoutplanebendparams[idx].b) {
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:328: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).
          if (atoi(c->GetType()) == _ffoutplanebendparams[idx].b) {
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:368: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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), 0, 0, _ffvdwprparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:368:52:  [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).
      parameter = GetParameter(atoi(a->GetType()), atoi(b->GetType()), 0, 0, _ffvdwprparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:373:34:  [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).
        parameter = GetParameter(atoi(a->GetType()), 0, 0, 0, _ffvdwparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:376:34:  [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).
        parameter = GetParameter(atoi(b->GetType()), 0, 0, 0, _ffvdwparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:425:29:  [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).
      idx = GetParameterIdx(atoi(a->GetType()), atoi(b->GetType()), 0, 0, _ffdipoleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:425:49:  [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).
      idx = GetParameterIdx(atoi(a->GetType()), atoi(b->GetType()), 0, 0, _ffdipoleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:438:33:  [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).
          idx = GetParameterIdx(atoi(c->GetType()), atoi(d->GetType()), 0, 0, _ffdipoleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:438: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).
          idx = GetParameterIdx(atoi(c->GetType()), atoi(d->GetType()), 0, 0, _ffdipoleparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:520: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:598: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:599: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).
        parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:611: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:612: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).
        parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:613: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).
        parameter.c = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:620: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:628: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:629: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).
        parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:630: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).
        parameter.c = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:631: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).
        parameter.d = atoi(vs[4].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:639: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:640: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).
        parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:646: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:647: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).
        parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:654: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:661: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).
        parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmm2.cpp:662: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).
        parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:161: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).
                atoi(_bondcalculations[i].a->GetType()), atoi(_bondcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:161:58:  [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).
                atoi(_bondcalculations[i].a->GetType()), atoi(_bondcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:278: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).
                atoi(_anglecalculations[i].a->GetType()), atoi(_anglecalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:278:59:  [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).
                atoi(_anglecalculations[i].a->GetType()), atoi(_anglecalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:279: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).
                atoi(_anglecalculations[i].c->GetType()), _anglecalculations[i].at,
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:391: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).
                atoi(_strbndcalculations[i].a->GetType()), atoi(_strbndcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:391:60:  [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).
                atoi(_strbndcalculations[i].a->GetType()), atoi(_strbndcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:392: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).
                atoi(_strbndcalculations[i].c->GetType()), _strbndcalculations[i].sbt,
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:528: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).
                atoi(_torsioncalculations[i].a->GetType()), atoi(_torsioncalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:528:61:  [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).
                atoi(_torsioncalculations[i].a->GetType()), atoi(_torsioncalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:529: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).
                atoi(_torsioncalculations[i].c->GetType()), atoi(_torsioncalculations[i].d->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:529:61:  [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).
                atoi(_torsioncalculations[i].c->GetType()), atoi(_torsioncalculations[i].d->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:626: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).
                atoi(_oopcalculations[i].a->GetType()), atoi(_oopcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:626:57:  [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).
                atoi(_oopcalculations[i].a->GetType()), atoi(_oopcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:627: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).
                atoi(_oopcalculations[i].c->GetType()), atoi(_oopcalculations[i].d->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:627:57:  [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).
                atoi(_oopcalculations[i].c->GetType()), atoi(_oopcalculations[i].d->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:725: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).
                atoi(_vdwcalculations[i].a->GetType()), atoi(_vdwcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:725:57:  [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).
                atoi(_vdwcalculations[i].a->GetType()), atoi(_vdwcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:811: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).
                atoi(_electrostaticcalculations[i].a->GetType()), atoi(_electrostaticcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:811:67:  [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).
                atoi(_electrostaticcalculations[i].a->GetType()), atoi(_electrostaticcalculations[i].b->GetType()),
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:874: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:927: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:945:33:  [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).
      parameter._ipar.push_back(atoi(vs[0].c_str()));  // FF class
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:946: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).
      parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:947: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).
      parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:962: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:980: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).
      parameter.a = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:981: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).
      parameter.b = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1014:33:  [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).
      parameter._ipar.push_back(atoi(vs[0].c_str()));  // FF class
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1015: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).
      parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1016: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).
      parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1017: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).
      parameter.c = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1032: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1050:33:  [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).
      parameter._ipar.push_back(atoi(vs[0].c_str()));  // FF class
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1051: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).
      parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1052: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).
      parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1053: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).
      parameter.c = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1068: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1086: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).
      parameter.a = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1087: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).
      parameter.b = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1088: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).
      parameter.c = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1103: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1121: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).
      parameter.a = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1122: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).
      parameter.b = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1123: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).
      parameter.c = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1124: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).
      parameter.d = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1138: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1156:33:  [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).
      parameter._ipar.push_back(atoi(vs[0].c_str()));  // FF class
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1157: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).
      parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1158: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).
      parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1159: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).
      parameter.c = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1160: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).
      parameter.d = atoi(vs[4].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1176: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1194: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).
      parameter.a = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1217: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1235:33:  [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).
      parameter._ipar.push_back(atoi(vs[0].c_str()));  // FF class
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1236: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).
      parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1237: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).
      parameter.b = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1251: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1269: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).
      parameter.a = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1284: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1302: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).
      parameter.a = atoi(vs[0].c_str()); // atom type
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1303:33:  [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).
      parameter._ipar.push_back(atoi(vs[1].c_str()));  // at.no
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1304:33:  [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).
      parameter._ipar.push_back(atoi(vs[2].c_str()));  // crd
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1305:33:  [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).
      parameter._ipar.push_back(atoi(vs[3].c_str()));  // val
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1306:33:  [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).
      parameter._ipar.push_back(atoi(vs[4].c_str()));  // pilp
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1307:33:  [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).
      parameter._ipar.push_back(atoi(vs[5].c_str()));  // mltb
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1308:33:  [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).
      parameter._ipar.push_back(atoi(vs[6].c_str()));  // arom
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1309:33:  [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).
      parameter._ipar.push_back(atoi(vs[7].c_str()));  // linh
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1310:33:  [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).
      parameter._ipar.push_back(atoi(vs[8].c_str()));  // sbmb
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1333: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 buffer[80];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1351:33:  [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).
      parameter._ipar.push_back(atoi(vs[1].c_str()));  // level 1
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1352:33:  [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).
      parameter._ipar.push_back(atoi(vs[2].c_str()));  // level 2
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1353:33:  [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).
      parameter._ipar.push_back(atoi(vs[3].c_str()));  // level 3
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1354:33:  [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).
      parameter._ipar.push_back(atoi(vs[4].c_str()));  // level 4
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:1355:33:  [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).
      parameter._ipar.push_back(atoi(vs[5].c_str()));  // level 5
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:2660: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[4];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:2735:52:  [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).
      parameter = GetTypedParameter2Atom(bondtype, atoi(a->GetType()), atoi(b->GetType()), _ffbondparams); // from mmffbond.par
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:2735:72:  [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).
      parameter = GetTypedParameter2Atom(bondtype, atoi(a->GetType()), atoi(b->GetType()), _ffbondparams); // from mmffbond.par
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:2808: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).
      type_a = atoi(a->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:2809: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).
      type_b = atoi(b->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:2810: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).
      type_c = atoi(c->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3104: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).
      type_a = atoi(a->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3105: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).
      type_b = atoi(b->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3106: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).
      type_c = atoi(c->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3107: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).
      type_d = atoi(d->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3368: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).
      type_b = atoi(b->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3388: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).
          type_a = atoi(a->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3389: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).
          type_c = atoi(c->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3390: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).
          type_d = atoi(d->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3527: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).
      parameter_a = GetParameter1Atom(atoi(a->GetType()), _ffvdwparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3528: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).
      parameter_b = GetParameter1Atom(atoi(b->GetType()), _ffvdwparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3706:18:  [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 type = atoi(atom->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3760: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).
          temp_type = atoi(atom2->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3815: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).
          if (atoi(nbr->GetType()) == 77)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3884: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).
              if (atoi(nbr2->GetType()) == 56)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3889: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).
              if (atoi(nbr2->GetType()) == 55)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3907:18:  [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 type = atoi(atom->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:3943: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).
        int nbr_type = atoi(nbr->GetType());
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4000: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 buffer[150];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4014: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).
    ifs.open("MMFF94_dative.mol2");
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4020:10:  [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).
    ifs2.open("MMFF94_opti.log");
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4026: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).
    ofs.open("MMFF94_openbabel.log");
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4081:29:  [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).
            types.push_back(atoi(vs[2].c_str()));
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4082:29:  [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).
            types.push_back(atoi(vs[5].c_str()));
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4083:29:  [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).
            types.push_back(atoi(vs[8].c_str()));
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4084:29:  [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).
            types.push_back(atoi(vs[11].c_str()));
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4087: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).
              types.push_back(atoi(vs[2].c_str()));
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4089: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).
              types.push_back(atoi(vs[5].c_str()));
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4091: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).
              types.push_back(atoi(vs[8].c_str()));
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4199: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).
        if ( (atoi(_mol.GetAtom(ni)->GetType()) == 87) ||
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4200: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).
             (atoi(_mol.GetAtom(ni)->GetType()) == 97)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4203: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).
        if (atoi(_mol.GetAtom(ni)->GetType()) == (*i))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4205:51:  [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).
                  _mol.GetAtom(ni)->IsAromatic(), atoi(_mol.GetAtom(ni)->GetType()), *i);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4208:51:  [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).
                  _mol.GetAtom(ni)->IsAromatic(), atoi(_mol.GetAtom(ni)->GetType()), *i);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4233: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).
        if ( (atoi(_mol.GetAtom(ni)->GetType()) == 87) ||
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4234: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).
             (atoi(_mol.GetAtom(ni)->GetType()) == 97)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4265: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).
        if ( (atoi(_mol.GetAtom(ni)->GetType()) == 87) ||
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4266: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).
             (atoi(_mol.GetAtom(ni)->GetType()) == 97)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4489: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).
    if (HasAromSet(atoi(a->GetType())) && HasAromSet(atoi(b->GetType())))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4489: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).
    if (HasAromSet(atoi(a->GetType())) && HasAromSet(atoi(b->GetType())))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4492: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).
    if (HasSbmbSet(atoi(a->GetType())) && HasSbmbSet(atoi(b->GetType())))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4492: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).
    if (HasSbmbSet(atoi(a->GetType())) && HasSbmbSet(atoi(b->GetType())))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4536:9:  [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 (atoi(a->GetType()) <= atoi(c->GetType()))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4536: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 (atoi(a->GetType()) <= atoi(c->GetType()))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4656: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).
      if( !((atoi(a->GetType()) == 1) || (atoi(b->GetType()) == 1) || (atoi(c->GetType()) == 1) || (atoi(d->GetType()) == 1)) )
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4656:43:  [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( !((atoi(a->GetType()) == 1) || (atoi(b->GetType()) == 1) || (atoi(c->GetType()) == 1) || (atoi(d->GetType()) == 1)) )
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4656:72:  [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( !((atoi(a->GetType()) == 1) || (atoi(b->GetType()) == 1) || (atoi(c->GetType()) == 1) || (atoi(d->GetType()) == 1)) )
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4656:101:  [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( !((atoi(a->GetType()) == 1) || (atoi(b->GetType()) == 1) || (atoi(c->GetType()) == 1) || (atoi(d->GetType()) == 1)) )
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4997:59:  [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).
    parameter = GetTypedParameter2Atom(GetBondType(a, b), atoi(a->GetType()), atoi(b->GetType()), _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:4997:79:  [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).
    parameter = GetTypedParameter2Atom(GetBondType(a, b), atoi(a->GetType()), atoi(b->GetType()), _ffbondparams);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5027: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).
    if (GetMltb(atoi(a->GetType()) == 3))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5029: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).
    else if ((GetMltb(atoi(a->GetType())) == 1) || (GetMltb(atoi(a->GetType())) == 2))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5029:61:  [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).
    else if ((GetMltb(atoi(a->GetType())) == 1) || (GetMltb(atoi(a->GetType())) == 2))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5034: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).
    if (GetMltb(atoi(b->GetType()) == 3))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5036: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).
    else if ((GetMltb(atoi(b->GetType())) == 1) || (GetMltb(atoi(b->GetType())) == 2))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5036:61:  [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).
    else if ((GetMltb(atoi(b->GetType())) == 1) || (GetMltb(atoi(b->GetType())) == 2))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5042:18:  [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 ((GetMltb(atoi(a->GetType())) == 1) && (GetMltb(atoi(b->GetType())) == 1))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5042: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).
    if ((GetMltb(atoi(a->GetType())) == 1) && (GetMltb(atoi(b->GetType())) == 1))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5044:18:  [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 ((GetMltb(atoi(a->GetType())) == 1) && (GetMltb(atoi(b->GetType())) == 2))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5044: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).
    if ((GetMltb(atoi(a->GetType())) == 1) && (GetMltb(atoi(b->GetType())) == 2))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5046:18:  [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 ((GetMltb(atoi(a->GetType())) == 2) && (GetMltb(atoi(b->GetType())) == 1))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5046: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).
    if ((GetMltb(atoi(a->GetType())) == 2) && (GetMltb(atoi(b->GetType())) == 1))
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5049: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 (!HasPilpSet(atoi(a->GetType())) && !HasPilpSet(atoi(b->GetType()))) {
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldmmff94.cpp:5049:58:  [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 (!HasPilpSet(atoi(a->GetType())) && !HasPilpSet(atoi(b->GetType()))) {
data/openbabel-3.1.1+dfsg/src/forcefields/forcefielduff.cpp:1612: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/forcefields/forcefielduff.cpp:1700: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/ArrayList.c:104:7:  [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(array->data, old, (size_t)(oldN*sizeof(void *)));
data/openbabel-3.1.1+dfsg/src/formats/CSRformat.cpp:134: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 title[100];
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:182: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[82],semis[100];
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:221: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(line,",%d",icons[j]);
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:239: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 strg[MAXFRAGS+1];
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char * strngs[MAXFRAGS+1];
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:241: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 tstr[MAXFRAGS+1];
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:476: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 temp[16];
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:477: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(temp,"%d",k);
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1046: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).
        n1=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1051: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).
        n1=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1137:10:  [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).
      n1=atoi(temp.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1146:11:  [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).
        k=atoi(ss.c_str())+1;//Integer.parseInt(ss)+1;
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1161:8:  [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).
    n2=atoi(temp.c_str());//Integer.parseInt(temp);
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1194:10:  [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).
      n1=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1196:10:  [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).
      n2=atoi(sa1.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1217:10:  [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).
      n2=atoi(sa1.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1320:10:  [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).
      n1=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1437: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).
            k=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1460:9:  [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).
      k=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp: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 tmp[6];
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:128: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:190: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 coord_file[256];
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp: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 full_coord_path[256]="\0";
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:241:33:  [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).
                coordFileStream.open(full_coord_path);
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:294: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(coord_file,".coord");
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:295:29:  [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).
            coordFileStream.open(coord_file);
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:332: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/abinitformat.cpp:85: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/abinitformat.cpp:156: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).
          natom = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/abinitformat.cpp:183: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).
          symmetryCode = atoi(vs[1].substr(1).c_str());
data/openbabel-3.1.1+dfsg/src/formats/abinitformat.cpp:191: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).
		atomTypes.push_back(atoi(vs[i].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/acesformat.cpp:124: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/acesformat.cpp:275: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/acrformat.cpp: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[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/acrformat.cpp:152: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).
        if (!pmol->AddBond(atoi((char*)vs[0].c_str()) + 1, atoi((char*)vs[1].c_str()) + 1,
data/openbabel-3.1.1+dfsg/src/formats/acrformat.cpp:152:60:  [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 (!pmol->AddBond(atoi((char*)vs[0].c_str()) + 1, atoi((char*)vs[1].c_str()) + 1,
data/openbabel-3.1.1+dfsg/src/formats/adfformat.cpp:107: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/adfformat.cpp:184: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).
                  atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/adfformat.cpp:200: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).
                charge = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/adfformat.cpp:307: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/adfformat.cpp:410: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/adfformat.cpp:546: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:85: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:122: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).
        atom->SetAtomicNum(atoi(str.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp: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 bobuf[100];
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:178: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:179: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 bond_string[10];
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:212: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(bond_string,"SINGLE");
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:215: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(bond_string,"DOUBLE");
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:218: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(bond_string,"TRIPLE");
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:221: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(bond_string,"AROMATIC");
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:224: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(bond_string,"SINGLE");
data/openbabel-3.1.1+dfsg/src/formats/amberformat.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/amberformat.cpp:95:41:  [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).
                coord->_a = mol.GetAtom(atoi(vs[4].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/amberformat.cpp:97:41:  [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).
                coord->_b = mol.GetAtom(atoi(vs[5].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/amberformat.cpp:99:41:  [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).
                coord->_c = mol.GetAtom(atoi(vs[6].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/aoforceformat.cpp:78: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).
        atom->SetIsotope(atoi(vs[7].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/asciiformat.cpp:145: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).
  int width  = pp ? atoi(pp) : 79;
data/openbabel-3.1.1+dfsg/src/formats/asciiformat.cpp:150: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 height  = pp ? atoi(pp) : static_cast<int>(0.5 + width/aspect);
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp:111: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).
          mol.AddBond(atom->GetIdx(),atoi((char*)j->c_str()),1);
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp:141: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 tmptype[16];
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp:142: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:82: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:83: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[16],tmptyp[16];
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:156: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).
            bgn = atoi((char*)vs[1].c_str()) - 1;
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:161: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).
                vcon[bgn].push_back(atoi((char*)vs[i].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:168: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).
              bgn = atoi((char*)vs[1].c_str()) - 1;
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:174:34:  [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).
                vord[bgn][i-2] = atoi((char*)vs[i].c_str());
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:208: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:209: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 elmnt_typ[8], dreid_typ[8], atm_sym[16], max_val_str[8];
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:243: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).
        max_val = atoi(max_val_str);
data/openbabel-3.1.1+dfsg/src/formats/boxformat.cpp:77: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/boxformat.cpp:104:33:  [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).
                    mol.AddBond(atoi(vs[1].c_str()),atoi((*i).c_str()),1);
data/openbabel-3.1.1+dfsg/src/formats/boxformat.cpp:104: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).
                    mol.AddBond(atoi(vs[1].c_str()),atoi((*i).c_str()),1);
data/openbabel-3.1.1+dfsg/src/formats/boxformat.cpp:128: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cacaoformat.cpp:82: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cacaoformat.cpp:173: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cacaoformat.cpp:331: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 tmptype[16],buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp: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 type_name[16];
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp:80: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp: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 bstr[16];
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp:134: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(bstr,"single");
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp:137: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(bstr,"double");
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp:140: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(bstr,"triple");
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp:143: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(bstr,"weak");
data/openbabel-3.1.1+dfsg/src/formats/carformat.cpp:82: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/castepformat.cpp: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 buffer[BUFF_SIZE], tag[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cccformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cccformat.cpp: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 element[3];
data/openbabel-3.1.1+dfsg/src/formats/cccformat.cpp:133: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).
                end = atoi(j->c_str());
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:175: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:177: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[16],tmp1[16];
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:178: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 atomic_type[16];
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:193:18:  [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).
        natoms = atoi((char*)vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:259: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).
          mol.AddBond(atom->GetIdx(),atoi((char*)vs[k].c_str()),1);
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:281: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 buffer[BUFF_SIZE],type_name[16],ele_type[16];
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:734: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 buffer[kCDX_HeaderStringLen+1];
data/openbabel-3.1.1+dfsg/src/formats/chemdrawct.cpp:77: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/chemdrawct.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/chemkinformat.cpp:448: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).
        unsigned mult = atoi(itr->c_str());
data/openbabel-3.1.1+dfsg/src/formats/chemkinformat.cpp:568: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).
          unsigned mult = atoi(itr->c_str());
data/openbabel-3.1.1+dfsg/src/formats/chemtoolformat.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cifformat.cpp:1469:71:  [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(isdigit(tmpSymbol[i]) && (charge==0)) charge=atoi(tmpSymbol.substr(i,1).c_str());
data/openbabel-3.1.1+dfsg/src/formats/cifformat.cpp:1568: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cofformat.cpp:74: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/cofformat.cpp:95: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).
    int version = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/cofformat.cpp:175: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).
          iniatom = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/cofformat.cpp:176: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).
          finatom = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/cofformat.cpp:229: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).
        int iAtom = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/cofformat.cpp:230:29:  [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 iFormalCharge = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/confabreport.cpp:171: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).
    rfs.open(rfilename);
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:86: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 buffer[BUFF_SIZE];//CM extra buffer
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:185: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 buffer[BUFF_SIZE];//CM extra buffer
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:250: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 buffer[BUFF_SIZE];//was global
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:265: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).
              atomID=atoi(tag+4);
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:331: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 element[3]="\0\0";
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:345: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).
                  bondFrom=atoi(tag+6);
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:348: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).
                  bondTo=atoi(tag+4);
data/openbabel-3.1.1+dfsg/src/formats/crkformat.cpp:354:29:  [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).
                  bondStyle=atoi(tag+7);
data/openbabel-3.1.1+dfsg/src/formats/crystal09format.cpp:128: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).
      checkAtoms = atoi(vs[(numTokens-1)].c_str());
data/openbabel-3.1.1+dfsg/src/formats/crystal09format.cpp:158: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).
          atom->SetAtomicNum(atoi(vs[1].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/cssrformat.cpp:74: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp:140: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp:184: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).
        atomtypes = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp:202: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).
        molcharge = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp:214: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).
           atomcount = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp:216: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).
           atomcharge = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp:270: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/daltonformat.cpp:382: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).
        atomcount = atoi(vs[4].c_str()) / 3; // number of atoms to read
data/openbabel-3.1.1+dfsg/src/formats/dlpolyformat.cpp:60: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/dmolformat.cpp:86: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/dmolformat.cpp:185: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/exampleformat.cpp:205: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).
		levels = atoi(p);
data/openbabel-3.1.1+dfsg/src/formats/exyzformat.cpp:121: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/exyzformat.cpp:227: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).
          atomicNum = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:130: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 TLA[4];
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:199: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 tla_buf[4];
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:310: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 label[6]; // e.g. CA, CB, CC
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:311: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 symbol[4]; // e.g. C, H, N, O, P
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:322: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[6]; // usually three-letter code
data/openbabel-3.1.1+dfsg/src/formats/fastsearchformat.cpp:157:11:  [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).
      ifs.open(indexname.c_str(),ios::binary);
data/openbabel-3.1.1+dfsg/src/formats/fastsearchformat.cpp:245: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).
            int n = atoi(p);
data/openbabel-3.1.1+dfsg/src/formats/fastsearchformat.cpp:292: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).
      if(p && atoi(p))
data/openbabel-3.1.1+dfsg/src/formats/fastsearchformat.cpp:293: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).
        MaxCandidates = atoi(p);
data/openbabel-3.1.1+dfsg/src/formats/fastsearchformat.cpp:441: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).
          nbits = atoi(p);
data/openbabel-3.1.1+dfsg/src/formats/fastsearchformat.cpp:603: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).
          if(pos2!=string::npos &&  (atno = atoi(txt.substr(pos1+2, pos2-pos1-2).c_str())) && atno>0)
data/openbabel-3.1.1+dfsg/src/formats/fchkformat.cpp:163: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 buff[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/featformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/featformat.cpp:93: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[32];
data/openbabel-3.1.1+dfsg/src/formats/featformat.cpp:141: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/fhformat.cpp: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 type[16],buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/fhiaimsformat.cpp:82: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/fhiaimsformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/fingerprintformat.cpp:154: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).
      nbits = atoi(p);
data/openbabel-3.1.1+dfsg/src/formats/fpsformat.cpp:112: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).
      _nbits = atoi(p);
data/openbabel-3.1.1+dfsg/src/formats/fpsformat.cpp:122: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).
      _nbits = atoi(strchr(_pFP->Description(),'\n')+1); 
data/openbabel-3.1.1+dfsg/src/formats/fpsformat.cpp:174: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 timestr[TIME_STR_SIZE + 1] = "";        /* Timestring                        */
data/openbabel-3.1.1+dfsg/src/formats/freefracformat.cpp:131: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/freefracformat.cpp:246: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:217: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:262: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).
        charge=atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:267: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).
        mult=atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:276: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).
         int atomicNum = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:297:8:  [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(tmpCoords, &coordinates[0], sizeof(double)*natoms*3);
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:349: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(tmpCoords, &coordinates[0], sizeof(double)*natoms*3);
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:360: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 atomicNum = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:421: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(tmpCoords, &coordinates[0], sizeof(double)*natoms*3);
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp: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).
          atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:483: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).
          int atomNb = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:497: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).
          aHOMO = atoi(vs[6].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:499: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).
          bHOMO = atoi(vs[7].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:505:29:  [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).
        lowFreqModesBegin = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:506:29:  [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).
        lowFreqModesEnd   = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:562: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).
          atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:870: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:896: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).
            atom->SetAtomicNum(atoi(vs[1].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:913: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).
            atom->SetAtomicNum(atoi(vs[1].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:991: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gamessukformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gamessukformat.cpp:662: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gausscubeformat.cpp:115: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gausscubeformat.cpp:565: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:140: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:317: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 valbuf[128];
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:377: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[32];
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:398: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(valbuf,"%f", result[ii]);
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:401: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(valbuf, "%f", ezpe*eFactor);
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:403: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(valbuf, "%f", CV);
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:405: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(valbuf, "%f", CV+Rgas);
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:410: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 *comps[3] = { "Strans", "Srot", "Svib" };
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp: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(valbuf, "%f", Scomponents[i]);
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:447: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:510: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 coords_type[25];
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:528: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 (coords_type, " orientation:");
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:601: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).
                total_charge = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:602: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).
                spin_multiplicity = atoi(vs[5].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:622:33:  [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 atomicNum = atoi((char*)vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:628: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).
                      atom->SetAtomicNum(atoi((char*)vs[1].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:649: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(tmpCoords, &coordinates[0], sizeof(double)*natoms*3);
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:756: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).
                atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:804: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).
                atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:935: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).
                atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:967: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).
                atom = mol.GetAtom(atoi(vs[1].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:1036: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).
          RotSymNum = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:1052: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).
            aHOMO = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:1053: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).
            bHOMO = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:1168: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).
                atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:85: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:287:18:  [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).
        charge = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:288: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).
        spin = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:337: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).
          vic[j]->_a = mol.GetAtom(atoi(vs[1].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:348: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).
          vic[j]->_b = mol.GetAtom(atoi(vs[3].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:359: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).
          vic[j]->_c = mol.GetAtom(atoi(vs[5].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/ghemicalformat.cpp:85: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/ghemicalformat.cpp:90: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 bobuf[100];
data/openbabel-3.1.1+dfsg/src/formats/ghemicalformat.cpp:123: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).
      atom->SetAtomicNum(atoi(vs[1].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/groformat.cpp:152: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp:115: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_name[16];
data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp: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 res_name[16];
data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp:145: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(res_name,"UNK");
data/openbabel-3.1.1+dfsg/src/formats/gulpformat.cpp:89: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 buffer[BUFF_SIZE], tag[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp:118: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).
        max = 11 + 2 * atoi((char *)vs[10].c_str());
data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp:118:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        max = 11 + 2 * atoi((char *)vs[10].c_str());
data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp:139:41:  [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).
            mol.AddBond(mol.NumAtoms(), atoi((char *)vs[i].c_str()), bo);
data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp:139:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            mol.AddBond(mol.NumAtoms(), atoi((char *)vs[i].c_str()), bo);
data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp:179: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/inchiformat.cpp:565: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 szINCHIKey[28];
data/openbabel-3.1.1+dfsg/src/formats/jaguarformat.cpp:115: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/jaguarformat.cpp:214: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/jaguarformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/lmpdatformat.cpp:92: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/lmpdatformat.cpp:118: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 BondString[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/lmpdatformat.cpp:155: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 AngleString[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/lmpdatformat.cpp:195: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 DihedralString[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/lmpdatformat.cpp:260: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 BoxString[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/lpmdformat.cpp:85: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/lpmdformat.cpp:335: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).
 if(p) level = atoi(p);
data/openbabel-3.1.1+dfsg/src/formats/lpmdformat.cpp:336: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).
 if(q) mode  = atoi(q);
data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp:122: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp:151:16:  [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).
      ifs_ions.open(ionspot_filename.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp:159: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).
    totalAtoms_fl = atoi(buffer);
data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp:192:18:  [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).
    totalTypes = atoi(buffer);
data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp:226: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).
      int currentCount = atoi(vs.at(i).c_str());
data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mdffformat.cpp:489:14:  [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).
    ofs_ions.open(ionspot_filename.c_str(), fstream::out);
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:719: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 buffer[6];
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:967: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).
            return atoi(p+1);
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:1012: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).
      int iflag = atoi(((OBPairData*)gd)->GetValue().c_str());
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:1113:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:1468: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:1500: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 type[5];
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:1703: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 td[11];
data/openbabel-3.1.1+dfsg/src/formats/mmcifformat.cpp:149:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  tagname[76];
data/openbabel-3.1.1+dfsg/src/formats/mmcifformat.cpp:687:29:  [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).
                     charge=atoi(tmpSymbol.substr(i,1).c_str());
data/openbabel-3.1.1+dfsg/src/formats/mmcifformat.cpp:933: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).
           space_group.SetId(atoi(space_group_name.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mmcifformat.cpp:1054:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp:86: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp:122: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 temp_type[10];
data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp:159: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).
        atom.SetAtomicNum(atoi(str1.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp:219: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp:246: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).
            type = atoi((char*)to.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:145:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:168: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:185: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 attr[32], val[32];
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:249: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(comment,buffer,len);
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:268: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 temp_type[BUFF_SIZE], resname[BUFF_SIZE], atmid[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:314:18:  [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).
        elemno = atoi(str1.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:325: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).
            elemno = atoi(str1.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:457: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).
          order = atoi(str.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:617: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 buffer[BUFF_SIZE],label[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:618: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 rnum[BUFF_SIZE],rlabel[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:700: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(rlabel,"<1>");
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:754:11:  [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(label,"ar");
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:756:11:  [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(label,"am");
data/openbabel-3.1.1+dfsg/src/formats/moldenformat.cpp:223:33:  [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).
                    atomicNum = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/moldenformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/molproformat.cpp:128: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/molproformat.cpp:295: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/molreport.cpp:105: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:245:33:  [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).
              indices.push_back(atoi(vs[8].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:246:33:  [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).
              indices.push_back(atoi(vs[9].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:247:33:  [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).
              indices.push_back(atoi(vs[10].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:282: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).
            alphaHOMO = atoi(vs[8].c_str());
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:314: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).
                atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:336: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).
                atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:648: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:774: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:879: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:910: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).
      indices.push_back(atoi(vs[7].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:911: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).
      indices.push_back(atoi(vs[8].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:912: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).
      indices.push_back(atoi(vs[9].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:970: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[16], buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mpdformat.cpp:261: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).
        otyp = atoi(str.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mpdformat.cpp:274: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).
            otyp = atoi(str.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mpdformat.cpp:286: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).
                otyp = atoi(str.c_str());
data/openbabel-3.1.1+dfsg/src/formats/mpqcformat.cpp:115: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/mpqcformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/msiformat.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/msiformat.cpp:178: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).
            unsigned int atomicNum = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/msiformat.cpp:206:29:  [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).
            startBondAtom = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/msiformat.cpp:213: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).
            endBondAtom = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/msiformat.cpp:220: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).
            bondOrder = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:172: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:222: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).
            atom->SetAtomicNum(atoi(vs[2].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:228:75:  [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 ((i>=natoms) || (molecule->GetAtom(i+1)->GetAtomicNum() != atoi(vs[2].c_str())))
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:266: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:305: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).
            charge = atoi(vs[4].c_str());
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:398: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:418: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 charge = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:467: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:542: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:596: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:656: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:752: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:792: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:808: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).
            current_bead = atoi(vs[3].c_str()) - 1;
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:859: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).
            nbeads = atoi(vs[7].c_str());
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:896: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:910: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).
            nbeads = atoi(vs[5].c_str());
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:929:44:  [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).
                unsigned int bead_number = atoi(vs[vsize-5].c_str());
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:932: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 (atoi(buffer) != natoms)
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:1084: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/opendxformat.cpp:98: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/opendxformat.cpp:124: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).
      voxels[0] = atoi(vs[5].c_str());
data/openbabel-3.1.1+dfsg/src/formats/opendxformat.cpp:125: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).
      voxels[1] = atoi(vs[6].c_str());
data/openbabel-3.1.1+dfsg/src/formats/opendxformat.cpp:126: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).
      voxels[2] = atoi(vs[7].c_str());
data/openbabel-3.1.1+dfsg/src/formats/opendxformat.cpp:251: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/orcaformat.cpp:159: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/orcaformat.cpp:184: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).
                    nAtoms = atoi((char*)vs[4].c_str());
data/openbabel-3.1.1+dfsg/src/formats/orcaformat.cpp:283: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).
                mol.SetTotalCharge (atoi(vs[4].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/orcaformat.cpp:291:46:  [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).
                mol.SetTotalSpinMultiplicity(atoi(vs[3].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/orcaformat.cpp:304: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).
                atom = mol.GetAtom(atoi(vs[0].c_str())+1);  // Numbering starts from 0 in Orca
data/openbabel-3.1.1+dfsg/src/formats/outformat.cpp:83: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pcmodelformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pcmodelformat.cpp:122: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).
            atom->SetAtomicNum(atoi(temp2.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/pcmodelformat.cpp:151: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).
                    bondNbr = atoi(vs[token++].c_str()); // advance to bond order
data/openbabel-3.1.1+dfsg/src/formats/pcmodelformat.cpp:152:33:  [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).
                    bondOrder = atoi(vs[token].c_str());
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:134: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 buffer[BUFF_SIZE] = {0,};
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:300: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 integerBuffer[6];
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:385:33:  [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).
        startAtomSerialNumber = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:428:59:  [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 (vs.size() > 1) boundedAtomsSerialNumbers[0] = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:429:59:  [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 (vs.size() > 2) boundedAtomsSerialNumbers[1] = atoi(vs[2].c_str());
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:430:59:  [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 (vs.size() > 3) boundedAtomsSerialNumbers[2] = atoi(vs[3].c_str());
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:431:59:  [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 (vs.size() > 4) boundedAtomsSerialNumbers[3] = atoi(vs[4].c_str());
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:520: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:521: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_name[10], padded_name[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:522: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 the_res[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:682: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 tmp[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:700: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[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:724: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(the_res,"UNK");
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:736: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 scharge[3] = { ' ', ' ', '\0' };
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:1110: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 reorderCharge[3] = { scharge[1], scharge[0], '\0' };
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:1111: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).
            const int charge = atoi(reorderCharge);
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:1163: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).
      res->SetSerialNum(atom, atoi(serno.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:140: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:324: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:325: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_name[10], padded_name[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:326: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 the_res[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:343:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:361: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.
          char tmp[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:376:7:  [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(the_res,"UNK");
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:384: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_name_final[3];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:882:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:895: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.
          char type_name[10];
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:1223: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).
      res->SetSerialNum(atom, atoi(serno.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/png2format.cpp:86: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).
      _nrows = atoi(pr);
data/openbabel-3.1.1+dfsg/src/formats/png2format.cpp:88: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).
      _ncols = atoi(pc);
data/openbabel-3.1.1+dfsg/src/formats/png2format.cpp:95: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).
      _nmax = atoi(pmax);
data/openbabel-3.1.1+dfsg/src/formats/png2format.cpp:203: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 size  = pp ? atoi(pp) : 300;
data/openbabel-3.1.1+dfsg/src/formats/png2format.cpp:206: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).
  int width  = pp ? atoi(pp) : size;
data/openbabel-3.1.1+dfsg/src/formats/png2format.cpp:208: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 height  = pp ? atoi(pp) : size;
data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp:196: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 p[4];
data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp:222: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 readbytes[9];
data/openbabel-3.1.1+dfsg/src/formats/posformat.cpp:91: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/posformat.cpp:137: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).
      spaceGroup = atoi(spaceGroupNumber.c_str());
data/openbabel-3.1.1+dfsg/src/formats/povrayformat.cpp:172: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 timestr[TIME_STR_SIZE + 1] = "";        /* Timestring                        */
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:85: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:426:33:  [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).
        res->SetSerialNum(atom, atoi(serno.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:445: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:446: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_name[10], padded_name[10];
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:447: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 the_res[10];
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:509: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 tmp[10];
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:526: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[16];
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:541: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(the_res,"UNK");
data/openbabel-3.1.1+dfsg/src/formats/pwscfformat.cpp:90: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 buffer[BUFF_SIZE], tag[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/qchemformat.cpp:118: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 buffer[BUFF_SIZE], tag[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/qchemformat.cpp:186: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).
                atom = mol.GetAtom(atoi(vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/qchemformat.cpp:209: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).
                atom = mol.GetAtom(atoi(vs[2].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/qchemformat.cpp:294: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).
                charge = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/qchemformat.cpp:295: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).
                spin = atoi(vs[1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/reportformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/reportformat.cpp:267: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/reportformat.cpp:288: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/reportformat.cpp:355: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/reportformat.cpp:385: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/reportformat.cpp:407: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/shelxformat.cpp:84: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/shelxformat.cpp:115: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[16], *j;
data/openbabel-3.1.1+dfsg/src/formats/siestaformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/siestaformat.cpp:138:22:  [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).
      ifs_struct_out.open(struct_name.c_str());
data/openbabel-3.1.1+dfsg/src/formats/siestaformat.cpp:176:18:  [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).
      numAtoms = atoi(vs.at(0).c_str());
data/openbabel-3.1.1+dfsg/src/formats/siestaformat.cpp:193: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).
        atomicNum = atoi(vs.at(1).c_str());
data/openbabel-3.1.1+dfsg/src/formats/siestaformat.cpp:235: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).
          atomTypeLabels[atoi(vs.at(0).c_str())] = vs.at(2).c_str();
data/openbabel-3.1.1+dfsg/src/formats/siestaformat.cpp:265: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).
          it = atomTypeLabels.find(atoi(vs.at(3).c_str()));
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:1716: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 tmpc[2];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:1802: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).
                hcount = atoi(tmpc);
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:1956: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[10];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2010: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).
    digit = atoi(str);  // convert indicator to digit
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2230:88:  [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).
  OBBondClosureInfo::OBBondClosureInfo(OBAtom *a1, OBAtom *a2, OBBond *b, int rd, bool open)
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2236:17:  [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).
    is_open   = open;
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2685: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 symbol[10];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2796: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.
              char tmp[10];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2817: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 iso[8]; // 7 characters plus null
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2831: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.
          char atomnum[8];  // '#' plus 3 digits plus null
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2854: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 tcount[10];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2864: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.
          char tcount[10];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2880: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 tchar[10];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:2895: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 tchar[12]; // maxint has 10 digits
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3492: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.
          char bs[2] = { '\0', '\0' };
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3519: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.
          char bs[2] = { '\0', '\0' };
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3530: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.
          char digits[8];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3552: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 cc[2];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3714: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).
        atoms.push_back(atoi(itb->c_str()));
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3734: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).
            mult = atoi(it->substr(0, it->size()-1).c_str());
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3743:29:  [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).
            atoms.push_back(atoi(itb->c_str()));
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3815: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).
    unsigned int atom_idx  = pp ? atoi(pp) : 0;
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3820: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).
    atom_idx  = pp ? atoi(pp) : 0;
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:3834: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).
          atom_order.push_back(atoi(cit->c_str()));
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:4010:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[15];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:4218: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[15];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:4220: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).
          int idx = atoi(vs[i].c_str());
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:4322: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 coords[100];
data/openbabel-3.1.1+dfsg/src/formats/smilesformat.cpp:4328: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).
          atomIdx = atoi(canonical_order[index].c_str());
data/openbabel-3.1.1+dfsg/src/formats/smiley.h:1042: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).
      std::size_t findMatchingBracket(const std::string &open, const std::string &close, std::size_t pos = 0)
data/openbabel-3.1.1+dfsg/src/formats/smiley.h:1046:45:  [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).
          std::size_t open_pos = m_str.find(open, pos + 1);
data/openbabel-3.1.1+dfsg/src/formats/svgformat.cpp:207: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).
      _nrows = atoi(pr);
data/openbabel-3.1.1+dfsg/src/formats/svgformat.cpp:209: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).
      _ncols = atoi(pc);
data/openbabel-3.1.1+dfsg/src/formats/svgformat.cpp:216: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).
      _nmax = atoi(pmax);
data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp:77: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 ln[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp:87: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 phase, nam[25], dum[7], elname[3];
data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp:107: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).
      elnum = atoi(toks[i+1].c_str());
data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp:116:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char snum[4]={0,0,0,0};//Was problem with F   10   0 reading as ten
data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp:118: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).
      elnum=atoi(snum);
data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp:182:8:  [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(atoi(toks[i+1].c_str())>999)
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp:102: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).
    natoms = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp:135:41:  [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).
            mol.AddBond(mol.NumAtoms(), atoi((char *)vs[j].c_str()), 1); // we don't know the bond order
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp:135:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            mol.AddBond(mol.NumAtoms(), atoi((char *)vs[j].c_str()), 1); // we don't know the bond order
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp:171: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp:208: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).
          atomType = atoi((char*)str1.c_str());
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp:215: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).
            atomType = atoi((char*)str1.c_str());
data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp:90: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp:109: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 atomtype[8];
data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp:172: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp:177:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char symb[8];
data/openbabel-3.1.1+dfsg/src/formats/unichemformat.cpp:82: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/unichemformat.cpp:112: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).
        atom->SetAtomicNum(atoi((char*)vs[0].c_str()));
data/openbabel-3.1.1+dfsg/src/formats/unichemformat.cpp:147: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/vaspformat.cpp:157: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 buffer[BUFF_SIZE], tag[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/vaspformat.cpp:296: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).
      int currentCount = atoi(vs.at(i).c_str());
data/openbabel-3.1.1+dfsg/src/formats/vaspformat.cpp:451: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 freqnum = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/vaspformat.cpp:629: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/viewmolformat.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/viewmolformat.cpp:171: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/wlnformat.cpp:139: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/xedformat.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/xedformat.cpp:110: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).
        type_name = atoi((char*) str1.c_str());
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:149: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).
      _tempAtom.SetIdx(atoi(buf.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:152: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).
      _tempAtom.SetAtomicNum(atoi(buf.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:163:33:  [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).
      _tempAtom.SetFormalCharge(atoi(buf.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:166: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).
      _tempAtom.SetIsotope(atoi(buf.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:175: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).
      Order = atoi(buf.c_str());
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:204: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).
        End = atoms[atoi(buf.c_str())];
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:206: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).
        Begin = atoms[atoi(buf.c_str())];
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:212: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).
        Begin = atoms[atoi(buf.c_str())];
data/openbabel-3.1.1+dfsg/src/formats/xml/cdxmlformat.cpp:214: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).
        End = atoms[atoi(buf.c_str())];
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:277:43:  [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).
          _pmol->SetTotalSpinMultiplicity(atoi((const char*)ptitle));
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:650: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).
                  pi->SetValue(atoi(atomclass));
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:724: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).
                hcount = atoi(value.c_str());
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:740: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).
              pAtom->SetFormalCharge(atoi(value.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:767: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).
              pAtom->SetSpinMultiplicity(atoi(value.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:800:33:  [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).
              pAtom->SetIsotope(atoi(value.c_str()));
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:1007: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).
            int Idx = atoi(AttributeIter->second.c_str());
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:1029: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 parity = atoi(value.c_str());
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:1205: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 n=atoi(iNumber->c_str());
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:1318: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 timestr[TIME_STR_SIZE + 1] = "";        /* Timestring                        */
data/openbabel-3.1.1+dfsg/src/formats/xml/xml.cpp:315: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).
    value = atoi((const char*)pvalue);
data/openbabel-3.1.1+dfsg/src/formats/xsfformat.cpp:83: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/xsfformat.cpp:111:29:  [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).
                atomicNum = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/xsfformat.cpp:143: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).
          int numAtoms = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/xsfformat.cpp:156:29:  [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).
                atomicNum = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/xtcformat.cpp:57: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 	xdrmodes[MAXID];
data/openbabel-3.1.1+dfsg/src/formats/xtcformat.cpp:294: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).
    xdrfiles[xdrid] = fopen(filename, type);
data/openbabel-3.1.1+dfsg/src/formats/xyzformat.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/xyzformat.cpp:207: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).
          atomicNum = atoi(vs[0].c_str());
data/openbabel-3.1.1+dfsg/src/formats/xyzformat.cpp:297: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:91:49:  [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).
  for (i=0;i<number;i++) if (!string[i]) return(atoi(string));
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:94:5:  [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(string);
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:112:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *mob_elementsym[MOB_ELEMENTS]=
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:188: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.
{ unsigned char header[4];
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:370: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 buffer[8],resname[4],atomname[5];
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:440:76:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (atomname[0]==' '&&(!pConv->IsOption("f",OBConversion::INOPTIONS))) memcpy(atomname,atomname+1,4);
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:484: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 buffer[32],/*resname[4],*/atomname[5];
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:485: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.
  unsigned char double1[8]={0,0,0,0,0,0,0xf0,0x3f};
data/openbabel-3.1.1+dfsg/src/formats/zindoformat.cpp:77: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/generic.cpp:624: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 hash[22];
data/openbabel-3.1.1+dfsg/src/math/spacegroup.cpp:99: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).
        group->SetId(atoi (line));
data/openbabel-3.1.1+dfsg/src/math/spacegroup.cpp:165: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).
            m_OriginAlternative = atoi (origin.c_str());
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp: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 temp[16];
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:338: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(temp,"%d",k);
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:2670: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 buff[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:6024:9:  [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).
      n=atoi(smCopy.getAtom(i)->anum.c_str());
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:6978: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).
          atn=atoi(temp.c_str())-1;  //one-based-has to be corrected to zero-based
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:7044: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).
            n2=atoi(temp.substr(0,n1).c_str());
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:7045: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).
            n1=atoi(temp.substr(n1+1).c_str());
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:7066: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).
                n1=atoi(sa1.c_str());
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:7080: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).
                n2=atoi(sa2.c_str());
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:7219: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).
                k=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/mcdlutil.cpp:7243: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).
                k=atoi(s.c_str());
data/openbabel-3.1.1+dfsg/src/mol.cpp:1025: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.
          char buffer[BUFF_SIZE];  // error buffer
data/openbabel-3.1.1+dfsg/src/mol.cpp:1071: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 DT[4] = {'D',0,'T',0};
data/openbabel-3.1.1+dfsg/src/mol.cpp:1319: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( xyz, src.GetConformer(k), sizeof( double )*3*src.NumAtoms() );
data/openbabel-3.1.1+dfsg/src/mol.cpp:2199:11:  [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(tmpf,(*j),sizeof(double)*NumAtoms()*3);
data/openbabel-3.1.1+dfsg/src/mol.cpp:2311: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(tmpf,(*j),sizeof(double)*NumAtoms()*3);
data/openbabel-3.1.1+dfsg/src/mol.cpp:2845: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*)_c, (char*)newCoords, sizeof(double)*3*NumAtoms());
data/openbabel-3.1.1+dfsg/src/mol.cpp:2914:11:  [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*)&ctmp[k*3],(char*)&c[((OBAtom*)*i)->GetCoordinateIdx()],sizeof(double)*3);
data/openbabel-3.1.1+dfsg/src/mol.cpp:2915: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((char*)c,(char*)ctmp,sizeof(double)*3*NumAtoms());
data/openbabel-3.1.1+dfsg/src/mol.cpp:3712: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*)c, (char*)_vconf[idx], sizeof(double)*3*NumAtoms());
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:625: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).
        StartNumber=atoi(p);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:644: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).
        EndNumber=atoi(p);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1229: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 num[33];
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1340:24:  [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).
                    os.open(OutputFileName.c_str(),omode);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1423:29:  [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).
                        ofs.open(batchfile.c_str(), omode);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1444:24:  [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).
                    os.open(OutputFileName.c_str(),omode);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1494:29:  [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).
                        ofs.open(incrfile.c_str(), omode);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1519:16:  [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).
            os.open(OutputFileName.c_str(),omode);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1572: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).
    is->open(InFilename.c_str(), imode);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1767: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).
      nfirst=atoi(p);
data/openbabel-3.1.1+dfsg/src/obconversion.cpp:1769: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).
      nlast=atoi(p);
data/openbabel-3.1.1+dfsg/src/obmolecformat.cpp:497:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/openbabel-3.1.1+dfsg/src/obutil.cpp:300:10:  [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).
      fs.open(filename,ios::binary);
data/openbabel-3.1.1+dfsg/src/obutil.cpp:304:10:  [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).
      fs.open(filename);
data/openbabel-3.1.1+dfsg/src/obutil.cpp:326:10:  [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).
      fs.open(filename,ios::binary);
data/openbabel-3.1.1+dfsg/src/obutil.cpp:330:10:  [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).
      fs.open(filename);
data/openbabel-3.1.1+dfsg/src/ops/forcefield.cpp:220: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).
      steps = atoi(iter->second.c_str());
data/openbabel-3.1.1+dfsg/src/ops/forcefield.cpp:236: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).
      freq = atoi(iter->second.c_str());
data/openbabel-3.1.1+dfsg/src/ops/largest.cpp:133: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).
      _nmols = atoi(vec[0].c_str());
data/openbabel-3.1.1+dfsg/src/ops/opconfab.cpp:115: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).
        conf_cutoff = atoi(iter->second.c_str());
data/openbabel-3.1.1+dfsg/src/ops/opisomorph.cpp:211:18:  [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).
      nmatches = atoi(vec[1].c_str());
data/openbabel-3.1.1+dfsg/src/ops/opsplit.cpp:166: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).
    ofs.open(fname.c_str());
data/openbabel-3.1.1+dfsg/src/ops/opsplit.cpp:178: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).
    ofs.open(ss.str().c_str());
data/openbabel-3.1.1+dfsg/src/ops/optransform.cpp:46: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 charBuffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/ops/readconformers.cpp:84:7:  [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*)confCoord,(char*)pmol->GetCoordinates(),sizeof(double)*3*pmol->NumAtoms());
data/openbabel-3.1.1+dfsg/src/patty.cpp: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/patty.cpp:80: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_str[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/patty.cpp:84: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).
    ifs.open(infile.c_str());
data/openbabel-3.1.1+dfsg/src/patty.cpp:100:14:  [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).
        ifs1.open(patty_dir.c_str());
data/openbabel-3.1.1+dfsg/src/patty.cpp:138: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/patty.cpp:139: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_str[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:477:7:  [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( values, &elem->distance, elem->nparam * sizeof( double ) ) ;
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:483:7:  [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( &elem->distance, values, elem->nparam * sizeof( double ) ) ;
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1755:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1768:41:  [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.
        if( InversionCentersCount > 0 ) strcat( symmetry_code, "(i) " ) ;
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1770:11:  [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( symmetry_code, "(Cinf) " ) ;
data/openbabel-3.1.1+dfsg/src/pointgroup.cpp:1783:32:  [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.
        if( PlanesCount == 1 ) strcat( symmetry_code, "(sigma) " ) ;
data/openbabel-3.1.1+dfsg/src/residue.cpp:49: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 Residue[MAXRES][4] = {
data/openbabel-3.1.1+dfsg/src/residue.cpp:92: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 ElemDesc[MAXELEM][4] = {
data/openbabel-3.1.1+dfsg/src/residue.cpp:1046: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(_resnum.c_str());
data/openbabel-3.1.1+dfsg/src/rotamer.cpp:106: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[4],c;
data/openbabel-3.1.1+dfsg/src/rotamer.cpp:107: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(tmp,(char*)&i,sizeof(int));
data/openbabel-3.1.1+dfsg/src/rotamer.cpp:114: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*)&i,tmp,sizeof(int));
data/openbabel-3.1.1+dfsg/src/rotamer.cpp:161: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(&rotamers[idx],(const unsigned char*)*kk,sizeof(unsigned char)*(NumRotors()+1));
data/openbabel-3.1.1+dfsg/src/rotamer.cpp:473: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(rot,&arr[i*size],sizeof(char)*size);
data/openbabel-3.1.1+dfsg/src/rotamer.cpp:502: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(c,_c[(int)conf[0]],sizeof(double)*mol.NumAtoms()*3);
data/openbabel-3.1.1+dfsg/src/rotor.cpp:75: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.
          char buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/rotor.cpp:820: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 temp_buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/rotor.cpp:861: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).
          ref[i] = atoi(vs[i+1].c_str())-1;
data/openbabel-3.1.1+dfsg/src/rotor.cpp:986: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/rotor.cpp:1021: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/rotor.cpp:1034: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.
              char buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/rotor.cpp:1046: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.
              char buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/src/snprintf.c:366:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (nn >= breakeven_point) memcpy((d), (s), nn); \
data/openbabel-3.1.1+dfsg/src/snprintf.c:623: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 tmp[32];/* temporary buffer for simple numeric->string conversion */
data/openbabel-3.1.1+dfsg/src/snprintf.c:1021: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 f[5];
data/openbabel-3.1.1+dfsg/src/tokenst.cpp:202: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).
    ifs.open(filename.c_str(),imode);
data/openbabel-3.1.1+dfsg/src/tokenst.cpp:218: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).
    ifs.open(file.c_str(),imode);
data/openbabel-3.1.1+dfsg/src/tokenst.cpp:228: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).
    ifs.open(file.c_str(),imode);
data/openbabel-3.1.1+dfsg/src/transform.cpp:215:59:  [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(itr2!=pOptions->end() && (int)NumHvyAtoms()!=atoi(itr2->second.c_str()))
data/openbabel-3.1.1+dfsg/src/typer.cpp:86:61:  [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).
          _vinthyb.push_back(pair<OBSmartsPattern*,int> (sp,atoi((char*)vs[2].c_str())));
data/openbabel-3.1.1+dfsg/src/zipstreamimpl.h:168: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(&(_output_buffer[0]),
data/openbabel-3.1.1+dfsg/src/zipstreamimpl.h:272: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(&_output_buffer[0],
data/openbabel-3.1.1+dfsg/src/zipstreamimpl.h:361: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(&_buffer[0] + (4 - n_putback),
data/openbabel-3.1.1+dfsg/test/addhtest.cpp:118: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/aliastest.cpp:91: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/aligntest.cpp:405: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/aromatest.cpp:99: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/automorphismtest.cpp:51: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/buildertest.cpp:64:7:  [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).
  ifs.open(file.c_str());
data/openbabel-3.1.1+dfsg/test/buildertest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/canonconsistenttest.cpp:16:7:  [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).
  ifs.open(filename.c_str());
data/openbabel-3.1.1+dfsg/test/canonconsistenttest.cpp:83: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/canonfragmenttest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/canonstabletest.cpp:21: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/cansmi.cpp:56: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/carspacegrouptest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/charge_gasteiger.cpp:50: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/charge_gasteiger.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/charge_gasteiger.cpp:187: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/charge_gasteiger.cpp:217:7:  [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(buffer, "%15.5f%15.5f%15.5f\n", dipoleMoment.x(), dipoleMoment.y(), dipoleMoment.z());
data/openbabel-3.1.1+dfsg/test/charge_gasteiger.cpp:222: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(buffer, "%15.5f\n", atom->GetPartialCharge());
data/openbabel-3.1.1+dfsg/test/charge_mmff94.cpp:51: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/charge_mmff94.cpp:79: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/charge_mmff94.cpp:191: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/charge_mmff94.cpp:221:7:  [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(buffer, "%15.5f%15.5f%15.5f\n", dipoleMoment.x(), dipoleMoment.y(), dipoleMoment.z());
data/openbabel-3.1.1+dfsg/test/charge_mmff94.cpp:226: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(buffer, "%15.5f\n", atom->GetPartialCharge());
data/openbabel-3.1.1+dfsg/test/cifspacegrouptest.cpp:351: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/cistranstest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/cmlreadfile.cpp:51: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/conversion.cpp:50: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/conversiontest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffgaff.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffgaff.cpp:91: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffgaff.cpp:172: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffgaff.cpp:203:7:  [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(buffer, "%15.5f\n", pFF->Energy(false));
data/openbabel-3.1.1+dfsg/test/ffghemical.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffghemical.cpp:90: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffghemical.cpp:171: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffghemical.cpp:202:7:  [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(buffer, "%15.5f\n", pFF->Energy(false));
data/openbabel-3.1.1+dfsg/test/ffmmff94.cpp:55: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffmmff94.cpp:83:7:  [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(buffer, "%15.5f\n", pFF->Energy(false));
data/openbabel-3.1.1+dfsg/test/ffmmff94.cpp:107: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffmmff94.cpp:195: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffuff.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffuff.cpp:90: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffuff.cpp:171: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ffuff.cpp:202:7:  [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(buffer, "%15.5f\n", pFF->Energy(false));
data/openbabel-3.1.1+dfsg/test/formalcharge.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/formalcharge.cpp:90: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/format.cpp:50: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/formula.cpp:62: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/formula.cpp:78: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/graphsymtest.cpp:130: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/gziptest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/implicitHtest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/inchiwrite.cpp:51: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/invalidsmiles.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/isomorphismtest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/iterators.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/logp_psa.cpp:53: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/lssrtest.cpp:98:7:  [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).
  ifs.open(file.c_str());
data/openbabel-3.1.1+dfsg/test/lssrtest.cpp:154:7:  [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).
  ifs.open(file.c_str());
data/openbabel-3.1.1+dfsg/test/lssrtest.cpp:196: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/maereadertest.cpp:98: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/math.cpp:57: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 currentFunc [256];
data/openbabel-3.1.1+dfsg/test/mol.cpp:62: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/multicmltest.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/obbench.h:46:13:  [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).
        ofs.open("benchmark.txt.new");
data/openbabel-3.1.1+dfsg/test/obbench.h:50:13:  [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).
        ifs.open("benchmark.txt");
data/openbabel-3.1.1+dfsg/test/obbench.h:77:15:  [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).
          ofs.open("benchmark.txt", std::ios::out | std::ios::app);
data/openbabel-3.1.1+dfsg/test/obbench.h:83:15:  [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).
          ifs.open("benchmark.txt.new");
data/openbabel-3.1.1+dfsg/test/obbench.h:84:15:  [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).
          ofs.open("benchmark.txt");
data/openbabel-3.1.1+dfsg/test/obtest.h:56: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).
    ifs.open(file.c_str());
data/openbabel-3.1.1+dfsg/test/pdbreadfile.cpp:72: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/periodictest.cpp:246: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/phmodel.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/regressionstest.cpp:514: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/residue.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ringtest.cpp:65: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ringtest.cpp:96: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ringtest.cpp:132: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).
        vb[atoi(i->c_str())] = true;
data/openbabel-3.1.1+dfsg/test/ringtest.cpp:187: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).
          if (atoi(i->c_str()) != count)
data/openbabel-3.1.1+dfsg/test/ringtest.cpp:222: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/ringtest.cpp:247: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(buffer,"%3d",bond->GetIdx());
data/openbabel-3.1.1+dfsg/test/ringtest.cpp:264:11:  [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(buffer,"%3d",count);
data/openbabel-3.1.1+dfsg/test/rotortest.cpp:196: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/roundtrip.cpp:197: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/shuffletest.cpp:203:7:  [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).
  ifs.open(file.c_str());
data/openbabel-3.1.1+dfsg/test/shuffletest.cpp:251: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/smartsparse.cpp:70: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/smartstest.cpp:65: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/smartstest.cpp:86: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/smartstest.cpp:185: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 (atoi(vs[k].c_str()) != mlist[k][0])
data/openbabel-3.1.1+dfsg/test/smartstest.cpp:221: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/smartstest.cpp:271:15:  [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(buffer,"%3d",*(j->begin()));
data/openbabel-3.1.1+dfsg/test/smilesmatch.cpp: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/smilestest.cpp:296: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/squareplanartest.cpp:248: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/stereoperceptiontest.cpp:190: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/stereotest.cpp:449: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/strip.cpp:87: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/strip.cpp:121: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).
        if (atoi(vs[0].c_str()) != mol.NumAtoms() || atoi(vs[1].c_str()) != mol.NumBonds())
data/openbabel-3.1.1+dfsg/test/strip.cpp:121: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).
        if (atoi(vs[0].c_str()) != mol.NumAtoms() || atoi(vs[1].c_str()) != mol.NumBonds())
data/openbabel-3.1.1+dfsg/test/tautomertest.cpp:107: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 env[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/test/unitcell.cpp:62: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/tools/obabel.cpp:96: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.
              char opchar[2]="?";
data/openbabel-3.1.1+dfsg/tools/obabel.cpp:399: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 ch[2]="?";
data/openbabel-3.1.1+dfsg/tools/obconformer.cpp:44: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).
  const int weightSteps = atoi(argv[1]);
data/openbabel-3.1.1+dfsg/tools/obconformer.cpp:45: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).
  const int geomSteps = atoi(argv[2]);
data/openbabel-3.1.1+dfsg/tools/obdistgen.cpp:74:7:  [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).
  ifs.open(filename.c_str());
data/openbabel-3.1.1+dfsg/tools/obdoc.cpp:82:12:  [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).
  indexExt.open("code-index.html");
data/openbabel-3.1.1+dfsg/tools/obdoc.cpp:91:11:  [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).
      ofs.open(code.c_str());
data/openbabel-3.1.1+dfsg/tools/obfit.cpp:123:10:  [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).
  ifsref.open(FileRef);
data/openbabel-3.1.1+dfsg/tools/obfit.cpp:195: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).
  ifsmv.open(FileMove);
data/openbabel-3.1.1+dfsg/tools/obfit.cpp: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.
          char rmsd_string[80];
data/openbabel-3.1.1+dfsg/tools/obfit.cpp:326:11:  [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(rmsd_string,"%f", best_rmsd);
data/openbabel-3.1.1+dfsg/tools/obfitall.cpp:123:10:  [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).
  ifsref.open(FileRef);
data/openbabel-3.1.1+dfsg/tools/obfitall.cpp:195: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).
  ifsmv.open(FileMove);
data/openbabel-3.1.1+dfsg/tools/obfitall.cpp:307: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 rmsd_string[80];
data/openbabel-3.1.1+dfsg/tools/obfitall.cpp:308: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(rmsd_string,"%f", rmsd);
data/openbabel-3.1.1+dfsg/tools/obfragment-index.cpp:28: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/tools/obfragment.cpp:64: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/tools/obfragment.cpp:88: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).
    ifs.open(argv[i]);
data/openbabel-3.1.1+dfsg/tools/obgen.cpp:98:7:  [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).
  ifs.open(filename.c_str());
data/openbabel-3.1.1+dfsg/tools/obgrep.cpp:149:11:  [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).
      ifs.open(FileIn);
data/openbabel-3.1.1+dfsg/tools/obminimize.cpp:92: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).
        steps = atoi(argv[i+1]);
data/openbabel-3.1.1+dfsg/tools/obminimize.cpp:107: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).
        freq = atoi(argv[i+1]);
data/openbabel-3.1.1+dfsg/tools/obminimize.cpp:178:7:  [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).
  ifs.open(filename.c_str());
data/openbabel-3.1.1+dfsg/tools/obmm.cpp:76: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 commandline[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/tools/obmm.cpp:327:11:  [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).
      ifs.open(vs[1].c_str());
data/openbabel-3.1.1+dfsg/tools/obmm.cpp:374:11:  [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).
      ofs.open(vs[1].c_str());
data/openbabel-3.1.1+dfsg/tools/obmm.cpp:401: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).
      pFF->SteepestDescent(atoi(vs[1].c_str()), OBFF_ANALYTICAL_GRADIENT);
data/openbabel-3.1.1+dfsg/tools/obmm.cpp:414: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).
      pFF->ConjugateGradients(atoi(vs[1].c_str()), OBFF_ANALYTICAL_GRADIENT);
data/openbabel-3.1.1+dfsg/tools/obprobe.cpp:117:7:  [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).
  ifs.open(filename.c_str());
data/openbabel-3.1.1+dfsg/tools/obprobe.cpp:132: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/tools/obprobe.cpp:150: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).
    ofs.open(buffer);
data/openbabel-3.1.1+dfsg/tools/obprop.cpp:99:7:  [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).
  ifs.open(FileIn);
data/openbabel-3.1.1+dfsg/tools/obrms.cpp:310:7:  [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).
		out.open(fileOut.c_str());
data/openbabel-3.1.1+dfsg/tools/obrotate.cpp:139:7:  [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).
  ifs.open(FileIn);
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:50:7:  [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 (atoi(va[1].c_str()) > atoi(vb[1].c_str()))
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:50:29:  [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 (atoi(va[1].c_str()) > atoi(vb[1].c_str()))
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:52: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).
  else if (atoi(va[1].c_str()) == atoi(vb[1].c_str())) {
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:52: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).
  else if (atoi(va[1].c_str()) == atoi(vb[1].c_str())) {
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:53:9:  [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 (atoi(va[2].c_str()) > atoi(vb[2].c_str()))
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:53: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 (atoi(va[2].c_str()) > atoi(vb[2].c_str()))
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:55: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).
    else if (atoi(va[2].c_str()) == atoi(vb[2].c_str()))
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:55: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).
    else if (atoi(va[2].c_str()) == atoi(vb[2].c_str()))
data/openbabel-3.1.1+dfsg/tools/obsort-fragment.cpp:136: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 buffer[BUFF_SIZE];
data/openbabel-3.1.1+dfsg/tools/obspectrophore.cpp:169:6:  [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).
	ifs.open(ifile.c_str());
data/openbabel-3.1.1+dfsg/tools/obsym.cpp:67:7:  [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).
  ifs.open(FileIn);
data/openbabel-3.1.1+dfsg/tools/obtautomer.cpp:78:7:  [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).
  ifs.open(FileIn);
data/openbabel-3.1.1+dfsg/tools/obthermo.cpp:70: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).
        Nsymm = atoi(argv[i+1]);
data/openbabel-3.1.1+dfsg/tools/obthermo.cpp:78: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).
        Nrot = atoi(argv[i+1]);
data/openbabel-3.1.1+dfsg/tools/obthermo.cpp:121:7:  [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).
  ifs.open(filename.c_str());
data/openbabel-3.1.1+dfsg/tools/obtorsion.cpp:43: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).
    ifs.open(argv[i]);
data/openbabel-3.1.1+dfsg/tools/obxyz.cpp:104:11:  [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).
      ifs.open(FileIn);
data/openbabel-3.1.1+dfsg/tools/svgdepict.cpp:28:7:  [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).
  ifs.open(filename.c_str());
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:385: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).
  const char* te = tb + strlen(tb);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:669:7:  [1] (buffer) strlen:
  Does not handle 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) + 1 > (bsz - (r - buff))) return 0;
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:690: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 lname = (name ? strlen(name) : 0);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:695:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:1626: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(cstr);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:1700:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy((char *)CHAR(c), carray, size);
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:3474: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 *newstr = reinterpret_cast< char * >(malloc(strlen(str) + 1));
data/openbabel-3.1.1+dfsg/scripts/R/examples/openbabelR/src/openbabel-R.cpp:3482: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/openbabel-3.1.1+dfsg/scripts/java/openbabel-java.cpp:8824:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    if (!arg2) return ; }  { if(arg2) { strncpy((char*)arg1->fpid, (const char *)arg2, 15-1); arg1->fpid[15-1] = 0; }  else {
data/openbabel-3.1.1+dfsg/scripts/java/openbabel-java.cpp:8840:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    if (!arg2) return ; }  { if(arg2) { strncpy((char*)arg1->datafilename, (const char *)arg2, 256-1);
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:405: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).
  const char* te = tb + strlen(tb);
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:689:7:  [1] (buffer) strlen:
  Does not handle 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) + 1 > (bsz - (r - buff))) return 0;
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:710: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 lname = (name ? strlen(name) : 0);
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:715:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1274: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).
  if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1366: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).
  sv_magic(sv,sv,'U',name,strlen(name));
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1463:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef read
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:1464:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  #undef read
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2194: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 (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
data/openbabel-3.1.1+dfsg/scripts/perl/openbabel-perl.cpp:2527: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:419: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).
  const char* te = tb + strlen(tb);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:703:7:  [1] (buffer) strlen:
  Does not handle 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) + 1 > (bsz - (r - buff))) return 0;
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:724: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 lname = (name ? strlen(name) : 0);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:729:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:893:91:  [1] (buffer) strlen:
  Does not handle 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 PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:3518:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    virtual bool equal (const SwigPyIterator &/*x*/) const
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:3557:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return equal(x);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:4624:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool equal (const SwigPyIterator &iter) const
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:5830: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 (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:7360: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:7761:58:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);} 
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:48601: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 size = strlen(name)+1;
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:48604:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(gv->name,name,size);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:48668: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).
              strlen(const_table[j].name)) == 0) {
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:48679: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 lptr = strlen(ty->name)+2*sizeof(void*)+2;
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:48683:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(buff, methods[i].ml_doc, ldoc);
data/openbabel-3.1.1+dfsg/scripts/python/openbabel/openbabel-python.cpp:48685:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
              strncpy(buff, "swig_ptr: ", 10);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:528: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).
  const char* te = tb + strlen(tb);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:812:7:  [1] (buffer) strlen:
  Does not handle 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) + 1 > (bsz - (r - buff))) return 0;
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:833: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 lname = (name ? strlen(name) : 0);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:838:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(r,name,lname+1);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:894:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef read
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:895:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef read
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1514: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).
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1570: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).
    klass_name = (char *) malloc(4 + strlen(type->name) + 1);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:1718: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).
  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:2473:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    virtual bool equal (const ConstIterator &x) const
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:2546:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return equal(x);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:2667:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return equal(x);
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:3440:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    virtual bool equal (const ConstIterator &iter) const
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:3533:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    virtual bool equal (const ConstIterator &iter) const
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:5737: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 (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
data/openbabel-3.1.1+dfsg/scripts/ruby/openbabel-ruby.cpp:8259: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).
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
data/openbabel-3.1.1+dfsg/src/GUI/optswx.cpp:115: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).
  char* pNewStr = new char[strlen(OptionsText)+1];
data/openbabel-3.1.1+dfsg/src/GUI/optswx.cpp:243: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).
        bool BigEdit =(pCaption[strlen(pCaption)-1] == ':');
data/openbabel-3.1.1+dfsg/src/GUI/optswx.cpp:395: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 needlelen = strlen (needle);
data/openbabel-3.1.1+dfsg/src/atom.cpp:183:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_type,src->_type, sizeof(_type) - 1);
data/openbabel-3.1.1+dfsg/src/atom.cpp:427:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_type,type, sizeof(_type) - 1);
data/openbabel-3.1.1+dfsg/src/atom.cpp:435:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_type,type.c_str(), sizeof(_type) - 1);
data/openbabel-3.1.1+dfsg/src/atom.cpp:475: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(_type) == 0) // Somehow we still don't have a type!
data/openbabel-3.1.1+dfsg/src/chains.cpp:770:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ChainsResName[res],AminoAcids[i].name, sizeof(ChainsResName[res]) - 1);
data/openbabel-3.1.1+dfsg/src/chains.cpp:779:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ChainsResName[res],Nucleotides[i].name, sizeof(ChainsResName[res]) - 1);
data/openbabel-3.1.1+dfsg/src/charges/fromfile.cpp:69:15:  [1] (buffer) fscanf:
  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( 2 == fscanf( fin, "%16s %lf\n", name, &q ) ) {
data/openbabel-3.1.1+dfsg/src/charges/fromfile.cpp:115: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).
				for( int j = strlen(f)-1; j>=0; j-- ) { if( f[j]==' ' ){ f[j]='\0'; } } // trim trailing whitespace
data/openbabel-3.1.1+dfsg/src/data.cpp:107: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) > 0)
data/openbabel-3.1.1+dfsg/src/data.cpp:337:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(to,(char*)sto.c_str(), OBATOM_TYPE_LEN - 1);
data/openbabel-3.1.1+dfsg/src/data.cpp:702:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(charBuffer, p1, (p2 - p1));
data/openbabel-3.1.1+dfsg/src/dlhandler_unix.cpp:89:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buffer,getenv("BABEL_LIBDIR"), BUFF_SIZE - 1);
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:341:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pIndexstream->read((char*)&(fptdata[0]), sizeof(unsigned int) * nwords);
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:344:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    	pIndexstream->read((char*)&(seekdata[0]), sizeof(unsigned long) * header.nEntries);
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:349:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         pIndexstream->read((char*)&(tmp[0]), sizeof(unsigned int) * header.nEntries);
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:364:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pIndexstream->read( (char*)&header.headerlength, sizeof(unsigned) );
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:365:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pIndexstream->read( (char*)&header.nEntries,     sizeof(unsigned) );
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:366:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pIndexstream->read( (char*)&header.words,        sizeof(unsigned) );
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:367:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pIndexstream->read( (char*)&header.fpid,         sizeof(header.fpid) );
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:368:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pIndexstream->read( (char*)&header.seek64,       sizeof(header.seek64) );
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:369:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pIndexstream->read( (char*)&header.datafilename, sizeof(header.datafilename) );
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:398:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_pindex->header.fpid,fpid.c_str(),15);
data/openbabel-3.1.1+dfsg/src/fingerprint.cpp:401:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_pindex->header.datafilename, datafilename.c_str(), 255);
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1094: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 2 (atom mass and polarizability)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1106: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 4 (bonds)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1118: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 5 (angles)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1131: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 6 (dihedrals)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1149: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 7(impropers)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1176: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 8 (10-12 H-BOND)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1188: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 9 (equivalent atoms for vdW potential)
data/openbabel-3.1.1+dfsg/src/forcefields/forcefieldgaff.cpp:1195: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).
    while(!ifs.fail() && strlen(buffer)!=0) //read block 10 (vdWaals)
data/openbabel-3.1.1+dfsg/src/format.cpp:120: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(SpecificationURL()))
data/openbabel-3.1.1+dfsg/src/formats/CSRformat.cpp:111: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).
    ofs.write("V33 ",strlen("V33 ")*sizeof(char));
data/openbabel-3.1.1+dfsg/src/formats/CSRformat.cpp:192:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(output, input, strlen(input));
data/openbabel-3.1.1+dfsg/src/formats/CSRformat.cpp:192: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).
    strncpy(output, input, strlen(input));
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:191: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(semis,";");
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:444:21:  [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(tstr,"0");
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:445:21:  [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(strg,"0");
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1421: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).
  for (i = 1; i<NELEMMCDL; i++) if (strlen(OBElements::GetSymbol(i)) == 2) {
data/openbabel-3.1.1+dfsg/src/formats/MCDLformat.cpp:1444: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).
  for (i = 1; i<NELEMMCDL; i++) if (strlen(OBElements::GetSymbol(i)) == 1) {
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:78: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).
    for (i=0; i<strlen(s); i++)
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:84:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp,&s[i-4],5);
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:221:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(coord_file,strstr(buffer,"file=")+5, sizeof(coord_file));
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:227:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(full_coord_path,title, sizeof(full_coord_path));
data/openbabel-3.1.1+dfsg/src/formats/PQSformat.cpp:290:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(coord_file,title, sizeof(coord_file));
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:137: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(buffer," %*d%d%d%99s",&bgn,&end,bobuf);
data/openbabel-3.1.1+dfsg/src/formats/alchemyformat.cpp:156: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp:121: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp:144: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(mol.GetTitle()) > 0)
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp:158:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tmptype,OBElements::GetSymbol(atom->GetAtomicNum()), sizeof(tmptype));
data/openbabel-3.1.1+dfsg/src/formats/balstformat.cpp:160: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(tmptype) > 1)
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:119: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(buffer,"%*s %*s %*s %*s %*s %*s %lf %lf %lf %15s %*s %*s %lf",
data/openbabel-3.1.1+dfsg/src/formats/bgfformat.cpp:235:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(elmnt_typ,OBElements::GetSymbol(atom->GetAtomicNum()), 7); // make sure to null-terminate
data/openbabel-3.1.1+dfsg/src/formats/cacaoformat.cpp:153: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/cacaoformat.cpp:343:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmptype,OBElements::GetSymbol(mol.GetAtom(1)->GetAtomicNum()), sizeof(tmptype));
data/openbabel-3.1.1+dfsg/src/formats/cacaoformat.cpp:353:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tmptype,OBElements::GetSymbol(mol.GetAtom(i)->GetAtomicNum()), sizeof(tmptype));
data/openbabel-3.1.1+dfsg/src/formats/cacheformat.cpp:104:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(type_name,OBElements::GetSymbol(atom->GetAtomicNum()), 16);
data/openbabel-3.1.1+dfsg/src/formats/cccformat.cpp:79: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(buffer) > 5)
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:236: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(buffer,"%15s%*d%lf%lf%lf%15s",
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:269: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/chem3dformat.cpp:311:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ele_type, OBElements::GetSymbol(atom->GetAtomicNum()), sizeof(ele_type));
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:57:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data)); \
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:60:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data)); \
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:64:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data));
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:66:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data));
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:74:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data)); \
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:77:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data)); \
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:81:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data));
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:83:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(stream).read ((char*)&data, sizeof(data));
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:712:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ifs.read(p, _len);
data/openbabel-3.1.1+dfsg/src/formats/chemdrawcdx.cpp:735:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ifs.read(buffer,kCDX_HeaderStringLen);
data/openbabel-3.1.1+dfsg/src/formats/chemdrawct.cpp:130: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(buffer) == 0)
data/openbabel-3.1.1+dfsg/src/formats/chemdrawct.cpp:170: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/copyformat.cpp:76:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ifs.read(buf,len);
data/openbabel-3.1.1+dfsg/src/formats/dmolformat.cpp:164: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/exyzformat.cpp:416: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:118: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(pmol->GetTitle()) > 0)
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:200:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tla_buf, three.c_str(), 3);
data/openbabel-3.1.1+dfsg/src/formats/fastaformat.cpp:210: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).
    else if (strlen(tla_buf) == 1)
data/openbabel-3.1.1+dfsg/src/formats/featformat.cpp:99: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(buffer,"%30s %lf %lf %lf",
data/openbabel-3.1.1+dfsg/src/formats/featformat.cpp:117: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/fhformat.cpp:98:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(type,OBElements::GetSymbol(atom->GetAtomicNum()), 16);
data/openbabel-3.1.1+dfsg/src/formats/fhiaimsformat.cpp:135: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/fpsformat.cpp:143:6:  [1] (buffer) strlen:
  Does not handle 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(pOb->GetTitle())==0)
data/openbabel-3.1.1+dfsg/src/formats/freefracformat.cpp:139: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(buffer) != 0)
data/openbabel-3.1.1+dfsg/src/formats/freefracformat.cpp:181: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(buffer) == 0 || *buffer == 0x0D) //incl Windows kludge
data/openbabel-3.1.1+dfsg/src/formats/freefracformat.cpp:221: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/gamessformat.cpp:624: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(buffer)
data/openbabel-3.1.1+dfsg/src/formats/gamessukformat.cpp:759: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).
    while (ifs.good() && ifs.getline(buffer, BUFF_SIZE) && strlen(buffer) != 0)
data/openbabel-3.1.1+dfsg/src/formats/gausscubeformat.cpp:541: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:527:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (coords_type, vs[0].c_str(), 24);
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:554: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 (buffer[strlen(buffer)-1] == ',')
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:556: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).
                      buffer[strlen(buffer)-1] = '\0';
data/openbabel-3.1.1+dfsg/src/formats/gaussformat.cpp:702: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).
              const char *ptr = buffer+strlen("Exact polarizability:   ");
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:277:8:  [1] (buffer) strlen:
  Does not handle 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(buffer) == 0)
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:293:8:  [1] (buffer) strlen:
  Does not handle 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(buffer) == 0) {
data/openbabel-3.1.1+dfsg/src/formats/gausszmatformat.cpp:408: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		length = strlen(pattern);
data/openbabel-3.1.1+dfsg/src/formats/ghemicalformat.cpp:134:14:  [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(buffer,"%d%d%2s",&bgn,&end,bobuf))
data/openbabel-3.1.1+dfsg/src/formats/ghemicalformat.cpp:193: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp:136:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(res_name,(char*)res->GetName().c_str(), 16);
data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp:138:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(type_name,(char*)res->GetAtomID(atom).c_str(), 16);
data/openbabel-3.1.1+dfsg/src/formats/gromos96format.cpp:144:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(type_name,OBElements::GetSymbol(atom->GetAtomicNum()), 16);
data/openbabel-3.1.1+dfsg/src/formats/hinformat.cpp:153: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/inchiformat.cpp:292:6:  [1] (buffer) strlen:
  Does not handle 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(mol.GetTitle())==0)
data/openbabel-3.1.1+dfsg/src/formats/inchiformat.cpp:775: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).
  opts = new char[strlen(sopts.c_str())+1]; //has to be char, not const char
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:1474: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).
    if(buffer[strlen(buffer)-1] == '-') //continuation char
data/openbabel-3.1.1+dfsg/src/formats/mdlformat.cpp:1501:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(type,vs[3].c_str(),5);
data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp:135: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(buffer,"%9s%d%d%d%d%d%d%d%d%d%d%d%d%lf%lf%lf",
data/openbabel-3.1.1+dfsg/src/formats/mmodformat.cpp:201: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:242: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).
                len = (int) strlen(buffer)+1;
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:279: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(buffer," %*s %1024s %lf %lf %lf %1024s %d %1024s %lf",
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:377: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(resname) != 0 && strncmp(resname,"<1>", 3) != 0)
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:445: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(buffer,"%*d %d %d %1024s",&start,&end,temp_type);
data/openbabel-3.1.1+dfsg/src/formats/mol2format.cpp:701: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(rnum,"1");
data/openbabel-3.1.1+dfsg/src/formats/mopacformat.cpp:1015:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(type, OBElements::GetSymbol(atom->GetAtomicNum()), 16);
data/openbabel-3.1.1+dfsg/src/formats/msiformat.cpp:259: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/nwchemformat.cpp:498: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).
                if (strlen(buffer) < 2) // If blank line detected
data/openbabel-3.1.1+dfsg/src/formats/opendxformat.cpp:235: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/pcmodelformat.cpp:172: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:266: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:303:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(integerBuffer, buffer+columnAsSpecifiedInPDB-1, 5);
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:343: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(buffer) < 70)
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:349: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(buffer) << " columns." << endl;
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:587: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(mol.GetTitle()) > 0)
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:674:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(type_name, OBElements::GetSymbol(atom->GetAtomicNum()), sizeof(type_name));
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:678: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(type_name) > 1)
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:683:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, type_name, 9); // make sure to null-terminate tmp
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:696: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(OBElements::GetSymbol(atom->GetAtomicNum())) == 1)
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:698: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).
                if (strlen(type_name) < 4)
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:701:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(tmp, type_name, 9); // make sure to null-terminate tmp
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:703:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(type_name,padded_name,4);
data/openbabel-3.1.1+dfsg/src/formats/pdbformat.cpp:727:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(type_name,padded_name,4);
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:314: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:335:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(type_name, OBElements::GetSymbol(atom->GetAtomicNum()), sizeof(type_name));
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:339: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(type_name) > 1)
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:344:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp, type_name, 9); // Make sure to null-terminate
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:357: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(OBElements::GetSymbol(atom->GetAtomicNum())) == 1)
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:359: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(type_name) < 4)
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:362:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(tmp, type_name, 9); // make sure to null-terminate
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:364:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(type_name,padded_name,4);
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:378:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(type_name,padded_name,4);
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:923:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(type_name, OBElements::GetSymbol(rotBondTable[rotBondId][bondAtomNum]->GetAtomicNum()), sizeof(type_name));
data/openbabel-3.1.1+dfsg/src/formats/pdbqtformat.cpp:924: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).
              if (strlen(type_name) > 1)
data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp:223:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ifs.read(readbytes, 8);
data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp:225:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if(!equal(pngheader, pngheader+8, readbytes))
data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp:235:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ifs.read(readbytes,4);
data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp:276:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ifs.read((char*)pCompTxt, datalength);
data/openbabel-3.1.1+dfsg/src/formats/pngformat.cpp:369: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(pid && strlen(pid)==4)
data/openbabel-3.1.1+dfsg/src/formats/posformat.cpp:190: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).
        while (ifs.getline(buffer,BUFF_SIZE) && strlen(buffer)) {
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:191: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:460: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(mol.GetTitle()) > 0)
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:501:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(type_name, OBElements::GetSymbol(atom->GetAtomicNum()), sizeof(type_name));
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:505: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(type_name) > 1)
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:510:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, type_name, 9); // make sure to null-terminate
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:522: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(OBElements::GetSymbol(atom->GetAtomicNum())) == 1)
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:524: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).
                if (strlen(type_name) < 4)
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:527:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(tmp, type_name, 15); // make sure to null-terminate
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:529:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(type_name,padded_name,4);
data/openbabel-3.1.1+dfsg/src/formats/pqrformat.cpp:543:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(type_name,padded_name,4);
data/openbabel-3.1.1+dfsg/src/formats/shelxformat.cpp:141:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(type,vs[0].c_str(), sizeof(type));
data/openbabel-3.1.1+dfsg/src/formats/thermoformat.cpp:92:3:  [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(ln,"%18s%6s",nam,dum);
data/openbabel-3.1.1+dfsg/src/formats/tinkerformat.cpp:148: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp:110: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.
        if(sscanf(buffer,"%f %f %f %7s",&x,&y,&z,atomtype)!=4)
data/openbabel-3.1.1+dfsg/src/formats/turbomoleformat.cpp:136: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/unichemformat.cpp:126: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/viewmolformat.cpp:173: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(mol.GetTitle()) > 0)
data/openbabel-3.1.1+dfsg/src/formats/xml/cmlformat.cpp:2271:8:  [1] (buffer) strlen:
  Does not handle 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(_pmol->GetTitle())==0)
data/openbabel-3.1.1+dfsg/src/formats/xml/xml.cpp:343: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).
    streamsize count = strlen(buffer);
data/openbabel-3.1.1+dfsg/src/formats/xyzformat.cpp:272: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).
    while(strlen(buffer) == 0 && !ifs.eof() );
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:384:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ifs.read(buffer,8);
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:388:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  for (i=0;i<infosize;i++) ifs.read(buffer,1);
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:390:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ifs.read(buffer,4);
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:394:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ifs.read((char*)mob,size);
data/openbabel-3.1.1+dfsg/src/formats/yasaraformat.cpp:569: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(mob_elementsym[element])==1||strncasecmp(mob_elementsym[element],atomname,2)) pos=5; }
data/openbabel-3.1.1+dfsg/src/grid.cpp:378:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._xmin,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:379:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._xmax,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:380:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._ymin,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:381:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._ymax,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:382:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._zmin,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:383:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._zmax,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:385:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._midx,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:386:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._midy,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:387:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._midz,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:388:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._inv_spa,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:389:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._spacing,sizeof(double));
data/openbabel-3.1.1+dfsg/src/grid.cpp:390:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._xdim,sizeof(int));
data/openbabel-3.1.1+dfsg/src/grid.cpp:391:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._ydim,sizeof(int));
data/openbabel-3.1.1+dfsg/src/grid.cpp:392:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._zdim,sizeof(int));
data/openbabel-3.1.1+dfsg/src/grid.cpp:397:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&fg._values[0],size);
data/openbabel-3.1.1+dfsg/src/math/spacegroup.cpp:126: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) == 0)
data/openbabel-3.1.1+dfsg/src/obmolecformat.cpp:535:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(header.filename,datafilename.c_str(), sizeof(header.filename));
data/openbabel-3.1.1+dfsg/src/obmolecformat.cpp:552:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        indexstream.read((char*)&header,sizeof(headertype));
data/openbabel-3.1.1+dfsg/src/obmolecformat.cpp:560:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            indexstream.read(&title[0],len);
data/openbabel-3.1.1+dfsg/src/obmolecformat.cpp:561:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            indexstream.read((char*)&pos,sizeof(unsigned));
data/openbabel-3.1.1+dfsg/src/ops/sort.cpp:82: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).
    const char* pLast = OptionText + strlen(OptionText)-1;
data/openbabel-3.1.1+dfsg/src/ops/sort.cpp:83: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).
    _addDescToTitle = *(OptionText + strlen(OptionText)-1)=='+';//last char
data/openbabel-3.1.1+dfsg/src/parsmart.cpp:1714: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).
    _buffer = new char[strlen(buffer) + 1];
data/openbabel-3.1.1+dfsg/src/patty.cpp:123:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(tmp_str,vs[0].c_str(), sizeof(tmp_str) - 1);
data/openbabel-3.1.1+dfsg/src/patty.cpp:145:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, rules[i].c_str(), BUFF_SIZE - 1); // leave space for null termination
data/openbabel-3.1.1+dfsg/src/patty.cpp:151:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(tmp_str,vs[0].c_str(), sizeof(tmp_str) - 1);
data/openbabel-3.1.1+dfsg/src/residue.cpp:341: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 (res != nullptr && strlen(res) > 2)
data/openbabel-3.1.1+dfsg/src/ring.cpp:593:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_type,type, sizeof(_type) - 1);
data/openbabel-3.1.1+dfsg/src/ring.cpp:599:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
     strncpy(_type,type.c_str(), sizeof(_type) - 1);
data/openbabel-3.1.1+dfsg/src/rotor.cpp:857:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(temp_buffer,vs[0].c_str(), sizeof(temp_buffer) - 1);
data/openbabel-3.1.1+dfsg/src/snprintf.c:605: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 n = !q ? strlen(p) : (q-p);
data/openbabel-3.1.1+dfsg/src/snprintf.c:811: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).
                        str_arg_l = strlen(str_arg);
data/openbabel-3.1.1+dfsg/src/tokenst.cpp:71: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).
    length = strlen(string);
data/openbabel-3.1.1+dfsg/src/zipstreamimpl.h:596:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _istream.read((char_type*) &_input_buffer[0],
data/openbabel-3.1.1+dfsg/test/cifspacegrouptest.cpp:148:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  OB_ASSERT( equal(trans_exp.begin(), trans_exp.end(), trans_got.begin()) );
data/openbabel-3.1.1+dfsg/tools/getopt.c:240: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).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/openbabel-3.1.1+dfsg/tools/getopt.c:243:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
extern int strlen (const char *);
data/openbabel-3.1.1+dfsg/tools/getopt.c:434: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).
              int len = nonoption_flags_max_len = strlen (orig_str);
data/openbabel-3.1.1+dfsg/tools/getopt.c:662: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).
                == (unsigned int) strlen (p->name))
data/openbabel-3.1.1+dfsg/tools/getopt.c:705: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).
          nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/getopt.c:767: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).
                  nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/getopt.c:800: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).
                  nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/getopt.c:805: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).
          nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/getopt.c:982:58:  [1] (buffer) strlen:
  Does not handle 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 ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/openbabel-3.1.1+dfsg/tools/getopt.c:1021: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).
            nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/getopt.c:1058: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).
                    nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/getopt.c:1089: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).
                    nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/getopt.c:1093: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).
            nextchar += strlen (nextchar);
data/openbabel-3.1.1+dfsg/tools/obabel.cpp:203: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(strlen(pFormat->SpecificationURL()))
data/openbabel-3.1.1+dfsg/tools/obdoc.cpp:110: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).
      if (pFormat->GetMIMEType() && strlen(pFormat->GetMIMEType()) != 0)
data/openbabel-3.1.1+dfsg/tools/obdoc.cpp:117: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).
          strlen(pFormat->SpecificationURL()) != 0)
data/openbabel-3.1.1+dfsg/tools/obprop.cpp:129: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(mol.GetTitle()) != 0)

ANALYSIS SUMMARY:

Hits = 1464
Lines analyzed = 442274 in approximately 24.41 seconds (18122 lines/second)
Physical Source Lines of Code (SLOC) = 366413
Hits@level = [0] 961 [1] 282 [2] 1087 [3]  38 [4]  57 [5]   0
Hits@level+ = [0+] 2425 [1+] 1464 [2+] 1182 [3+]  95 [4+]  57 [5+]   0
Hits/KSLOC@level+ = [0+] 6.61821 [1+] 3.99549 [2+] 3.22587 [3+] 0.25927 [4+] 0.155562 [5+]   0
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.