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/leptonlib-1.79.0/prog/livre_orient.c
Examining data/leptonlib-1.79.0/prog/arabic_lines.c
Examining data/leptonlib-1.79.0/prog/colorseg_reg.c
Examining data/leptonlib-1.79.0/prog/settest.c
Examining data/leptonlib-1.79.0/prog/bytea_reg.c
Examining data/leptonlib-1.79.0/prog/recog_bootnum2.c
Examining data/leptonlib-1.79.0/prog/concatpdf.c
Examining data/leptonlib-1.79.0/prog/psio_reg.c
Examining data/leptonlib-1.79.0/prog/pixcomp_reg.c
Examining data/leptonlib-1.79.0/prog/speckle_reg.c
Examining data/leptonlib-1.79.0/prog/rotate2_reg.c
Examining data/leptonlib-1.79.0/prog/colorsegtest.c
Examining data/leptonlib-1.79.0/prog/dewarptest4.c
Examining data/leptonlib-1.79.0/prog/rotateorthtest1.c
Examining data/leptonlib-1.79.0/prog/blend4_reg.c
Examining data/leptonlib-1.79.0/prog/rotate_it.c
Examining data/leptonlib-1.79.0/prog/comparepixa.c
Examining data/leptonlib-1.79.0/prog/hashtest.c
Examining data/leptonlib-1.79.0/prog/overlap_reg.c
Examining data/leptonlib-1.79.0/prog/rectangle_reg.c
Examining data/leptonlib-1.79.0/prog/pdfio1_reg.c
Examining data/leptonlib-1.79.0/prog/rotate1_reg.c
Examining data/leptonlib-1.79.0/prog/recogtest1.c
Examining data/leptonlib-1.79.0/prog/boxa4_reg.c
Examining data/leptonlib-1.79.0/prog/pageseg_reg.c
Examining data/leptonlib-1.79.0/prog/boxa1_reg.c
Examining data/leptonlib-1.79.0/prog/cctest1.c
Examining data/leptonlib-1.79.0/prog/subpixel_reg.c
Examining data/leptonlib-1.79.0/prog/livre_pageseg.c
Examining data/leptonlib-1.79.0/prog/jbrankhaus.c
Examining data/leptonlib-1.79.0/prog/binarize_reg.c
Examining data/leptonlib-1.79.0/prog/italic_reg.c
Examining data/leptonlib-1.79.0/prog/autogentest1.c
Examining data/leptonlib-1.79.0/prog/dwamorph1_reg.c
Examining data/leptonlib-1.79.0/prog/writemtiff.c
Examining data/leptonlib-1.79.0/prog/recog_bootnum3.c
Examining data/leptonlib-1.79.0/prog/dewarptest1.c
Examining data/leptonlib-1.79.0/prog/printtiff.c
Examining data/leptonlib-1.79.0/prog/colorize_reg.c
Examining data/leptonlib-1.79.0/prog/misctest1.c
Examining data/leptonlib-1.79.0/prog/printimage.c
Examining data/leptonlib-1.79.0/prog/colormorph_reg.c
Examining data/leptonlib-1.79.0/prog/binarize_set.c
Examining data/leptonlib-1.79.0/prog/binmorph1_reg.c
Examining data/leptonlib-1.79.0/prog/scale_it.c
Examining data/leptonlib-1.79.0/prog/numaranktest.c
Examining data/leptonlib-1.79.0/prog/textorient.c
Examining data/leptonlib-1.79.0/prog/threshnorm_reg.c
Examining data/leptonlib-1.79.0/prog/croptest.c
Examining data/leptonlib-1.79.0/prog/converttopdf.c
Examining data/leptonlib-1.79.0/prog/flipselgen.c
Examining data/leptonlib-1.79.0/prog/colorquant_reg.c
Examining data/leptonlib-1.79.0/prog/bilinear_reg.c
Examining data/leptonlib-1.79.0/prog/sudokutest.c
Examining data/leptonlib-1.79.0/prog/dwamorph2_reg.c
Examining data/leptonlib-1.79.0/prog/watershed_reg.c
Examining data/leptonlib-1.79.0/prog/binmorph4_reg.c
Examining data/leptonlib-1.79.0/prog/nearline_reg.c
Examining data/leptonlib-1.79.0/prog/rbtreetest.c
Examining data/leptonlib-1.79.0/prog/autogentest2.c
Examining data/leptonlib-1.79.0/prog/rasteropip_reg.c
Examining data/leptonlib-1.79.0/prog/ptra2_reg.c
Examining data/leptonlib-1.79.0/prog/otsutest2.c
Examining data/leptonlib-1.79.0/prog/morphseq_reg.c
Examining data/leptonlib-1.79.0/prog/pixserial_reg.c
Examining data/leptonlib-1.79.0/prog/digitprep1.c
Examining data/leptonlib-1.79.0/prog/dwalinear.3.c
Examining data/leptonlib-1.79.0/prog/fhmtauto_reg.c
Examining data/leptonlib-1.79.0/prog/convertfilestopdf.c
Examining data/leptonlib-1.79.0/prog/rankbin_reg.c
Examining data/leptonlib-1.79.0/prog/grayquant_reg.c
Examining data/leptonlib-1.79.0/prog/jbclass_reg.c
Examining data/leptonlib-1.79.0/prog/edge_reg.c
Examining data/leptonlib-1.79.0/prog/autogen.137.c
Examining data/leptonlib-1.79.0/prog/numa1_reg.c
Examining data/leptonlib-1.79.0/prog/recogtest5.c
Examining data/leptonlib-1.79.0/prog/dwalinearlow.3.c
Examining data/leptonlib-1.79.0/prog/bincompare.c
Examining data/leptonlib-1.79.0/prog/graymorphtest.c
Examining data/leptonlib-1.79.0/prog/find_colorregions.c
Examining data/leptonlib-1.79.0/prog/pta_reg.c
Examining data/leptonlib-1.79.0/prog/rotatetest1.c
Examining data/leptonlib-1.79.0/prog/projection_reg.c
Examining data/leptonlib-1.79.0/prog/reducetest.c
Examining data/leptonlib-1.79.0/prog/yuvtest.c
Examining data/leptonlib-1.79.0/prog/convertformat.c
Examining data/leptonlib-1.79.0/prog/jpegio_reg.c
Examining data/leptonlib-1.79.0/prog/imagetops.c
Examining data/leptonlib-1.79.0/prog/partitiontest.c
Examining data/leptonlib-1.79.0/prog/croptext.c
Examining data/leptonlib-1.79.0/prog/printsplitimage.c
Examining data/leptonlib-1.79.0/prog/runlengthtest.c
Examining data/leptonlib-1.79.0/prog/pngio_reg.c
Examining data/leptonlib-1.79.0/prog/string_reg.c
Examining data/leptonlib-1.79.0/prog/alltests_reg.c
Examining data/leptonlib-1.79.0/prog/pixa2_reg.c
Examining data/leptonlib-1.79.0/prog/coloring_reg.c
Examining data/leptonlib-1.79.0/prog/webpio_reg.c
Examining data/leptonlib-1.79.0/prog/fpixcontours.c
Examining data/leptonlib-1.79.0/prog/bilateral2_reg.c
Examining data/leptonlib-1.79.0/prog/livre_tophat.c
Examining data/leptonlib-1.79.0/prog/hardlight_reg.c
Examining data/leptonlib-1.79.0/prog/xformbox_reg.c
Examining data/leptonlib-1.79.0/prog/convertfilestops.c
Examining data/leptonlib-1.79.0/prog/livre_seedgen.c
Examining data/leptonlib-1.79.0/prog/displayboxes_on_pixa.c
Examining data/leptonlib-1.79.0/prog/pagesegtest2.c
Examining data/leptonlib-1.79.0/prog/alphaops_reg.c
Examining data/leptonlib-1.79.0/prog/modifyhuesat.c
Examining data/leptonlib-1.79.0/prog/recogtest3.c
Examining data/leptonlib-1.79.0/prog/dna_reg.c
Examining data/leptonlib-1.79.0/prog/boxa3_reg.c
Examining data/leptonlib-1.79.0/prog/pixa1_reg.c
Examining data/leptonlib-1.79.0/prog/quadtree_reg.c
Examining data/leptonlib-1.79.0/prog/removecmap.c
Examining data/leptonlib-1.79.0/prog/skewtest.c
Examining data/leptonlib-1.79.0/prog/fpix1_reg.c
Examining data/leptonlib-1.79.0/prog/recogtest4.c
Examining data/leptonlib-1.79.0/prog/showedges.c
Examining data/leptonlib-1.79.0/prog/lowaccess_reg.c
Examining data/leptonlib-1.79.0/prog/otsutest1.c
Examining data/leptonlib-1.79.0/prog/trctest.c
Examining data/leptonlib-1.79.0/prog/pixaatest.c
Examining data/leptonlib-1.79.0/prog/ccbordtest.c
Examining data/leptonlib-1.79.0/prog/conversion_reg.c
Examining data/leptonlib-1.79.0/prog/mtiff_reg.c
Examining data/leptonlib-1.79.0/prog/graphicstest.c
Examining data/leptonlib-1.79.0/prog/rotateorth_reg.c
Examining data/leptonlib-1.79.0/prog/buffertest.c
Examining data/leptonlib-1.79.0/prog/comparepages.c
Examining data/leptonlib-1.79.0/prog/blend2_reg.c
Examining data/leptonlib-1.79.0/prog/jp2kio_reg.c
Examining data/leptonlib-1.79.0/prog/paint_reg.c
Examining data/leptonlib-1.79.0/prog/adaptmap_reg.c
Examining data/leptonlib-1.79.0/prog/pixalloc_reg.c
Examining data/leptonlib-1.79.0/prog/pixtile_reg.c
Examining data/leptonlib-1.79.0/prog/distance_reg.c
Examining data/leptonlib-1.79.0/prog/locminmax_reg.c
Examining data/leptonlib-1.79.0/prog/recogsort.c
Examining data/leptonlib-1.79.0/prog/blackwhite_reg.c
Examining data/leptonlib-1.79.0/prog/expand_reg.c
Examining data/leptonlib-1.79.0/prog/falsecolor_reg.c
Examining data/leptonlib-1.79.0/prog/displaypix.c
Examining data/leptonlib-1.79.0/prog/lowsat_reg.c
Examining data/leptonlib-1.79.0/prog/affine_reg.c
Examining data/leptonlib-1.79.0/prog/shear1_reg.c
Examining data/leptonlib-1.79.0/prog/percolatetest.c
Examining data/leptonlib-1.79.0/prog/shear2_reg.c
Examining data/leptonlib-1.79.0/prog/translate_reg.c
Examining data/leptonlib-1.79.0/prog/listtest.c
Examining data/leptonlib-1.79.0/prog/fcombautogen.c
Examining data/leptonlib-1.79.0/prog/colorcontent_reg.c
Examining data/leptonlib-1.79.0/prog/newspaper_reg.c
Examining data/leptonlib-1.79.0/prog/alphaxform_reg.c
Examining data/leptonlib-1.79.0/prog/barcodetest.c
Examining data/leptonlib-1.79.0/prog/cmapquant_reg.c
Examining data/leptonlib-1.79.0/prog/findpattern2.c
Examining data/leptonlib-1.79.0/prog/webpanimio_reg.c
Examining data/leptonlib-1.79.0/prog/binmorph5_reg.c
Examining data/leptonlib-1.79.0/prog/autogen.137.h
Examining data/leptonlib-1.79.0/prog/corrupttest.c
Examining data/leptonlib-1.79.0/prog/blend1_reg.c
Examining data/leptonlib-1.79.0/prog/wordsinorder.c
Examining data/leptonlib-1.79.0/prog/binarizefiles.c
Examining data/leptonlib-1.79.0/prog/livre_hmt.c
Examining data/leptonlib-1.79.0/prog/pixafileinfo.c
Examining data/leptonlib-1.79.0/prog/blend5_reg.c
Examining data/leptonlib-1.79.0/prog/binmorph3_reg.c
Examining data/leptonlib-1.79.0/prog/checkerboard_reg.c
Examining data/leptonlib-1.79.0/prog/recogtest6.c
Examining data/leptonlib-1.79.0/prog/histoduptest.c
Examining data/leptonlib-1.79.0/prog/sharptest.c
Examining data/leptonlib-1.79.0/prog/binmorph2_reg.c
Examining data/leptonlib-1.79.0/prog/blendcmaptest.c
Examining data/leptonlib-1.79.0/prog/replacebytes.c
Examining data/leptonlib-1.79.0/prog/pixmem_reg.c
Examining data/leptonlib-1.79.0/prog/convertsegfilestops.c
Examining data/leptonlib-1.79.0/prog/plottest.c
Examining data/leptonlib-1.79.0/prog/renderfonts.c
Examining data/leptonlib-1.79.0/prog/grayfill_reg.c
Examining data/leptonlib-1.79.0/prog/projective_reg.c
Examining data/leptonlib-1.79.0/prog/adaptmap_dark.c
Examining data/leptonlib-1.79.0/prog/extrema_reg.c
Examining data/leptonlib-1.79.0/prog/insert_reg.c
Examining data/leptonlib-1.79.0/prog/cleanpdf.c
Examining data/leptonlib-1.79.0/prog/lightcolortest.c
Examining data/leptonlib-1.79.0/prog/smallpix_reg.c
Examining data/leptonlib-1.79.0/prog/splitimage2pdf.c
Examining data/leptonlib-1.79.0/prog/lineremoval_reg.c
Examining data/leptonlib-1.79.0/prog/dither_reg.c
Examining data/leptonlib-1.79.0/prog/enhance_reg.c
Examining data/leptonlib-1.79.0/prog/baseline_reg.c
Examining data/leptonlib-1.79.0/prog/boxa2_reg.c
Examining data/leptonlib-1.79.0/prog/kernel_reg.c
Examining data/leptonlib-1.79.0/prog/fileinfo.c
Examining data/leptonlib-1.79.0/prog/adaptnorm_reg.c
Examining data/leptonlib-1.79.0/prog/dewarprules.c
Examining data/leptonlib-1.79.0/prog/pdfseg_reg.c
Examining data/leptonlib-1.79.0/prog/morphtest1.c
Examining data/leptonlib-1.79.0/prog/ptra1_reg.c
Examining data/leptonlib-1.79.0/prog/scaletest2.c
Examining data/leptonlib-1.79.0/prog/genfonts_reg.c
Examining data/leptonlib-1.79.0/prog/fmorphautogen.c
Examining data/leptonlib-1.79.0/prog/warpertest.c
Examining data/leptonlib-1.79.0/prog/label_reg.c
Examining data/leptonlib-1.79.0/prog/rankhisto_reg.c
Examining data/leptonlib-1.79.0/prog/displayboxa.c
Examining data/leptonlib-1.79.0/prog/histotest.c
Examining data/leptonlib-1.79.0/prog/seedspread_reg.c
Examining data/leptonlib-1.79.0/prog/findpattern_reg.c
Examining data/leptonlib-1.79.0/prog/maze_reg.c
Examining data/leptonlib-1.79.0/prog/convolve_reg.c
Examining data/leptonlib-1.79.0/prog/conncomp_reg.c
Examining data/leptonlib-1.79.0/prog/graymorph1_reg.c
Examining data/leptonlib-1.79.0/prog/dewarptest2.c
Examining data/leptonlib-1.79.0/prog/numa2_reg.c
Examining data/leptonlib-1.79.0/prog/htmlviewer.c
Examining data/leptonlib-1.79.0/prog/findpattern1.c
Examining data/leptonlib-1.79.0/prog/findpattern3.c
Examining data/leptonlib-1.79.0/prog/rank_reg.c
Examining data/leptonlib-1.79.0/prog/iomisc_reg.c
Examining data/leptonlib-1.79.0/prog/livre_makefigs.c
Examining data/leptonlib-1.79.0/prog/texturefill_reg.c
Examining data/leptonlib-1.79.0/prog/gifio_reg.c
Examining data/leptonlib-1.79.0/prog/heap_reg.c
Examining data/leptonlib-1.79.0/prog/dewarptest3.c
Examining data/leptonlib-1.79.0/prog/pixadisp_reg.c
Examining data/leptonlib-1.79.0/prog/gammatest.c
Examining data/leptonlib-1.79.0/prog/fpix2_reg.c
Examining data/leptonlib-1.79.0/prog/dwalineargen.c
Examining data/leptonlib-1.79.0/prog/pnmio_reg.c
Examining data/leptonlib-1.79.0/prog/ccthin1_reg.c
Examining data/leptonlib-1.79.0/prog/rotatefastalt.c
Examining data/leptonlib-1.79.0/prog/multitype_reg.c
Examining data/leptonlib-1.79.0/prog/logicops_reg.c
Examining data/leptonlib-1.79.0/prog/writetext_reg.c
Examining data/leptonlib-1.79.0/prog/selio_reg.c
Examining data/leptonlib-1.79.0/prog/jbcorrelation.c
Examining data/leptonlib-1.79.0/prog/livre_adapt.c
Examining data/leptonlib-1.79.0/prog/contrasttest.c
Examining data/leptonlib-1.79.0/prog/fhmtautogen.c
Examining data/leptonlib-1.79.0/prog/convertsegfilestopdf.c
Examining data/leptonlib-1.79.0/prog/scaletest1.c
Examining data/leptonlib-1.79.0/prog/rasterop_reg.c
Examining data/leptonlib-1.79.0/prog/skew_reg.c
Examining data/leptonlib-1.79.0/prog/cornertest.c
Examining data/leptonlib-1.79.0/prog/arithtest.c
Examining data/leptonlib-1.79.0/prog/converttops.c
Examining data/leptonlib-1.79.0/prog/blend3_reg.c
Examining data/leptonlib-1.79.0/prog/maketile.c
Examining data/leptonlib-1.79.0/prog/xtractprotos.c
Examining data/leptonlib-1.79.0/prog/jbwords.c
Examining data/leptonlib-1.79.0/prog/ioformats_reg.c
Examining data/leptonlib-1.79.0/prog/messagetest.c
Examining data/leptonlib-1.79.0/prog/dewarp_reg.c
Examining data/leptonlib-1.79.0/prog/dewarptest5.c
Examining data/leptonlib-1.79.0/prog/smoothedge_reg.c
Examining data/leptonlib-1.79.0/prog/maptest.c
Examining data/leptonlib-1.79.0/prog/deskew_it.c
Examining data/leptonlib-1.79.0/prog/splitcomp_reg.c
Examining data/leptonlib-1.79.0/prog/comparetest.c
Examining data/leptonlib-1.79.0/prog/partifytest.c
Examining data/leptonlib-1.79.0/prog/displaypixa.c
Examining data/leptonlib-1.79.0/prog/underlinetest.c
Examining data/leptonlib-1.79.0/prog/pagesegtest1.c
Examining data/leptonlib-1.79.0/prog/warper_reg.c
Examining data/leptonlib-1.79.0/prog/scaleandtile.c
Examining data/leptonlib-1.79.0/prog/psioseg_reg.c
Examining data/leptonlib-1.79.0/prog/fmorphauto_reg.c
Examining data/leptonlib-1.79.0/prog/findcorners_reg.c
Examining data/leptonlib-1.79.0/prog/recogtest7.c
Examining data/leptonlib-1.79.0/prog/paintmask_reg.c
Examining data/leptonlib-1.79.0/prog/flipdetect_reg.c
Examining data/leptonlib-1.79.0/prog/bilateral1_reg.c
Examining data/leptonlib-1.79.0/prog/compfilter_reg.c
Examining data/leptonlib-1.79.0/prog/scale_reg.c
Examining data/leptonlib-1.79.0/prog/ccthin2_reg.c
Examining data/leptonlib-1.79.0/prog/sorttest.c
Examining data/leptonlib-1.79.0/prog/colorspace_reg.c
Examining data/leptonlib-1.79.0/prog/converttogray.c
Examining data/leptonlib-1.79.0/prog/pdfio2_reg.c
Examining data/leptonlib-1.79.0/prog/findbinding.c
Examining data/leptonlib-1.79.0/prog/wordboxes_reg.c
Examining data/leptonlib-1.79.0/prog/files_reg.c
Examining data/leptonlib-1.79.0/prog/recog_bootnum1.c
Examining data/leptonlib-1.79.0/prog/recogtest2.c
Examining data/leptonlib-1.79.0/prog/seedfilltest.c
Examining data/leptonlib-1.79.0/prog/compare_reg.c
Examining data/leptonlib-1.79.0/prog/sheartest.c
Examining data/leptonlib-1.79.0/prog/graymorph2_reg.c
Examining data/leptonlib-1.79.0/prog/colormask_reg.c
Examining data/leptonlib-1.79.0/prog/equal_reg.c
Examining data/leptonlib-1.79.0/src/pnmio.c
Examining data/leptonlib-1.79.0/src/dewarp.h
Examining data/leptonlib-1.79.0/src/baseline.c
Examining data/leptonlib-1.79.0/src/bbuffer.c
Examining data/leptonlib-1.79.0/src/warper.c
Examining data/leptonlib-1.79.0/src/jp2kheaderstub.c
Examining data/leptonlib-1.79.0/src/pdfio2.c
Examining data/leptonlib-1.79.0/src/morphseq.c
Examining data/leptonlib-1.79.0/src/rotateshear.c
Examining data/leptonlib-1.79.0/src/bilinear.c
Examining data/leptonlib-1.79.0/src/dewarp2.c
Examining data/leptonlib-1.79.0/src/environ.h
Examining data/leptonlib-1.79.0/src/numafunc1.c
Examining data/leptonlib-1.79.0/src/pixacc.c
Examining data/leptonlib-1.79.0/src/gifiostub.c
Examining data/leptonlib-1.79.0/src/graymorph.c
Examining data/leptonlib-1.79.0/src/stack.c
Examining data/leptonlib-1.79.0/src/partition.c
Examining data/leptonlib-1.79.0/src/bbuffer.h
Examining data/leptonlib-1.79.0/src/sudoku.c
Examining data/leptonlib-1.79.0/src/pdfio2stub.c
Examining data/leptonlib-1.79.0/src/psio1stub.c
Examining data/leptonlib-1.79.0/src/queue.h
Examining data/leptonlib-1.79.0/src/ccbord.h
Examining data/leptonlib-1.79.0/src/fpix2.c
Examining data/leptonlib-1.79.0/src/ccthin.c
Examining data/leptonlib-1.79.0/src/flipdetect.c
Examining data/leptonlib-1.79.0/src/zlibmemstub.c
Examining data/leptonlib-1.79.0/src/maze.c
Examining data/leptonlib-1.79.0/src/sarray2.c
Examining data/leptonlib-1.79.0/src/readbarcode.c
Examining data/leptonlib-1.79.0/src/encoding.c
Examining data/leptonlib-1.79.0/src/recogident.c
Examining data/leptonlib-1.79.0/src/binreduce.c
Examining data/leptonlib-1.79.0/src/colorcontent.c
Examining data/leptonlib-1.79.0/src/skew.c
Examining data/leptonlib-1.79.0/src/pixabasic.c
Examining data/leptonlib-1.79.0/src/allheaders.h
Examining data/leptonlib-1.79.0/src/pixtiling.c
Examining data/leptonlib-1.79.0/src/pix5.c
Examining data/leptonlib-1.79.0/src/dwacomb.2.c
Examining data/leptonlib-1.79.0/src/boxfunc2.c
Examining data/leptonlib-1.79.0/src/ptafunc1.c
Examining data/leptonlib-1.79.0/src/rbtree.c
Examining data/leptonlib-1.79.0/src/psio1.c
Examining data/leptonlib-1.79.0/src/webpanimiostub.c
Examining data/leptonlib-1.79.0/src/correlscore.c
Examining data/leptonlib-1.79.0/src/pix.h
Examining data/leptonlib-1.79.0/src/leptwin.h
Examining data/leptonlib-1.79.0/src/bootnumgen4.c
Examining data/leptonlib-1.79.0/src/jbclass.c
Examining data/leptonlib-1.79.0/src/webpio.c
Examining data/leptonlib-1.79.0/src/bmpiostub.c
Examining data/leptonlib-1.79.0/src/bardecode.c
Examining data/leptonlib-1.79.0/src/binarize.c
Examining data/leptonlib-1.79.0/src/bilateral.c
Examining data/leptonlib-1.79.0/src/bootnumgen1.c
Examining data/leptonlib-1.79.0/src/stack.h
Examining data/leptonlib-1.79.0/src/pixlabel.c
Examining data/leptonlib-1.79.0/src/grayquant.c
Examining data/leptonlib-1.79.0/src/spixio.c
Examining data/leptonlib-1.79.0/src/enhance.c
Examining data/leptonlib-1.79.0/src/classapp.c
Examining data/leptonlib-1.79.0/src/gplot.c
Examining data/leptonlib-1.79.0/src/gifio.c
Examining data/leptonlib-1.79.0/src/rotateam.c
Examining data/leptonlib-1.79.0/src/ccbord.c
Examining data/leptonlib-1.79.0/src/scale2.c
Examining data/leptonlib-1.79.0/src/utils2.c
Examining data/leptonlib-1.79.0/src/imageio.h
Examining data/leptonlib-1.79.0/src/bootnumgen2.c
Examining data/leptonlib-1.79.0/src/colormap.c
Examining data/leptonlib-1.79.0/src/edge.c
Examining data/leptonlib-1.79.0/src/dewarp4.c
Examining data/leptonlib-1.79.0/src/arrayaccess.h
Examining data/leptonlib-1.79.0/src/fmorphgenlow.1.c
Examining data/leptonlib-1.79.0/src/fmorphauto.c
Examining data/leptonlib-1.79.0/src/ptabasic.c
Examining data/leptonlib-1.79.0/src/selgen.c
Examining data/leptonlib-1.79.0/src/stringcode.h
Examining data/leptonlib-1.79.0/src/sarray1.c
Examining data/leptonlib-1.79.0/src/watershed.c
Examining data/leptonlib-1.79.0/src/ptra.c
Examining data/leptonlib-1.79.0/src/map.c
Examining data/leptonlib-1.79.0/src/bmpio.c
Examining data/leptonlib-1.79.0/src/pixconv.c
Examining data/leptonlib-1.79.0/src/strokes.c
Examining data/leptonlib-1.79.0/src/coloring.c
Examining data/leptonlib-1.79.0/src/dewarp3.c
Examining data/leptonlib-1.79.0/src/tiffio.c
Examining data/leptonlib-1.79.0/src/pix2.c
Examining data/leptonlib-1.79.0/src/regutils.h
Examining data/leptonlib-1.79.0/src/compare.c
Examining data/leptonlib-1.79.0/src/readfile.c
Examining data/leptonlib-1.79.0/src/pix1.c
Examining data/leptonlib-1.79.0/src/bootnumgen3.c
Examining data/leptonlib-1.79.0/src/fpix1.c
Examining data/leptonlib-1.79.0/src/ptra.h
Examining data/leptonlib-1.79.0/src/pixafunc2.c
Examining data/leptonlib-1.79.0/src/conncomp.c
Examining data/leptonlib-1.79.0/src/rotateorth.c
Examining data/leptonlib-1.79.0/src/bmf.c
Examining data/leptonlib-1.79.0/src/runlength.c
Examining data/leptonlib-1.79.0/src/boxfunc1.c
Examining data/leptonlib-1.79.0/src/affine.c
Examining data/leptonlib-1.79.0/src/jpegiostub.c
Examining data/leptonlib-1.79.0/src/convolve.c
Examining data/leptonlib-1.79.0/src/scale1.c
Examining data/leptonlib-1.79.0/src/numafunc2.c
Examining data/leptonlib-1.79.0/src/boxfunc3.c
Examining data/leptonlib-1.79.0/src/colorquant1.c
Examining data/leptonlib-1.79.0/src/pixalloc.c
Examining data/leptonlib-1.79.0/src/jbclass.h
Examining data/leptonlib-1.79.0/src/bmp.h
Examining data/leptonlib-1.79.0/src/parseprotos.c
Examining data/leptonlib-1.79.0/src/recogdid.c
Examining data/leptonlib-1.79.0/src/array.h
Examining data/leptonlib-1.79.0/src/affinecompose.c
Examining data/leptonlib-1.79.0/src/fmorphgen.1.c
Examining data/leptonlib-1.79.0/src/stringcode.c
Examining data/leptonlib-1.79.0/src/pixafunc1.c
Examining data/leptonlib-1.79.0/src/watershed.h
Examining data/leptonlib-1.79.0/src/roplow.c
Examining data/leptonlib-1.79.0/src/pdfio1.c
Examining data/leptonlib-1.79.0/src/psio2.c
Examining data/leptonlib-1.79.0/src/bmf.h
Examining data/leptonlib-1.79.0/src/pix3.c
Examining data/leptonlib-1.79.0/src/jp2kheader.c
Examining data/leptonlib-1.79.0/src/readbarcode.h
Examining data/leptonlib-1.79.0/src/kernel.c
Examining data/leptonlib-1.79.0/src/bmfdata.h
Examining data/leptonlib-1.79.0/src/ptafunc2.c
Examining data/leptonlib-1.79.0/src/pixcomp.c
Examining data/leptonlib-1.79.0/src/webpanimio.c
Examining data/leptonlib-1.79.0/src/dewarp1.c
Examining data/leptonlib-1.79.0/src/webpiostub.c
Examining data/leptonlib-1.79.0/src/rbtree.h
Examining data/leptonlib-1.79.0/src/heap.c
Examining data/leptonlib-1.79.0/src/quadtree.c
Examining data/leptonlib-1.79.0/src/bytearray.c
Examining data/leptonlib-1.79.0/src/finditalic.c
Examining data/leptonlib-1.79.0/src/fhmtgen.1.c
Examining data/leptonlib-1.79.0/src/pix4.c
Examining data/leptonlib-1.79.0/src/recogtrain.c
Examining data/leptonlib-1.79.0/src/dnabasic.c
Examining data/leptonlib-1.79.0/src/psio2stub.c
Examining data/leptonlib-1.79.0/src/jp2kiostub.c
Examining data/leptonlib-1.79.0/src/colorseg.c
Examining data/leptonlib-1.79.0/src/dwacomblow.2.c
Examining data/leptonlib-1.79.0/src/shear.c
Examining data/leptonlib-1.79.0/src/alltypes.h
Examining data/leptonlib-1.79.0/src/writefile.c
Examining data/leptonlib-1.79.0/src/utils1.c
Examining data/leptonlib-1.79.0/src/recogbasic.c
Examining data/leptonlib-1.79.0/src/pngiostub.c
Examining data/leptonlib-1.79.0/src/sel1.c
Examining data/leptonlib-1.79.0/src/queue.c
Examining data/leptonlib-1.79.0/src/rank.c
Examining data/leptonlib-1.79.0/src/zlibmem.c
Examining data/leptonlib-1.79.0/src/numabasic.c
Examining data/leptonlib-1.79.0/src/graphics.c
Examining data/leptonlib-1.79.0/src/pixarith.c
Examining data/leptonlib-1.79.0/src/adaptmap.c
Examining data/leptonlib-1.79.0/src/pnmiostub.c
Examining data/leptonlib-1.79.0/src/morph.c
Examining data/leptonlib-1.79.0/src/rop.c
Examining data/leptonlib-1.79.0/src/textops.c
Examining data/leptonlib-1.79.0/src/seedfill.c
Examining data/leptonlib-1.79.0/src/list.c
Examining data/leptonlib-1.79.0/src/recog.h
Examining data/leptonlib-1.79.0/src/binexpand.c
Examining data/leptonlib-1.79.0/src/jpegio.c
Examining data/leptonlib-1.79.0/src/colorquant2.c
Examining data/leptonlib-1.79.0/src/checkerboard.c
Examining data/leptonlib-1.79.0/src/jp2kio.c
Examining data/leptonlib-1.79.0/src/gplot.h
Examining data/leptonlib-1.79.0/src/list.h
Examining data/leptonlib-1.79.0/src/heap.h
Examining data/leptonlib-1.79.0/src/leptwin.c
Examining data/leptonlib-1.79.0/src/tiffiostub.c
Examining data/leptonlib-1.79.0/src/morphdwa.c
Examining data/leptonlib-1.79.0/src/fliphmtgen.c
Examining data/leptonlib-1.79.0/src/libversions.c
Examining data/leptonlib-1.79.0/src/rotate.c
Examining data/leptonlib-1.79.0/src/boxbasic.c
Examining data/leptonlib-1.79.0/src/bilateral.h
Examining data/leptonlib-1.79.0/src/dnafunc1.c
Examining data/leptonlib-1.79.0/src/dnahash.c
Examining data/leptonlib-1.79.0/src/colormorph.c
Examining data/leptonlib-1.79.0/src/partify.c
Examining data/leptonlib-1.79.0/src/fhmtgenlow.1.c
Examining data/leptonlib-1.79.0/src/regutils.c
Examining data/leptonlib-1.79.0/src/pageseg.c
Examining data/leptonlib-1.79.0/src/convertfiles.c
Examining data/leptonlib-1.79.0/src/sudoku.h
Examining data/leptonlib-1.79.0/src/boxfunc5.c
Examining data/leptonlib-1.79.0/src/colorspace.c
Examining data/leptonlib-1.79.0/src/pdfio1stub.c
Examining data/leptonlib-1.79.0/src/pngio.c
Examining data/leptonlib-1.79.0/src/projective.c
Examining data/leptonlib-1.79.0/src/blend.c
Examining data/leptonlib-1.79.0/src/morphapp.c
Examining data/leptonlib-1.79.0/src/fhmtauto.c
Examining data/leptonlib-1.79.0/src/sel2.c
Examining data/leptonlib-1.79.0/src/morph.h
Examining data/leptonlib-1.79.0/src/paintcmap.c
Examining data/leptonlib-1.79.0/src/boxfunc4.c
Examining data/leptonlib-1.79.0/src/arrayaccess.c
Examining data/leptonlib-1.79.0/sw.cpp

FINAL RESULTS:

data/leptonlib-1.79.0/prog/alltests_reg.c:246:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system(command);
data/leptonlib-1.79.0/prog/alltests_reg.c:266:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system(command);
data/leptonlib-1.79.0/prog/binmorph2_reg.c:199:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, str);
data/leptonlib-1.79.0/prog/binmorph2_reg.c:207:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, str);
data/leptonlib-1.79.0/prog/binmorph2_reg.c:213:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, str);
data/leptonlib-1.79.0/prog/binmorph2_reg.c:219:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, str);
data/leptonlib-1.79.0/prog/cleanpdf.c:136:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system(buf);   /* pdfimages -j */
data/leptonlib-1.79.0/prog/concatpdf.c:105:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system(buf);  /* acroread -toPostScript -annotsOff */
data/leptonlib-1.79.0/prog/concatpdf.c:126:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system(buf);  /* ps2png-gray */
data/leptonlib-1.79.0/prog/htmlviewer.c:165:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:61:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system("livre_seedgen");
data/leptonlib-1.79.0/prog/livre_makefigs.c:64:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:68:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:71:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:74:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:77:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:80:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:88:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system("livre_orient");
data/leptonlib-1.79.0/prog/livre_makefigs.c:91:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:99:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system("livre_hmt 1 8");
data/leptonlib-1.79.0/prog/livre_makefigs.c:102:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:110:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system("livre_hmt 2 4");
data/leptonlib-1.79.0/prog/livre_makefigs.c:113:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:116:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system("livre_tophat");
data/leptonlib-1.79.0/prog/livre_makefigs.c:119:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system(buf);
data/leptonlib-1.79.0/prog/livre_makefigs.c:122:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ignore = system("livre_adapt");
data/leptonlib-1.79.0/prog/pdfio2_reg.c:297:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = system(buffer);  /* pdftk */
data/leptonlib-1.79.0/prog/printimage.c:145:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            ret = system(buffer);
data/leptonlib-1.79.0/prog/printimage.c:149:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            ret = system(buffer);
data/leptonlib-1.79.0/prog/printsplitimage.c:141:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            ignore = system(buf);
data/leptonlib-1.79.0/prog/printtiff.c:92:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system(buf);
data/leptonlib-1.79.0/prog/psioseg_reg.c:152:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = system(buf);  /* ps2pdf */
data/leptonlib-1.79.0/prog/xtractprotos.c:199:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = system(buf);  /* cpp */
data/leptonlib-1.79.0/src/environ.h:556: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(buf, size, ...)  _snprintf_s(buf, size, _TRUNCATE, __VA_ARGS__)
data/leptonlib-1.79.0/src/fhmtauto.c:353:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "                             \"%s\",",
data/leptonlib-1.79.0/src/fhmtauto.c:357:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(bigbuf, "                             \"%s\"};",
data/leptonlib-1.79.0/src/fhmtauto.c:403:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "%s.%d.c", OUTROOT, fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:482:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "static void  %s%s", fname, PROTOARGS);
data/leptonlib-1.79.0/src/fhmtauto.c:540:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "        %s(datad, w, h, wpld, datas, wpls);",
data/leptonlib-1.79.0/src/fhmtauto.c:564:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "%s(l_uint32  *datad,", fname);
data/leptonlib-1.79.0/src/fhmtauto.c:622:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "%slow.%d.c", OUTROOT, fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:731:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "            *dptr = %s;", string);
data/leptonlib-1.79.0/src/fhmtauto.c:733:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "            *dptr = %s %s", string, land);
data/leptonlib-1.79.0/src/fhmtauto.c:735:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "                    %s %s", string, land);
data/leptonlib-1.79.0/src/fhmtauto.c:737:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "                    %s;", string);
data/leptonlib-1.79.0/src/fhmtauto.c:772:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "(*(sptr %s))", wplstrm[absy - 1]);
data/leptonlib-1.79.0/src/fhmtauto.c:774:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "(*(sptr %s))", wplstrp[absy - 1]);
data/leptonlib-1.79.0/src/fhmtauto.c:782:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((*(sptr %s) >> %d) | (*(sptr %s - 1) << %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:785:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((*(sptr %s) << %d) | (*(sptr %s + 1) >> %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:788:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((*(sptr %s) >> %d) | (*(sptr %s - 1) << %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:791:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((*(sptr %s) << %d) | (*(sptr %s + 1) >> %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:797:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "(~*(sptr %s))", wplstrm[absy - 1]);
data/leptonlib-1.79.0/src/fhmtauto.c:799:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "(~*(sptr %s))", wplstrp[absy - 1]);
data/leptonlib-1.79.0/src/fhmtauto.c:807:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((~*(sptr %s) >> %d) | (~*(sptr %s - 1) << %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:810:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((~*(sptr %s) << %d) | (~*(sptr %s + 1) >> %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:813:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((~*(sptr %s) >> %d) | (~*(sptr %s - 1) << %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:816:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bigbuf, "((~*(sptr %s) << %d) | (~*(sptr %s + 1) >> %d))",
data/leptonlib-1.79.0/src/fmorphauto.c:401:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "                             \"%s\",",
data/leptonlib-1.79.0/src/fmorphauto.c:405:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(bigbuf, "                             \"%s\"};",
data/leptonlib-1.79.0/src/fmorphauto.c:464:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "%s.%d.c", OUTROOT, fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:542:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "static void  %s%s", fname, PROTOARGS);
data/leptonlib-1.79.0/src/fmorphauto.c:603:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "        %s(datad, w, h, wpld, datas, wpls);",
data/leptonlib-1.79.0/src/fmorphauto.c:627:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "%s(l_uint32  *datad,", fname);
data/leptonlib-1.79.0/src/fmorphauto.c:661:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "%slow.%d.c", OUTROOT, fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:815:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "            *dptr = %s;", string);
data/leptonlib-1.79.0/src/fmorphauto.c:817:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "            *dptr = %s %s", string, tstr);
data/leptonlib-1.79.0/src/fmorphauto.c:819:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "                    %s %s", string, tstr);
data/leptonlib-1.79.0/src/fmorphauto.c:821:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(bigbuf, "                    %s;", string);
data/leptonlib-1.79.0/src/fmorphauto.c:854:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "(*(sptr %s))", wplstrm[absy - 1]);
data/leptonlib-1.79.0/src/fmorphauto.c:856:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "(*(sptr %s))", wplstrp[absy - 1]);
data/leptonlib-1.79.0/src/fmorphauto.c:864:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "((*(sptr %s) >> %d) | (*(sptr %s - 1) << %d))",
data/leptonlib-1.79.0/src/fmorphauto.c:867:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "((*(sptr %s) << %d) | (*(sptr %s + 1) >> %d))",
data/leptonlib-1.79.0/src/fmorphauto.c:870:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "((*(sptr %s) >> %d) | (*(sptr %s - 1) << %d))",
data/leptonlib-1.79.0/src/fmorphauto.c:873:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "((*(sptr %s) << %d) | (*(sptr %s + 1) >> %d))",
data/leptonlib-1.79.0/src/numabasic.c:1067:13:  [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.
            snprintf(strbuf, sizeof(strbuf), fmt, ival);
data/leptonlib-1.79.0/src/numabasic.c:1070:13:  [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.
            snprintf(strbuf, sizeof(strbuf), fmt, fval);
data/leptonlib-1.79.0/src/utils1.c:312: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.
    n = vsnprintf(msg, sizeof(msg), fmt, args);
data/leptonlib-1.79.0/src/utils2.c:967: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(dest + npre, sub2);
data/leptonlib-1.79.0/src/utils2.c:968: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(dest + npre + nsub2, ptr + nsub1);
data/leptonlib-1.79.0/src/utils2.c:2659:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ret = system(cmd);
data/leptonlib-1.79.0/src/utils2.c:2666:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   ret = system(cmd);
data/leptonlib-1.79.0/prog/files_reg.c:123: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.
    if (getenv("TMPDIR") == NULL) {
data/leptonlib-1.79.0/prog/overlap_reg.c:71: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(45617);
data/leptonlib-1.79.0/prog/percolatetest.c:65: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(26);
data/leptonlib-1.79.0/prog/percolatetest.c:90: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(26);
data/leptonlib-1.79.0/prog/percolatetest.c:116: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(26);
data/leptonlib-1.79.0/prog/percolatetest.c:150: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(26);
data/leptonlib-1.79.0/prog/percolatetest.c:184: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(26);
data/leptonlib-1.79.0/prog/percolatetest.c:215: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(26);
data/leptonlib-1.79.0/prog/percolatetest.c:247: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(26);
data/leptonlib-1.79.0/src/dewarp2.c:437: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(3);
data/leptonlib-1.79.0/src/dewarp2.c:439: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(3);  /* use the same colors for text and reference lines */
data/leptonlib-1.79.0/src/maze.c:165: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(28*333);
data/leptonlib-1.79.0/src/numafunc1.c:3004: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(seed);
data/leptonlib-1.79.0/src/sarray1.c:1887:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    ignore = realpath(dirname, dir);  /* see note above */
data/leptonlib-1.79.0/src/sudoku.c:756: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(seed);
data/leptonlib-1.79.0/src/utils1.c:149:18:  [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.
        envsev = getenv("LEPT_MSG_SEVERITY");
data/leptonlib-1.79.0/src/utils1.c:675:19:  [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.
    if (seed > 0) srand(seed);
data/leptonlib-1.79.0/src/utils2.c:2497:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        remove(realpath);
data/leptonlib-1.79.0/src/utils2.c:2498:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        LEPT_FREE(realpath);
data/leptonlib-1.79.0/src/utils2.c:3306:9:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
    if (GetTempFileName(dirname, "lp.", 0, fname) == 0)
data/leptonlib-1.79.0/src/warper.c:214: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(seed);
data/leptonlib-1.79.0/src/warper.c:363: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(seed);
data/leptonlib-1.79.0/prog/adaptmap_dark.c:157: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     buf[256];
data/leptonlib-1.79.0/prog/alltests_reg.c:209: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         command[256], buf[256];
data/leptonlib-1.79.0/prog/autogentest1.c:54:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char  *files[2] = { "fonts/chars-6.pa", "fonts/chars-10.pa" };
data/leptonlib-1.79.0/prog/autogentest2.c:45:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char  *files[2] = { "fonts/chars-6.pa", "fonts/chars-10.pa" };
data/leptonlib-1.79.0/prog/binarizefiles.c:47: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         buf[256], dirname[256];
data/leptonlib-1.79.0/prog/binarizefiles.c:68: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).
    thresh = atoi(argv[3]);
data/leptonlib-1.79.0/prog/binmorph1_reg.c:98: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     sequence[512];
data/leptonlib-1.79.0/prog/binmorph2_reg.c:50: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         buffer1[256];
data/leptonlib-1.79.0/prog/binmorph2_reg.c:51: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         buffer2[256];
data/leptonlib-1.79.0/prog/blackwhite_reg.c:39: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 *fnames[11] = {"test1.png", "speckle2.png", "weasel2.4g.png",
data/leptonlib-1.79.0/prog/blend2_reg.c:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char fname_png[64] = "/tmp/lept/regout/blend2.14.png";
data/leptonlib-1.79.0/prog/blend2_reg.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char fname_bmp[64] = "/tmp/lept/regout/blend2.14.bmp";
data/leptonlib-1.79.0/prog/boxa3_reg.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char  *boxafiles[3] = {"boxap1.ba", "boxap2.ba", "boxap3.ba"};
data/leptonlib-1.79.0/prog/cleanpdf.c:87: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         buf[256];
data/leptonlib-1.79.0/prog/cleanpdf.c:99: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).
    thresh = atoi(argv[2]);
data/leptonlib-1.79.0/prog/cleanpdf.c:100: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).
    res = atoi(argv[3]);
data/leptonlib-1.79.0/prog/cleanpdf.c:102: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).
        rotation = atoi(argv[4]);
data/leptonlib-1.79.0/prog/coloring_reg.c:49: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          buf[512];
data/leptonlib-1.79.0/prog/colorize_reg.c:273: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       text[64];
data/leptonlib-1.79.0/prog/colormorph_reg.c:44: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          buf[256];
data/leptonlib-1.79.0/prog/colorquant_reg.c:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *image[4] = {"marge.jpg",
data/leptonlib-1.79.0/prog/colorquant_reg.c:73: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       buf[256];
data/leptonlib-1.79.0/prog/colorsegtest.c:89: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).
        max_dist = atoi(argv[3]);
data/leptonlib-1.79.0/prog/colorsegtest.c:90: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).
        max_colors = atoi(argv[4]);
data/leptonlib-1.79.0/prog/colorsegtest.c:91: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).
        sel_size = atoi(argv[5]);
data/leptonlib-1.79.0/prog/colorsegtest.c:92: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).
        final_colors = atoi(argv[6]);
data/leptonlib-1.79.0/prog/colorspace_reg.c:44: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          label[512];
data/leptonlib-1.79.0/prog/comparepixa.c:87: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).
    nx = atoi(argv[3]);
data/leptonlib-1.79.0/prog/comparepixa.c:88: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).
    ny = atoi(argv[4]);
data/leptonlib-1.79.0/prog/comparepixa.c:89: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).
    tw = atoi(argv[5]);
data/leptonlib-1.79.0/prog/comparepixa.c:90: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).
    spacing = atoi(argv[6]);
data/leptonlib-1.79.0/prog/comparepixa.c:91: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).
    border = atoi(argv[7]);
data/leptonlib-1.79.0/prog/comparepixa.c:92: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).
    fontsize = atoi(argv[8]);
data/leptonlib-1.79.0/prog/comparetest.c:77: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).
    type = atoi(argv[3]);
data/leptonlib-1.79.0/prog/concatpdf.c:74: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         buf[256], rootname[256];
data/leptonlib-1.79.0/prog/contrasttest.c:45: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         buf[512];
data/leptonlib-1.79.0/prog/convertfilestopdf.c:90: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).
    res = atoi(argv[3]);
data/leptonlib-1.79.0/prog/convertfilestopdf.c:92: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).
    type = atoi(argv[5]);
data/leptonlib-1.79.0/prog/convertfilestopdf.c:93: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).
    quality = atoi(argv[6]);
data/leptonlib-1.79.0/prog/convertfilestops.c:75: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).
    res = atoi(argv[3]);
data/leptonlib-1.79.0/prog/convertsegfilestopdf.c:122: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).
    res = atoi(argv[5]);
data/leptonlib-1.79.0/prog/convertsegfilestopdf.c:123: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).
    type = atoi(argv[6]);
data/leptonlib-1.79.0/prog/convertsegfilestopdf.c:124: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).
    thresh = atoi(argv[7]);
data/leptonlib-1.79.0/prog/convertsegfilestops.c:115: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).
    page_numpre = atoi(argv[3]);
data/leptonlib-1.79.0/prog/convertsegfilestops.c:118: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).
    mask_numpre = atoi(argv[6]);
data/leptonlib-1.79.0/prog/convertsegfilestops.c:119: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).
    numpost = atoi(argv[7]);
data/leptonlib-1.79.0/prog/convertsegfilestops.c:120: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).
    maxnum = atoi(argv[8]);
data/leptonlib-1.79.0/prog/convertsegfilestops.c:123: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).
    threshold = atoi(argv[11]);
data/leptonlib-1.79.0/prog/converttops.c:58: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).
        level = atoi(argv[3]);
data/leptonlib-1.79.0/prog/corrupttest.c:83: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).
    deletion = atoi(argv[2]);
data/leptonlib-1.79.0/prog/croptext.c:61: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).
    border = atoi(argv[2]);
data/leptonlib-1.79.0/prog/deskew_it.c:77: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).
    threshold = atoi(argv[2]);
data/leptonlib-1.79.0/prog/deskew_it.c:79: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).
    tryboth = atoi(argv[4]);
data/leptonlib-1.79.0/prog/dewarprules.c:69: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).
    select = atoi(argv[1]);
data/leptonlib-1.79.0/prog/dewarprules.c:70: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).
    ndew = atoi(argv[2]);
data/leptonlib-1.79.0/prog/dewarptest2.c:68: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).
        pageno = atoi(argv[3]);
data/leptonlib-1.79.0/prog/dewarptest2.c:72: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).
    method = atoi(argv[1]);
data/leptonlib-1.79.0/prog/dewarptest5.c:47: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        buf[64];
data/leptonlib-1.79.0/prog/digitprep1.c:45: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         buf[16];
data/leptonlib-1.79.0/prog/displayboxa.c:66: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).
    first = atoi(argv[2]);
data/leptonlib-1.79.0/prog/displayboxa.c:67: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).
    last = atoi(argv[3]);
data/leptonlib-1.79.0/prog/displayboxa.c:68: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).
    width = atoi(argv[4]);
data/leptonlib-1.79.0/prog/displayboxes_on_pixa.c:79: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).
    type = atoi(argv[3]);
data/leptonlib-1.79.0/prog/displayboxes_on_pixa.c:80: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).
    width = atoi(argv[4]);
data/leptonlib-1.79.0/prog/displayboxes_on_pixa.c:82: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).
    display = atoi(argv[6]);
data/leptonlib-1.79.0/prog/displaypixa.c:54: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         buf[32];
data/leptonlib-1.79.0/prog/displaypixa.c:78: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).
        showtext = atoi(argv[3]);
data/leptonlib-1.79.0/prog/displaypixa.c:133: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).
    border = atoi(argv[3]);
data/leptonlib-1.79.0/prog/displaypixa.c:134: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).
    lossless = atoi(argv[4]);
data/leptonlib-1.79.0/prog/displaypixa.c:135: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).
    display = atoi(argv[5]);
data/leptonlib-1.79.0/prog/displaypixa.c:137: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).
    showtext = atoi(argv[7]);
data/leptonlib-1.79.0/prog/enhance_reg.c:49: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          textstr[256];
data/leptonlib-1.79.0/prog/fcombautogen.c:66: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).
    index = atoi(argv[1]);
data/leptonlib-1.79.0/prog/fhmtautogen.c:62: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).
    index = atoi(argv[1]);
data/leptonlib-1.79.0/prog/files_reg.c:177: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     realnewdir[256], newnewdir[256];
data/leptonlib-1.79.0/prog/files_reg.c:262: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  expect[256], localdir[256];
data/leptonlib-1.79.0/prog/findpattern_reg.c:58:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *patname[2] = {
data/leptonlib-1.79.0/prog/fmorphautogen.c:61: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).
    index = atoi(argv[1]);
data/leptonlib-1.79.0/prog/fpixcontours.c:62: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).
        ncontours = atoi(argv[2]);
data/leptonlib-1.79.0/prog/gammatest.c:45: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         buf[512];
data/leptonlib-1.79.0/prog/genfonts_reg.c:62: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          buf[512];
data/leptonlib-1.79.0/prog/gifio_reg.c:83: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          buf[64];
data/leptonlib-1.79.0/prog/gifio_reg.c:173: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     buf[256];
data/leptonlib-1.79.0/prog/graymorph1_reg.c:63: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          seq[512];
data/leptonlib-1.79.0/prog/graymorphtest.c:51: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).
    wsize = atoi(argv[2]);
data/leptonlib-1.79.0/prog/graymorphtest.c:52: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).
    hsize = atoi(argv[3]);
data/leptonlib-1.79.0/prog/hashtest.c:283: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      buf[64];
data/leptonlib-1.79.0/prog/histotest.c:60: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).
    sigbits = atoi(argv[2]);
data/leptonlib-1.79.0/prog/htmlviewer.c:85: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).
    thumbwidth = atoi(argv[4]);
data/leptonlib-1.79.0/prog/htmlviewer.c:86: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).
    viewwidth = atoi(argv[5]);
data/leptonlib-1.79.0/prog/htmlviewer.c:132: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       buf[512];
data/leptonlib-1.79.0/prog/imagetops.c:70: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).
    level = atoi(argv[2]);
data/leptonlib-1.79.0/prog/ioformats_reg.c:98: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          psname[256];
data/leptonlib-1.79.0/prog/italic_reg.c:44: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          opstring[32];
data/leptonlib-1.79.0/prog/jbcorrelation.c:69: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         filename[BUF_SIZE];
data/leptonlib-1.79.0/prog/jbcorrelation.c:93: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).
        firstpage = atoi(argv[4]);
data/leptonlib-1.79.0/prog/jbcorrelation.c:94: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).
        npages = atoi(argv[5]);
data/leptonlib-1.79.0/prog/jbrankhaus.c:72: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         filename[BUF_SIZE];
data/leptonlib-1.79.0/prog/jbrankhaus.c:88: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).
    size = atoi(argv[2]);
data/leptonlib-1.79.0/prog/jbrankhaus.c:95: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).
        firstpage = atoi(argv[4]);
data/leptonlib-1.79.0/prog/jbrankhaus.c:96: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).
        npages = atoi(argv[5]);
data/leptonlib-1.79.0/prog/jbwords.c:64: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         filename[BUF_SIZE];
data/leptonlib-1.79.0/prog/jbwords.c:79: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).
    reduction = atoi(argv[2]);
data/leptonlib-1.79.0/prog/jbwords.c:87: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).
        firstpage = atoi(argv[6]);
data/leptonlib-1.79.0/prog/jbwords.c:88: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).
        npages = atoi(argv[7]);
data/leptonlib-1.79.0/prog/jp2kio_reg.c:94: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     buf[64];
data/leptonlib-1.79.0/prog/jp2kio_reg.c:137: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      buf[256];
data/leptonlib-1.79.0/prog/jpegio_reg.c:104: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      buf[256];
data/leptonlib-1.79.0/prog/jpegio_reg.c:150: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      buf[256];
data/leptonlib-1.79.0/prog/jpegio_reg.c:233: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     buf[256];
data/leptonlib-1.79.0/prog/jpegio_reg.c:234: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     comment1[256];
data/leptonlib-1.79.0/prog/livre_hmt.c:54:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *patname[3] = {
data/leptonlib-1.79.0/prog/livre_hmt.c:72: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).
    patno = atoi(argv[1]);
data/leptonlib-1.79.0/prog/livre_hmt.c:73: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).
    reduction = atoi(argv[2]);
data/leptonlib-1.79.0/prog/livre_makefigs.c:50: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         buf[256];
data/leptonlib-1.79.0/prog/livre_pageseg.c:84: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      buf[256];
data/leptonlib-1.79.0/prog/maketile.c:69: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).
    depth = atoi(argv[2]);
data/leptonlib-1.79.0/prog/maketile.c:71: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).
    width = atoi(argv[4]);
data/leptonlib-1.79.0/prog/maketile.c:72: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).
    background = atoi(argv[5]);
data/leptonlib-1.79.0/prog/maptest.c:205: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      buf[128];
data/leptonlib-1.79.0/prog/maptest.c:234: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          buf[128];
data/leptonlib-1.79.0/prog/modifyhuesat.c:61: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).
    nhue = atoi(argv[2]);
data/leptonlib-1.79.0/prog/modifyhuesat.c:63: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).
    nsat = atoi(argv[4]);
data/leptonlib-1.79.0/prog/mtiff_reg.c:53: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          buf[512];
data/leptonlib-1.79.0/prog/multitype_reg.c:39:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *fnames[10] = {"feyn-fract.tif", "speckle2.png",
data/leptonlib-1.79.0/prog/numa1_reg.c:49: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         buf1[64], buf2[64];
data/leptonlib-1.79.0/prog/numaranktest.c:55: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).
    sampling = atoi(argv[2]);
data/leptonlib-1.79.0/prog/otsutest1.c:44: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  buf[256];
data/leptonlib-1.79.0/prog/otsutest1.c:86: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       title[256];
data/leptonlib-1.79.0/prog/otsutest2.c: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       textstr[256];
data/leptonlib-1.79.0/prog/pagesegtest2.c:79: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).
    thresh = atoi(argv[2]);
data/leptonlib-1.79.0/prog/partitiontest.c:74: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).
    type = atoi(argv[2]);
data/leptonlib-1.79.0/prog/partitiontest.c:99: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).
        maxboxes = atoi(argv[3]);
data/leptonlib-1.79.0/prog/pdfio2_reg.c: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[512];
data/leptonlib-1.79.0/prog/pixafileinfo.c:43: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         buf[64];
data/leptonlib-1.79.0/prog/pixserial_reg.c:58: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          buf[256];
data/leptonlib-1.79.0/prog/printimage.c:86: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         buffer[512];
data/leptonlib-1.79.0/prog/printsplitimage.c:75: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         buf[512];
data/leptonlib-1.79.0/prog/printsplitimage.c:88: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).
    nx = atoi(argv[2]);
data/leptonlib-1.79.0/prog/printsplitimage.c:89: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).
    ny = atoi(argv[3]);
data/leptonlib-1.79.0/prog/printtiff.c:69: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         buf[512];
data/leptonlib-1.79.0/prog/psioseg_reg.c:56: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          buf[512];
data/leptonlib-1.79.0/prog/ptra2_reg.c:87: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      buf[256];
data/leptonlib-1.79.0/prog/ptra2_reg.c:204: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     buf[256];
data/leptonlib-1.79.0/prog/recog_bootnum2.c:60: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       rootname[8] = "digit5";
data/leptonlib-1.79.0/prog/recog_bootnum2.c:61: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       buf[64];
data/leptonlib-1.79.0/prog/recog_bootnum2.c:160: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     buf[64];
data/leptonlib-1.79.0/prog/recog_bootnum3.c:53: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        buf[64];
data/leptonlib-1.79.0/prog/recogtest4.c:55: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      buf[256];
data/leptonlib-1.79.0/prog/rectangle_reg.c:49: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          buf[64];
data/leptonlib-1.79.0/prog/reducetest.c:54: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).
    level1 = atoi(argv[3]);
data/leptonlib-1.79.0/prog/reducetest.c: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).
    level2 = atoi(argv[4]);
data/leptonlib-1.79.0/prog/reducetest.c:56: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).
    level3 = atoi(argv[5]);
data/leptonlib-1.79.0/prog/reducetest.c:57: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).
    level4 = atoi(argv[6]);
data/leptonlib-1.79.0/prog/removecmap.c:59: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).
    type = atoi(argv[2]);
data/leptonlib-1.79.0/prog/rotateorthtest1.c:60: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).
        dir = atoi(argv[3]);
data/leptonlib-1.79.0/prog/scale_it.c:97: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).
    lossless = atoi(argv[5]);
data/leptonlib-1.79.0/prog/scale_it.c:100: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).
        sharpen = atoi(argv[6]);
data/leptonlib-1.79.0/prog/scale_it.c:101: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).
        antialias = atoi(argv[7]);
data/leptonlib-1.79.0/prog/scale_it.c:102: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).
        togray = atoi(argv[8]);
data/leptonlib-1.79.0/prog/scale_reg.c:40:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *image[10] = {"feyn-fract.tif",   /* 1 bpp */
data/leptonlib-1.79.0/prog/scaleandtile.c:74: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).
    depth = atoi(argv[3]);
data/leptonlib-1.79.0/prog/scaleandtile.c:75: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).
    width = atoi(argv[4]);
data/leptonlib-1.79.0/prog/scaleandtile.c:76: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).
    ncols = atoi(argv[5]);
data/leptonlib-1.79.0/prog/sharptest.c:56: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).
    smooth = atoi(argv[2]);
data/leptonlib-1.79.0/prog/splitimage2pdf.c:58: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).
    nx = atoi(argv[2]);
data/leptonlib-1.79.0/prog/splitimage2pdf.c:59: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).
    ny = atoi(argv[3]);
data/leptonlib-1.79.0/prog/string_reg.c:43: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 strs[32] = "This is a gooood test!";
data/leptonlib-1.79.0/prog/string_reg.c:44: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  substr1[2] = "o";
data/leptonlib-1.79.0/prog/string_reg.c:45: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  substr2[4] = "00";
data/leptonlib-1.79.0/prog/textorient.c:66: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         buf[BUF_SIZE];
data/leptonlib-1.79.0/prog/trctest.c:53: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).
    minval = atoi(argv[3]);
data/leptonlib-1.79.0/prog/trctest.c:54: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).
    maxval = atoi(argv[4]);
data/leptonlib-1.79.0/prog/warpertest.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char  *opstr[3] = {"", "interpolated", "sampled"};
data/leptonlib-1.79.0/prog/warpertest.c:43:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char  *dirstr[3] = {"", "to left", "to right"};
data/leptonlib-1.79.0/prog/warpertest.c:55: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       buf[256];
data/leptonlib-1.79.0/prog/webpio_reg.c:98: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  buf[256];
data/leptonlib-1.79.0/prog/webpio_reg.c:128: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       buf[256];
data/leptonlib-1.79.0/prog/wordsinorder.c:58: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         filename[BUF_SIZE];
data/leptonlib-1.79.0/prog/wordsinorder.c:83: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).
        firstpage = atoi(argv[3]);
data/leptonlib-1.79.0/prog/wordsinorder.c:84: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).
        npages = atoi(argv[4]);
data/leptonlib-1.79.0/prog/writetext_reg.c:69: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          buf[512];
data/leptonlib-1.79.0/prog/xtractprotos.c:102: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         buf[L_BUFSIZE];
data/leptonlib-1.79.0/prog/yuvtest.c:155: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       textbuf[256];
data/leptonlib-1.79.0/prog/yuvtest.c:192: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       textbuf[256];
data/leptonlib-1.79.0/src/bardecode.c:369: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     code[10];
data/leptonlib-1.79.0/src/bardecode.c:449: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     code1[6], code2[6];
data/leptonlib-1.79.0/src/bardecode.c:547: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         code[7];
data/leptonlib-1.79.0/src/bardecode.c:663: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      code[10];
data/leptonlib-1.79.0/src/bardecode.c:746: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      code[8];
data/leptonlib-1.79.0/src/bardecode.c:834: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      code[5];
data/leptonlib-1.79.0/src/bardecode.c:952: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      code[5];
data/leptonlib-1.79.0/src/bbuffer.c:149: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(bb->array, indata, nalloc);
data/leptonlib-1.79.0/src/bbuffer.c:237: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(array, bb->array + bb->nwritten, nbytes);
data/leptonlib-1.79.0/src/bbuffer.c:297: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(bb->array + bb->n, src, nbytes);
data/leptonlib-1.79.0/src/bbuffer.c:424: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(dest, bb->array + bb->nwritten, nout);
data/leptonlib-1.79.0/src/binexpand.c:117: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/binexpand.c:176: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(lined + wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/binexpand.c:190: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/binexpand.c:206: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/binexpand.c:219: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/bmpio.c:265: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(cmapBuf, cdata + BMP_FHBYTES + ihbytes,
data/leptonlib-1.79.0/src/bmpio.c:299: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(data, fdata, fdatabpl);
data/leptonlib-1.79.0/src/bmpio.c:345: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(&pel, fdata, 3);
data/leptonlib-1.79.0/src/bmpio.c:356:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&pel, fdata, 1);
data/leptonlib-1.79.0/src/bmpio.c:582: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(fdata + BMP_FHBYTES + BMP_IHBYTES, cta, cmaplen);
data/leptonlib-1.79.0/src/bmpio.c:600: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(fmdata, data, fBpl);
data/leptonlib-1.79.0/src/bmpio.c:621: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(fmdata, &pel, 3);
data/leptonlib-1.79.0/src/bmpio.c:626:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(fmdata, &pel, 1);
data/leptonlib-1.79.0/src/boxbasic.c:2062:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/boxbasic.c:2345:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/boxfunc4.c:1348: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     buf[32];
data/leptonlib-1.79.0/src/boxfunc5.c:1235: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     buf[128];
data/leptonlib-1.79.0/src/boxfunc5.c:1684: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            buf[128], titlebuf[128];
data/leptonlib-1.79.0/src/boxfunc5.c:1815: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            buf[128], titlebuf[128];
data/leptonlib-1.79.0/src/bytearray.c:141: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(ba->data, data, size);
data/leptonlib-1.79.0/src/bytearray.c:198: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(ba->data, data, nbytes);
data/leptonlib-1.79.0/src/bytearray.c:387: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(ba->data + size, newdata, newbytes);
data/leptonlib-1.79.0/src/bytearray.c:420: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(ba->data + size, str, len);
data/leptonlib-1.79.0/src/ccbord.c:2264: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        strbuf[256];
data/leptonlib-1.79.0/src/ccbord.c:2410: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      strbuf[256];
data/leptonlib-1.79.0/src/ccbord.c:2441: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(strbuf, dataout, offset);
data/leptonlib-1.79.0/src/ccbord.c:2454: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(&width, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2456: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(&height, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2466: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(&xoff, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2468: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(&yoff, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2470: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(&w, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2472:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&h, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2479:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&nb, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2486: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(&startx, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2488: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(&starty, dataout + offset, 4);
data/leptonlib-1.79.0/src/ccbord.c:2564: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     smallbuf[256];
data/leptonlib-1.79.0/src/ccthin.c:465: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/leptonlib-1.79.0/src/checkerboard.c:80:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char selnames[64] = "s_diag1 s_diag2 s_cross1 s_cross2";
data/leptonlib-1.79.0/src/classapp.c:108: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        filename[L_BUF_SIZE];
data/leptonlib-1.79.0/src/classapp.c:190: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        filename[L_BUF_SIZE];
data/leptonlib-1.79.0/src/colormap.c:261: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(cmapd->array, cmaps->array, cmaps->n * sizeof(RGBA_QUAD));
data/leptonlib-1.79.0/src/colormap.c:1843:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/colormap.c:2076: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     buf[4];
data/leptonlib-1.79.0/src/colorquant1.c:1059: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(buf1r, buf2r, 4 * w);
data/leptonlib-1.79.0/src/colorquant1.c:1060: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(buf1g, buf2g, 4 * w);
data/leptonlib-1.79.0/src/colorquant1.c:1061: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(buf1b, buf2b, 4 * w);
data/leptonlib-1.79.0/src/colorquant1.c:2054: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(buf1r, buf2r, 4 * w);
data/leptonlib-1.79.0/src/colorquant1.c:2055: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(buf1g, buf2g, 4 * w);
data/leptonlib-1.79.0/src/colorquant1.c:2056: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(buf1b, buf2b, 4 * w);
data/leptonlib-1.79.0/src/colorquant2.c:1071: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(buf1r, buf2r, 4 * w);
data/leptonlib-1.79.0/src/colorquant2.c:1072: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(buf1g, buf2g, 4 * w);
data/leptonlib-1.79.0/src/colorquant2.c:1073: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(buf1b, buf2b, 4 * w);
data/leptonlib-1.79.0/src/compare.c:891: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            buf[64];
data/leptonlib-1.79.0/src/compare.c:1000: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            buf[64];
data/leptonlib-1.79.0/src/compare.c:2275: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    buf[64];
data/leptonlib-1.79.0/src/compare.c:2525: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       buf[64];
data/leptonlib-1.79.0/src/compare.c:2736: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       buf1[128], buf2[128];
data/leptonlib-1.79.0/src/compare.c:3039: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       buf[64];
data/leptonlib-1.79.0/src/compare.c:3591: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[128];
data/leptonlib-1.79.0/src/convertfiles.c:81: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     buf[512];
data/leptonlib-1.79.0/src/dewarp1.c:1415:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/dewarp1.c:1692:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/dewarp2.c:775: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      buf[64];
data/leptonlib-1.79.0/src/dewarp2.c:1640: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     buf[64];
data/leptonlib-1.79.0/src/dewarp4.c:920: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       buf[256];
data/leptonlib-1.79.0/src/dewarp4.c:1015: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     fname[256];
data/leptonlib-1.79.0/src/dewarp4.c:1105: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       bufstr[256];
data/leptonlib-1.79.0/src/encoding.c:347: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     outbuf[8];
data/leptonlib-1.79.0/src/enhance.c:1840: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       buf[64];
data/leptonlib-1.79.0/src/fhmtauto.c:262: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fhmtauto.c:288: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(bigbuf, "PIX *pixHMTDwa_%d(PIX *pixd, PIX *pixs, "
data/leptonlib-1.79.0/src/fhmtauto.c:291: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(bigbuf, "PIX *pixFHMTGen_%d(PIX *pixd, PIX *pixs, "
data/leptonlib-1.79.0/src/fhmtauto.c:294: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(bigbuf, "l_int32 fhmtgen_low_%d(l_uint32 *datad, l_int32 w,\n"
data/leptonlib-1.79.0/src/fhmtauto.c:299: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(bigbuf, " *             PIX     *pixHMTDwa_%d()", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:301: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(bigbuf, " *             PIX     *pixFHMTGen_%d()", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:303: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(bigbuf, " * \\brief  pixHMTDwa_%d()", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:305: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(bigbuf, " * \\brief  pixFHMTGen_%d()", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:307: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(bigbuf, "pixHMTDwa_%d(PIX         *pixd,", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:309: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(bigbuf, "pixFHMTGen_%d(PIX         *pixd,", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:311: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(bigbuf, "    PROCNAME(\"pixHMTDwa_%d\");", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:313: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(bigbuf, "    PROCNAME(\"pixFHMTGen_%d\");", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:315: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(bigbuf, "    pixt2 = pixFHMTGen_%d(NULL, pixt1, selname);",
data/leptonlib-1.79.0/src/fhmtauto.c:318: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(bigbuf,
data/leptonlib-1.79.0/src/fhmtauto.c:322: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(bigbuf,
data/leptonlib-1.79.0/src/fhmtauto.c:348: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(bigbuf, "\nstatic l_int32   NUM_SELS_GENERATED = %d;", nsels);
data/leptonlib-1.79.0/src/fhmtauto.c:350: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(bigbuf, "static char  SEL_NAMES[][80] = {");
data/leptonlib-1.79.0/src/fhmtauto.c:441: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fhmtauto.c:474: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(bigbuf, "fhmt_%d_%d", fileindex, i);
data/leptonlib-1.79.0/src/fhmtauto.c:487: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(bigbuf, " *             l_int32    fhmtgen_low_%d()",
data/leptonlib-1.79.0/src/fhmtauto.c:490: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(bigbuf, " *             void       fhmt_%d_*()", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:521: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(bigbuf, " *  fhmtgen_low_%d()", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:523: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(bigbuf, "fhmtgen_low_%d(l_uint32  *datad,", fileindex);
data/leptonlib-1.79.0/src/fhmtauto.c:538: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(bigbuf, "    case %d:", i);
data/leptonlib-1.79.0/src/fhmtauto.c:706: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fhmtauto.c:757: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fhmtauto.c:770: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(bigbuf, "(*sptr)");
data/leptonlib-1.79.0/src/fhmtauto.c:776: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(bigbuf, "((*(sptr) >> %d) | (*(sptr - 1) << %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:779: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(bigbuf, "((*(sptr) << %d) | (*(sptr + 1) >> %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:795: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(bigbuf, "(~*sptr)");
data/leptonlib-1.79.0/src/fhmtauto.c:801: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(bigbuf, "((~*(sptr) >> %d) | (~*(sptr - 1) << %d))",
data/leptonlib-1.79.0/src/fhmtauto.c:804: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(bigbuf, "((~*(sptr) << %d) | (~*(sptr + 1) >> %d))",
data/leptonlib-1.79.0/src/finditalic.c:122: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     opstring[32];
data/leptonlib-1.79.0/src/fmorphauto.c:297: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fmorphauto.c:323: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(bigbuf, "PIX *pixMorphDwa_%d(PIX *pixd, PIX *pixs, "
data/leptonlib-1.79.0/src/fmorphauto.c:326: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(bigbuf, "PIX *pixFMorphopGen_%d(PIX *pixd, PIX *pixs, "
data/leptonlib-1.79.0/src/fmorphauto.c:329:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(bigbuf, "l_int32 fmorphopgen_low_%d(l_uint32 *datad, l_int32 w,\n"
data/leptonlib-1.79.0/src/fmorphauto.c:334: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(bigbuf, " *             PIX     *pixMorphDwa_%d()", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:336: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(bigbuf, " *             PIX     *pixFMorphopGen_%d()", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c: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(bigbuf, " * \\brief   pixMorphDwa_%d()", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:340: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(bigbuf, " * \\brief   pixFMorphopGen_%d()", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:342: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(bigbuf, "pixMorphDwa_%d(PIX     *pixd,", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:344: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(bigbuf, "pixFMorphopGen_%d(PIX     *pixd,", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:346: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(bigbuf, "    PROCNAME(\"pixMorphDwa_%d\");", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:348: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(bigbuf, "    PROCNAME(\"pixFMorphopGen_%d\");", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:350: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(bigbuf,
data/leptonlib-1.79.0/src/fmorphauto.c:354: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(bigbuf,
data/leptonlib-1.79.0/src/fmorphauto.c:358: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(bigbuf,
data/leptonlib-1.79.0/src/fmorphauto.c:362: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(bigbuf,
data/leptonlib-1.79.0/src/fmorphauto.c:366: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(bigbuf,
data/leptonlib-1.79.0/src/fmorphauto.c:370: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(bigbuf,
data/leptonlib-1.79.0/src/fmorphauto.c:396: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(bigbuf, "\nstatic l_int32   NUM_SELS_GENERATED = %d;", nsels);
data/leptonlib-1.79.0/src/fmorphauto.c:398: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(bigbuf, "static char  SEL_NAMES[][80] = {");
data/leptonlib-1.79.0/src/fmorphauto.c:500: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fmorphauto.c:532: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(bigbuf, "fdilate_%d_%d", fileindex, i);
data/leptonlib-1.79.0/src/fmorphauto.c:534: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(bigbuf, "ferode_%d_%d", fileindex, i);
data/leptonlib-1.79.0/src/fmorphauto.c:547: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(bigbuf, " *             l_int32    fmorphopgen_low_%d()",
data/leptonlib-1.79.0/src/fmorphauto.c:550: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(bigbuf, " *             void       fdilate_%d_*()", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:552: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(bigbuf, " *             void       ferode_%d_*()", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:584: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(bigbuf, " *  fmorphopgen_low_%d()", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:586: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(bigbuf, "fmorphopgen_low_%d(l_uint32  *datad,", fileindex);
data/leptonlib-1.79.0/src/fmorphauto.c:601: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(bigbuf, "    case %d:", i);
data/leptonlib-1.79.0/src/fmorphauto.c:767: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fmorphauto.c:840: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     bigbuf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/fmorphauto.c:852: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(bigbuf, "(*sptr)");
data/leptonlib-1.79.0/src/fmorphauto.c:858: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(bigbuf, "((*(sptr) >> %d) | (*(sptr - 1) << %d))",
data/leptonlib-1.79.0/src/fmorphauto.c:861: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(bigbuf, "((*(sptr) << %d) | (*(sptr + 1) >> %d))",
data/leptonlib-1.79.0/src/fpix1.c:304: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(datad, datas, bytes);
data/leptonlib-1.79.0/src/fpix1.c:315: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(datad, datas, bytes);
data/leptonlib-1.79.0/src/fpix1.c:1304: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(datad, datas, bytes);
data/leptonlib-1.79.0/src/fpix1.c:1315: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(datad, datas, bytes);
data/leptonlib-1.79.0/src/fpix1.c:1740: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        buf[256];
data/leptonlib-1.79.0/src/fpix1.c:1925:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/fpix1.c:2038: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        buf[256];
data/leptonlib-1.79.0/src/fpix1.c:2223:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/fpix2.c:1944: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(buffer, line, bpl);
data/leptonlib-1.79.0/src/fpix2.c:2006: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(buffer, linet, bpl);
data/leptonlib-1.79.0/src/fpix2.c:2007: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(linet, lineb, bpl);
data/leptonlib-1.79.0/src/fpix2.c:2008: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(lineb, buffer, bpl);
data/leptonlib-1.79.0/src/gifio.c:206: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(dest, buffer->cdata + buffer->pos, bytesRead);
data/leptonlib-1.79.0/src/gifio.c:665: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(lined, lines, 4 * wpl);
data/leptonlib-1.79.0/src/gplot.c:194: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     buf[Bufsize];
data/leptonlib-1.79.0/src/gplot.c:327: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       buf[Bufsize];
data/leptonlib-1.79.0/src/gplot.c:469: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     buf[Bufsize];
data/leptonlib-1.79.0/src/gplot.c:512: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     buf[Bufsize];
data/leptonlib-1.79.0/src/gplot.c:633:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fp = fopen(dataname, "w")) == NULL)
data/leptonlib-1.79.0/src/gplot.c:780: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            buf[64];
data/leptonlib-1.79.0/src/gplot.c:824: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            buf[64];
data/leptonlib-1.79.0/src/gplot.c:867: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            buf[64];
data/leptonlib-1.79.0/src/gplot.c:1242: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     buf[Bufsize];
data/leptonlib-1.79.0/src/grayquant.c:285: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(bufs2, datas, 4 * wpls);  /* prime the buffer */
data/leptonlib-1.79.0/src/grayquant.c:287: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(bufs1, bufs2, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:288: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(bufs2, datas + (i + 1) * wpls, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:294: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(bufs1, bufs2, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:1152: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(bufs2, datas, 4 * wpls);  /* prime the buffer */
data/leptonlib-1.79.0/src/grayquant.c:1154: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(bufs1, bufs2, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:1155: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(bufs2, datas + (i + 1) * wpls, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:1161: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(bufs1, bufs2, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:2744: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(bufs2, datas, 4 * wpls);  /* prime the buffer */
data/leptonlib-1.79.0/src/grayquant.c:2746: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(bufs1, bufs2, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:2747: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(bufs2, datas + (i + 1) * wpls, 4 * wpls);
data/leptonlib-1.79.0/src/grayquant.c:2754: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(bufs1, bufs2, 4 * wpls);
data/leptonlib-1.79.0/src/jbclass.c:1951: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     buf[L_BUF_SIZE];
data/leptonlib-1.79.0/src/jbclass.c:2010: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      fname[L_BUF_SIZE];
data/leptonlib-1.79.0/src/jp2kio.c:860:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/jpegio.c:1160:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/leptwin.c:358: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 (bm.bmBits, data, imageBitsSize);
data/leptonlib-1.79.0/src/libversions.c:104: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     buf[128];
data/leptonlib-1.79.0/src/libversions.c:126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                         buffer[JMSG_LENGTH_MAX];
data/leptonlib-1.79.0/src/libversions.c:181:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/leptonlib-1.79.0/src/morphseq.c:142: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     fname[256];
data/leptonlib-1.79.0/src/morphseq.c:309: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     fname[256];
data/leptonlib-1.79.0/src/morphseq.c:458: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     fname[256];
data/leptonlib-1.79.0/src/morphseq.c:607: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     fname[256];
data/leptonlib-1.79.0/src/morphseq.c:920: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     fname[256];
data/leptonlib-1.79.0/src/morphseq.c:1123: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     fname[256];
data/leptonlib-1.79.0/src/numabasic.c:1039: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       fmt[32], strbuf[64];
data/leptonlib-1.79.0/src/numabasic.c:1360:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/numabasic.c:2051:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/pageseg.c:967: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     buf[64];
data/leptonlib-1.79.0/src/pageseg.c:1105: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     buf[64];
data/leptonlib-1.79.0/src/parseprotos.c:574: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     buf[Bufsize];
data/leptonlib-1.79.0/src/partify.c:128: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       buf[512];
data/leptonlib-1.79.0/src/pdfio2.c:729: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(datacomp + nbytescomp, pngcomp + i, n);
data/leptonlib-1.79.0/src/pdfio2.c:1675: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     buf[L_SMALLBUF];
data/leptonlib-1.79.0/src/pdfio2.c:1761: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     smallbuf[8];
data/leptonlib-1.79.0/src/pdfio2.c:1925: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          buff[256];
data/leptonlib-1.79.0/src/pdfio2.c:1926: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          buf[L_BIGBUF];
data/leptonlib-1.79.0/src/pdfio2.c:2044: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          buf[L_BIGBUF];
data/leptonlib-1.79.0/src/pdfio2.c:2127: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     buf[L_BIGBUF];
data/leptonlib-1.79.0/src/pdfio2.c:2205: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(data, lpd->id, sizes[0]);
data/leptonlib-1.79.0/src/pdfio2.c:2206: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(data + locs[1], lpd->obj1, sizes[1]);
data/leptonlib-1.79.0/src/pdfio2.c:2207: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(data + locs[2], lpd->obj2, sizes[2]);
data/leptonlib-1.79.0/src/pdfio2.c:2208: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(data + locs[3], lpd->obj3, sizes[3]);
data/leptonlib-1.79.0/src/pdfio2.c:2209: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(data + locs[4], lpd->obj4, sizes[4]);
data/leptonlib-1.79.0/src/pdfio2.c:2210: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(data + locs[5], lpd->obj5, sizes[5]);
data/leptonlib-1.79.0/src/pdfio2.c:2223: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(data + locs[6 + i], str, len);
data/leptonlib-1.79.0/src/pdfio2.c:2224: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(data + locs[6 + i] + len,
data/leptonlib-1.79.0/src/pdfio2.c:2226: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(data + locs[6 + i] + len + cid->nbytescomp,
data/leptonlib-1.79.0/src/pdfio2.c:2233: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(data + locs[6 + nimages + i], str, strlen(str));
data/leptonlib-1.79.0/src/pdfio2.c:2237: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(data + lpd->xrefloc, lpd->trailer, strlen(lpd->trailer));
data/leptonlib-1.79.0/src/pix1.c:694: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(pixd->data, pixs->data, bytes);
data/leptonlib-1.79.0/src/pix1.c:715: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(pixd->data, pixs->data, bytes);
data/leptonlib-1.79.0/src/pix1.c:929: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(pixGetData(pixd), pixGetData(pixs), nbytes);
data/leptonlib-1.79.0/src/pix1.c:1744: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(data, datas, bytes);
data/leptonlib-1.79.0/src/pix2.c:3133: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(datad, datas, 4 * wpl);
data/leptonlib-1.79.0/src/pix3.c:1360: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       op[64];
data/leptonlib-1.79.0/src/pix4.c:2787: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     textstr[256];
data/leptonlib-1.79.0/src/pix4.c:3404: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       buf[256];
data/leptonlib-1.79.0/src/pixabasic.c:2847:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/pixabasic.c:2874: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    buf[32];
data/leptonlib-1.79.0/src/pixabasic.c:3223:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/pixafunc2.c:443: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     buf[16];
data/leptonlib-1.79.0/src/pixafunc2.c:1207: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      buf[128];
data/leptonlib-1.79.0/src/pixafunc2.c:1306: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      buf[128];
data/leptonlib-1.79.0/src/pixafunc2.c:1946: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     buf[8];
data/leptonlib-1.79.0/src/pixafunc2.c:2231: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     buf[64];
data/leptonlib-1.79.0/src/pixafunc2.c:2323: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     rootpath[256];
data/leptonlib-1.79.0/src/pixcomp.c:420: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(datad, datas, size);
data/leptonlib-1.79.0/src/pixcomp.c:1682: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      buf[256];
data/leptonlib-1.79.0/src/pixcomp.c:1926:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/pixcomp.c:2405: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     buf[128];
data/leptonlib-1.79.0/src/pixcomp.c:2445: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   buf[128];
data/leptonlib-1.79.0/src/pngio.c:1354: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(last->m_Buffer, data, len);
data/leptonlib-1.79.0/src/pngio.c:1380: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(last->m_Buffer + last->m_Count, data + written,
data/leptonlib-1.79.0/src/pngio.c:1385: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(last->m_Buffer + last->m_Count, data + written,
data/leptonlib-1.79.0/src/pngio.c:1427: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(data, pthing->m_Buffer, pthing->m_Count);
data/leptonlib-1.79.0/src/pngio.c:1438: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(data + copied, buffer->m_Buffer, buffer->m_Count);
data/leptonlib-1.79.0/src/pngio.c:1479: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(outBytes, thing->m_Buffer + thing->m_Count, byteCountToRead);
data/leptonlib-1.79.0/src/pnmio.c:566: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     tag[16], tupltype[32];
data/leptonlib-1.79.0/src/pnmio.c:859: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       buffer[256];
data/leptonlib-1.79.0/src/pnmio.c:1257:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/pnmio.c:1312:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/pnmio.c:1379: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      buf[8];
data/leptonlib-1.79.0/src/psio2.c:464: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     bigbuf[Bufsize];
data/leptonlib-1.79.0/src/psio2.c:961: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     bigbuf[Bufsize];
data/leptonlib-1.79.0/src/psio2.c:1353: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     bigbuf[Bufsize];
data/leptonlib-1.79.0/src/psio2.c:1829: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     bigbuf[Bufsize];
data/leptonlib-1.79.0/src/ptabasic.c:695: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       typestr[128];  /* hardcoded below in fscanf */
data/leptonlib-1.79.0/src/ptabasic.c:919:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/ptabasic.c:1544:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/ptafunc1.c:1814: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            buffer[128];
data/leptonlib-1.79.0/src/quadtree.c:662: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       buf[256];
data/leptonlib-1.79.0/src/readfile.c:98:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char JP2K_CODESTREAM[4] = { 0xff, 0x4f, 0xff, 0x51 };
data/leptonlib-1.79.0/src/readfile.c:99:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char JP2K_IMAGE_DATA[12] = { 0x00, 0x00, 0x00, 0x0C,
data/leptonlib-1.79.0/src/recogbasic.c:1094:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/recogdid.c:678: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       textstr[16];
data/leptonlib-1.79.0/src/recogident.c:259: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     buf[32];
data/leptonlib-1.79.0/src/recogident.c:837: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[128];
data/leptonlib-1.79.0/src/recogident.c:1773: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       buf[128];
data/leptonlib-1.79.0/src/recogtrain.c:1716: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     str[4];
data/leptonlib-1.79.0/src/recogtrain.c:1990: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     buf[128];
data/leptonlib-1.79.0/src/recogtrain.c:2228: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       buf[16];
data/leptonlib-1.79.0/src/recogtrain.c:2286: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   buf[64];
data/leptonlib-1.79.0/src/recogtrain.c:2436: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    buf[32];
data/leptonlib-1.79.0/src/regutils.c:128: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          errormsg[64];
data/leptonlib-1.79.0/src/regutils.c:211: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     result[512];
data/leptonlib-1.79.0/src/regutils.c:322: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     buf[256];
data/leptonlib-1.79.0/src/regutils.c:501: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     namebuf[256];
data/leptonlib-1.79.0/src/regutils.c:609: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     namebuf[256];
data/leptonlib-1.79.0/src/regutils.c:700: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  namebuf[256];
data/leptonlib-1.79.0/src/regutils.c:771: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  namebuf[256];
data/leptonlib-1.79.0/src/regutils.c:821: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     buf[64];
data/leptonlib-1.79.0/src/rotateorth.c:479: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(buffer, line, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:487: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(buffer, line, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:497: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(buffer, line, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:516: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(buffer, line, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:535: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(buffer, line, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:554: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(buffer, line, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:635: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(buffer, linet, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:636: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(linet, lineb, bpl);
data/leptonlib-1.79.0/src/rotateorth.c:637: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(lineb, buffer, bpl);
data/leptonlib-1.79.0/src/sarray1.c:852: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(dest + index, src, len);
data/leptonlib-1.79.0/src/sarray1.c:1589:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/sarray1.c:1869: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            dir[PATH_MAX + 1];
data/leptonlib-1.79.0/src/sarray2.c:653: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     buf[32];
data/leptonlib-1.79.0/src/scale1.c:1049: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(bufs, datas, 4 * wpls);   /* first src line */
data/leptonlib-1.79.0/src/scale1.c:1050: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(bufs + wpls, datas + wpls, 4 * wpls);  /* 2nd src line */
data/leptonlib-1.79.0/src/scale1.c:1059: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(bufs, datas + i * wpls, 4 * wpls);  /* i-th src line */
data/leptonlib-1.79.0/src/scale1.c:1060: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(bufs + wpls, datas + (i + 1) * wpls, 4 * wpls);
data/leptonlib-1.79.0/src/scale1.c:1061: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(linebp, lineb + wplb, 4 * wplb);
data/leptonlib-1.79.0/src/scale1.c:1073: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(bufs, datas + hsm * wpls, 4 * wpls);  /* hsm-th src line */
data/leptonlib-1.79.0/src/scale1.c:1074: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(linebp, lineb + wplb, 4 * wplb);   /* 1 i line */
data/leptonlib-1.79.0/src/scale1.c:1256: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(bufs, datas, 4 * wpls);   /* first src line */
data/leptonlib-1.79.0/src/scale1.c:1257: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(bufs + wpls, datas + wpls, 4 * wpls);  /* 2nd src line */
data/leptonlib-1.79.0/src/scale1.c:1268: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(bufs, datas + i * wpls, 4 * wpls);  /* i-th src line */
data/leptonlib-1.79.0/src/scale1.c:1269: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(bufs + wpls, datas + (i + 1) * wpls, 4 * wpls);
data/leptonlib-1.79.0/src/scale1.c:1270: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(linebp, lineb + 3 * wplb, 4 * wplb);
data/leptonlib-1.79.0/src/scale1.c:1284: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(bufs, datas + hsm * wpls, 4 * wpls);  /* hsm-th src line */
data/leptonlib-1.79.0/src/scale1.c:1285: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(linebp, lineb + 3 * wplb, 4 * wplb);   /* 1 b line */
data/leptonlib-1.79.0/src/scale1.c:3162: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(lined, prevlined, 4 * wpld);
data/leptonlib-1.79.0/src/scale1.c:3747: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(lined, prevlined, 4 * wpld);
data/leptonlib-1.79.0/src/scale2.c:922: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/scale2.c:936: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/scale2.c:950: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/scale2.c:964: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/scale2.c:978: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(lined + k * wpld, lined, 4 * wpld);
data/leptonlib-1.79.0/src/sel1.c:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     selnameh1[20];
data/leptonlib-1.79.0/src/sel1.c:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     selnameh2[20];
data/leptonlib-1.79.0/src/sel1.c: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     selnamev1[20];
data/leptonlib-1.79.0/src/sel1.c: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     selnamev2[20];
data/leptonlib-1.79.0/src/sel1.c:991: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     combname[256];
data/leptonlib-1.79.0/src/sel1.c:1054: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     buf[256];
data/leptonlib-1.79.0/src/sel1.c:1422: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     linebuf[256];
data/leptonlib-1.79.0/src/sel2.c:101: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     name[L_BUF_SIZE];
data/leptonlib-1.79.0/src/sel2.c:328: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     name[L_BUF_SIZE];
data/leptonlib-1.79.0/src/sel2.c:370: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     name[L_BUF_SIZE];
data/leptonlib-1.79.0/src/sel2.c:436: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       name[L_BUF_SIZE];
data/leptonlib-1.79.0/src/sel2.c:561: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       name[L_BUF_SIZE];
data/leptonlib-1.79.0/src/spixio.c:398: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(data + 6, cdata, 4 * ncolors);
data/leptonlib-1.79.0/src/spixio.c:401: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(data + index + 1, rdata, rdatasize);
data/leptonlib-1.79.0/src/spixio.c:488: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(imdata, data + 7 + ncolors, imdata_size);
data/leptonlib-1.79.0/src/stringcode.c:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];        /* e.g., "PIXA" */
data/leptonlib-1.79.0/src/stringcode.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     structname[16];  /* e.g., "Pixa" */
data/leptonlib-1.79.0/src/stringcode.c:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     reader[16];      /* e.g., "pixaRead" */
data/leptonlib-1.79.0/src/stringcode.c: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     memreader[20];   /* e.g., "pixaReadMem" */
data/leptonlib-1.79.0/src/stringcode.c:343: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        buf[256];
data/leptonlib-1.79.0/src/stringcode.c:652: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     buf[256];
data/leptonlib-1.79.0/src/stringcode.c:707: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      buf[80];
data/leptonlib-1.79.0/src/stringcode.c:758: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   buf[256];
data/leptonlib-1.79.0/src/stringcode.c:793: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   buf[256];
data/leptonlib-1.79.0/src/strokes.c:306: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     buf[32];
data/leptonlib-1.79.0/src/strokes.c:406: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     buf[16];
data/leptonlib-1.79.0/src/textops.c:655: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     textstr[128];
data/leptonlib-1.79.0/src/tiffio.c:564: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(data, linebuf, tiffbpl);
data/leptonlib-1.79.0/src/tiffio.c:1107: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(linebuf, data, tiffbpl);
data/leptonlib-1.79.0/src/tiffio.c:2163: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(data, inarray + 8, nbytes);
data/leptonlib-1.79.0/src/tiffio.c:2364: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(data, mstream->buffer + mstream->offset, amount);
data/leptonlib-1.79.0/src/tiffio.c:2390: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(mstream->buffer + mstream->offset, data, length);
data/leptonlib-1.79.0/src/tiffio.c:2744:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/utils1.c: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).
            LeptMsgSeverity = atoi(envsev);
data/leptonlib-1.79.0/src/utils1.c:308: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     msg[MAX_DEBUG_MESSAGE];
data/leptonlib-1.79.0/src/utils1.c:1305: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        buf[128] = "", sep = 'Z';
data/leptonlib-1.79.0/src/utils1.c:1354:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf + 14, "%c%02d'%02d'", sep, relh, relm);
data/leptonlib-1.79.0/src/utils2.c:966: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(dest, src, npre);
data/leptonlib-1.79.0/src/utils2.c:1331: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(newdata, indata, minsize);
data/leptonlib-1.79.0/src/utils2.c:1440: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(data, bb->array, bb->n);
data/leptonlib-1.79.0/src/utils2.c:1572: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   actualOperation[20];
data/leptonlib-1.79.0/src/utils2.c:1683: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(datad, datas, size);
data/leptonlib-1.79.0/src/utils2.c:1832:10:  [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).
    fp = fopen(fname, "rb");
data/leptonlib-1.79.0/src/utils2.c:1838:10:  [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).
    fp = fopen(tail, "rb");
data/leptonlib-1.79.0/src/utils2.c:1875:10:  [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).
    fp = fopen(fname, modestring);
data/leptonlib-1.79.0/src/utils2.c:1916:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fp = tmpfile()) == NULL)
data/leptonlib-1.79.0/src/utils2.c:2320: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     tempdir[256];
data/leptonlib-1.79.0/src/utils2.c:2370: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     newtemp[256];
data/leptonlib-1.79.0/src/utils2.c:2467: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     newtemp[256];
data/leptonlib-1.79.0/src/utils2.c:2566: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     newtemp[256];
data/leptonlib-1.79.0/src/utils2.c:2788: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   empty[4] = "";
data/leptonlib-1.79.0/src/utils2.c:3108: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 tmpdir[MAX_PATH];
data/leptonlib-1.79.0/src/utils2.c:3282: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  dirname[240];
data/leptonlib-1.79.0/src/utils2.c:3294:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(pattern);
data/leptonlib-1.79.0/src/utils2.c:3304:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  fname[MAX_PATH];
data/leptonlib-1.79.0/src/utils2.c:3308:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(fname, "wb")) == NULL)
data/leptonlib-1.79.0/src/writefile.c:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     extension[8];
data/leptonlib-1.79.0/src/writefile.c:255: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     bigbuf[Bufsize];
data/leptonlib-1.79.0/src/writefile.c:914: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            buffer[Bufsize];
data/leptonlib-1.79.0/src/writefile.c:924: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            fullpath[_MAX_PATH];
data/leptonlib-1.79.0/src/writefile.c:1093: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     buf[32];
data/leptonlib-1.79.0/src/writefile.c:1220: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            buf[Bufsize];
data/leptonlib-1.79.0/prog/alltests_reg.c:235:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        l_binaryWrite("/tmp/lept/reg_results.txt", "w", str, strlen(str));
data/leptonlib-1.79.0/prog/alltests_reg.c:251:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              buf, strlen(buf));
data/leptonlib-1.79.0/prog/alphaops_reg.c:62:42:  [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.
l_int32       ncolors, rval, gval, bval, equal;
data/leptonlib-1.79.0/prog/alphaops_reg.c:258:32:  [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.
    cmapEqual(cmap, cmap2, 4, &equal);
data/leptonlib-1.79.0/prog/alphaops_reg.c:259:36:  [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.
    regTestCompareValues(rp, TRUE, equal, 0.0);  /* 25 */
data/leptonlib-1.79.0/prog/alphaops_reg.c:270:32:  [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.
    cmapEqual(cmap, cmap2, 4, &equal);
data/leptonlib-1.79.0/prog/alphaops_reg.c:271:36:  [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.
    regTestCompareValues(rp, TRUE, equal, 0.0);  /* 26 */
data/leptonlib-1.79.0/prog/autogen.137.c:78:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data1 = decodeBase64(l_strdata_0, strlen(l_strdata_0), &size1);
data/leptonlib-1.79.0/prog/autogen.137.c:85:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data1 = decodeBase64(l_strdata_1, strlen(l_strdata_1), &size1);
data/leptonlib-1.79.0/prog/autogentest1.c:76: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).
                  strlen(filetext));
data/leptonlib-1.79.0/prog/bytea_reg.c:109: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).
    lba1 = l_byteaInitFromMem((l_uint8 *)str1, strlen(str1));
data/leptonlib-1.79.0/prog/bytea_reg.c:112: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).
    lba1 = l_byteaInitFromMem((l_uint8 *)str1, strlen(str1));
data/leptonlib-1.79.0/prog/displaypixa.c:105:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (textstr && strlen(textstr) > 0) {
data/leptonlib-1.79.0/prog/displaypixa.c:148: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).
        if (bmf && textstr && strlen(textstr) > 0) {
data/leptonlib-1.79.0/prog/files_reg.c:148:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    regTestCompareStrings(rp, (l_uint8 *)result, strlen(result),
data/leptonlib-1.79.0/prog/files_reg.c:149:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          (l_uint8 *)path, strlen(path));
data/leptonlib-1.79.0/prog/files_reg.c:272:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        regTestCompareStrings(rp, (l_uint8 *)expect, strlen(expect),
data/leptonlib-1.79.0/prog/files_reg.c:273: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).
                              (l_uint8 *)path, strlen(path));
data/leptonlib-1.79.0/prog/files_reg.c:275:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        regTestCompareStrings(rp, (l_uint8 *)result, strlen(result),
data/leptonlib-1.79.0/prog/files_reg.c:276: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).
                              (l_uint8 *)path, strlen(path));
data/leptonlib-1.79.0/prog/htmlviewer.c:241:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l_binaryWrite(mainname, "w", shtml, strlen(shtml));
data/leptonlib-1.79.0/prog/htmlviewer.c:261:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l_binaryWrite(linkname, "w", slink, strlen(slink));
data/leptonlib-1.79.0/prog/iomisc_reg.c:226:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (rp->display && text && strlen(text) != 0)
data/leptonlib-1.79.0/prog/jpegio_reg.c:256: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).
    regTestCompareStrings(rp, (l_uint8 *)comment1, strlen(comment1),
data/leptonlib-1.79.0/prog/jpegio_reg.c:257: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).
                          comment2, strlen((char *)comment2));
data/leptonlib-1.79.0/prog/kernel_reg.c:97:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l_binaryWrite("/tmp/lept/regout/kernfile.kel", "w", str, strlen(str));
data/leptonlib-1.79.0/prog/mtiff_reg.c:54:29:  [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.
l_int32       i, n, npages, equal, success;
data/leptonlib-1.79.0/prog/mtiff_reg.c:219:31:  [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.
        pixEqual(pix1, pix2, &equal);
data/leptonlib-1.79.0/prog/mtiff_reg.c:220: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.
        if (!equal) success = FALSE;
data/leptonlib-1.79.0/prog/mtiff_reg.c:338: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(str);
data/leptonlib-1.79.0/prog/recogsort.c:70:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    boxa1 = boxaReadMem((l_uint8 *)boxatxt, strlen(boxatxt));
data/leptonlib-1.79.0/prog/replacebytes.c:79:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(newstr), fileout);
data/leptonlib-1.79.0/prog/string_reg.c:73:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          (l_uint8 *)str1, strlen(str1));   /* 2 */
data/leptonlib-1.79.0/prog/string_reg.c:80:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          (l_uint8 *)str1, strlen(str1));   /* 4 */
data/leptonlib-1.79.0/prog/string_reg.c:86:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          (l_uint8 *)str1, strlen(str1));   /* 6 */
data/leptonlib-1.79.0/prog/string_reg.c:127: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).
    l_binaryWrite("/tmp/lept/string/test1.txt", "w", str1, strlen(str1));
data/leptonlib-1.79.0/prog/string_reg.c:128: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).
    l_binaryWrite("/tmp/lept/string/test2.txt", "w", str2, strlen(str2));
data/leptonlib-1.79.0/prog/string_reg.c:129: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).
    l_binaryWrite("/tmp/lept/string/test3.txt", "w", str3, strlen(str3));
data/leptonlib-1.79.0/prog/string_reg.c:130: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).
    l_binaryWrite("/tmp/lept/string/test4.txt", "w", str4, strlen(str4));
data/leptonlib-1.79.0/prog/string_reg.c:131: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).
    l_binaryWrite("/tmp/lept/string/test5.txt", "w", str5, strlen(str5));
data/leptonlib-1.79.0/prog/string_reg.c:132: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).
    l_binaryWrite("/tmp/lept/string/test6.txt", "w", str6, strlen(str6));
data/leptonlib-1.79.0/prog/string_reg.c:175: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).
                     strlen(str2), "/tmp/lept/string/junk3.txt");
data/leptonlib-1.79.0/prog/xtractprotos.c:132:23:  [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.
                ret = sscanf(argv[i] + 1, "prestring=%490s", buf);
data/leptonlib-1.79.0/prog/xtractprotos.c:137:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if ((len = strlen(buf)) > L_BUFSIZE - 3) {
data/leptonlib-1.79.0/prog/xtractprotos.c:146:23:  [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.
                ret = sscanf(argv[i] + 1, "protos=%490s", buf);
data/leptonlib-1.79.0/prog/xtractprotos.c:194:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(filein);
data/leptonlib-1.79.0/prog/xtractprotos.c:209: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(str) > 1) {  /* strlen(str) == 1 is a file without protos */
data/leptonlib-1.79.0/src/bardecode.c:226:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(barstr);
data/leptonlib-1.79.0/src/bardecode.c:243:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(barstr);
data/leptonlib-1.79.0/src/bardecode.c:260:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(barstr);
data/leptonlib-1.79.0/src/bardecode.c:277:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(barstr);
data/leptonlib-1.79.0/src/bardecode.c:294:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(barstr);
data/leptonlib-1.79.0/src/bardecode.c:317:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(barstr);
data/leptonlib-1.79.0/src/bardecode.c:387:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(vbarstr);
data/leptonlib-1.79.0/src/bardecode.c:467:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(vbarstr);
data/leptonlib-1.79.0/src/bardecode.c:566:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(vbarstr);
data/leptonlib-1.79.0/src/bardecode.c:681:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(vbarstr);
data/leptonlib-1.79.0/src/bardecode.c:765:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(vbarstr);
data/leptonlib-1.79.0/src/bardecode.c:848:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(barstr);
data/leptonlib-1.79.0/src/bardecode.c:968:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(barstr);
data/leptonlib-1.79.0/src/bmf.c:508:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data = decodeBase64(fontdata_4, strlen(fontdata_4), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:510:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data = decodeBase64(fontdata_6, strlen(fontdata_6), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:512:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        data = decodeBase64(fontdata_8, strlen(fontdata_8), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:514: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).
        data = decodeBase64(fontdata_10, strlen(fontdata_10), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:516: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).
        data = decodeBase64(fontdata_12, strlen(fontdata_12), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:518: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).
        data = decodeBase64(fontdata_14, strlen(fontdata_14), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:520: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).
        data = decodeBase64(fontdata_16, strlen(fontdata_16), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:522: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).
        data = decodeBase64(fontdata_18, strlen(fontdata_18), &nbytes);
data/leptonlib-1.79.0/src/bmf.c:524: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).
        data = decodeBase64(fontdata_20, strlen(fontdata_20), &nbytes);
data/leptonlib-1.79.0/src/bootnumgen1.c:302: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).
    data1 = decodeBase64(l_bootnum1, strlen(l_bootnum1), &size1);
data/leptonlib-1.79.0/src/bootnumgen2.c:285: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).
    data1 = decodeBase64(l_bootnum2, strlen(l_bootnum2), &size1);
data/leptonlib-1.79.0/src/bootnumgen3.c:361:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    data1 = decodeBase64(l_strdata_0, strlen(l_strdata_0), &size1);
data/leptonlib-1.79.0/src/bootnumgen4.c:810: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).
    data1 = decodeBase64(l_bootnum4, strlen(l_bootnum4), &size1);
data/leptonlib-1.79.0/src/boxfunc1.c:2473:28:  [1] (buffer) mismatch:
  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.
l_int32  i, n1, n2, match, mismatch;
data/leptonlib-1.79.0/src/boxfunc1.c:2511:10:  [1] (buffer) mismatch:
  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 (!mismatch) *psimilar = 1;
data/leptonlib-1.79.0/src/bytearray.c:414:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/leptonlib-1.79.0/src/ccbord.c:2544: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).
    l_binaryWrite(filename, "w", svgstr, strlen(svgstr));
data/leptonlib-1.79.0/src/compare.c:188:37:  [1] (buffer) mismatch:
  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.
l_int32    spp1, spp2, i, j, color, mismatch, opaque;
data/leptonlib-1.79.0/src/compare.c:221:13:  [1] (buffer) mismatch:
  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 (mismatch) {
data/leptonlib-1.79.0/src/compare.c:312:27:  [1] (buffer) mismatch:
  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 (use_alpha && !mismatch)
data/leptonlib-1.79.0/src/dewarp1.c:1222:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getc(fp);
data/leptonlib-1.79.0/src/fhmtauto.c:399: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).
    nbytes = strlen(filestr);
data/leptonlib-1.79.0/src/fhmtauto.c:618: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).
    nbytes = strlen(filestr);
data/leptonlib-1.79.0/src/fmorphauto.c:460: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).
    nbytes = strlen(filestr);
data/leptonlib-1.79.0/src/fmorphauto.c:657: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).
    nbytes = strlen(filestr);
data/leptonlib-1.79.0/src/fpix1.c:1775:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fgetc(fp);  /* ending nl */
data/leptonlib-1.79.0/src/fpix1.c:2073:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fgetc(fp);  /* ending nl */
data/leptonlib-1.79.0/src/gplot.c:597: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).
    fwrite(cmdstr, 1, strlen(cmdstr), fp);
data/leptonlib-1.79.0/src/gplot.c:635: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).
        fwrite(plotdata, 1, strlen(plotdata), fp);
data/leptonlib-1.79.0/src/gplot.c:1266:14:  [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.
    ignore = fscanf(fp, "Rootname: %511s\n", buf);  /* Bufsize - 1 */
data/leptonlib-1.79.0/src/gplot.c:1271: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).
    title[strlen(title) - 1] = '\0';
data/leptonlib-1.79.0/src/gplot.c:1274: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).
    xlabel[strlen(xlabel) - 1] = '\0';
data/leptonlib-1.79.0/src/gplot.c:1277: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).
    ylabel[strlen(ylabel) - 1] = '\0';
data/leptonlib-1.79.0/src/gplot.c:1294:14:  [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.
    ignore = fscanf(fp, "Commandfile name: %511s\n", buf);  /* Bufsize - 1 */
data/leptonlib-1.79.0/src/gplot.c:1308:14:  [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.
    ignore = fscanf(fp, "Output file name: %511s\n", buf);
data/leptonlib-1.79.0/src/jp2kio.c:602: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).
        size_t len1 = strlen(comment1);
data/leptonlib-1.79.0/src/jp2kio.c:603: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).
        size_t len2 = strlen(comment2);
data/leptonlib-1.79.0/src/jp2kio.c:606: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).
        len1 += len2 + strlen(version1) + strlen(version2) + 1;
data/leptonlib-1.79.0/src/jp2kio.c:606:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len1 += len2 + strlen(version1) + strlen(version2) + 1;
data/leptonlib-1.79.0/src/jpegio.c:925: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(text) > 65433) {
data/leptonlib-1.79.0/src/jpegio.c:927: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).
                   procName, strlen(text));
data/leptonlib-1.79.0/src/jpegio.c:930:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        jpeg_write_marker(&cinfo, JPEG_COM, (const JOCTET *)text, strlen(text));
data/leptonlib-1.79.0/src/morphseq.c:205:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nred = strlen(op) - 1;
data/leptonlib-1.79.0/src/morphseq.c:373:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nred = strlen(op) - 1;
data/leptonlib-1.79.0/src/morphseq.c:522:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nred = strlen(op) - 1;
data/leptonlib-1.79.0/src/morphseq.c:671:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nred = strlen(op) - 1;
data/leptonlib-1.79.0/src/morphseq.c:785:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nred = strlen(op) - 1;
data/leptonlib-1.79.0/src/numabasic.c:325: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).
    if (!str || (strlen(str) == 0))
data/leptonlib-1.79.0/src/parseprotos.c:308:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(str);
data/leptonlib-1.79.0/src/parseprotos.c:359:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(str);
data/leptonlib-1.79.0/src/parseprotos.c:590: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).
        nchars = strlen(str);
data/leptonlib-1.79.0/src/parseprotos.c:616:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(cleanstr);
data/leptonlib-1.79.0/src/parseprotos.c:708: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).
        nchars = strlen(str);
data/leptonlib-1.79.0/src/parseprotos.c:780: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).
        nchars = strlen(str);
data/leptonlib-1.79.0/src/parseprotos.c:855: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).
        nchars = strlen(str);
data/leptonlib-1.79.0/src/parseprotos.c:949: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).
        nchars = strlen(str);
data/leptonlib-1.79.0/src/pdfio2.c:1683: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).
    l_dnaAddNumber(lpd->objsize, strlen(lpd->id));
data/leptonlib-1.79.0/src/pdfio2.c:1691: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).
    l_dnaAddNumber(lpd->objsize, strlen(lpd->obj1));
data/leptonlib-1.79.0/src/pdfio2.c:1722: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).
    l_dnaAddNumber(lpd->objsize, strlen(lpd->obj2));
data/leptonlib-1.79.0/src/pdfio2.c:1731: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).
    l_dnaAddNumber(lpd->objsize, strlen(lpd->obj3));
data/leptonlib-1.79.0/src/pdfio2.c:1769: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).
    nchar = strlen(str);
data/leptonlib-1.79.0/src/pdfio2.c:1866: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).
    l_dnaAddNumber(lpd->objsize, strlen(lpd->obj4));
data/leptonlib-1.79.0/src/pdfio2.c:1911: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).
                           (l_int32)strlen(cstr), cstr);
data/leptonlib-1.79.0/src/pdfio2.c:1914: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).
    l_dnaAddNumber(lpd->objsize, strlen(lpd->obj5));
data/leptonlib-1.79.0/src/pdfio2.c:2030: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).
                      strlen(xstr) + cid->nbytescomp + strlen(lpd->poststream));
data/leptonlib-1.79.0/src/pdfio2.c:2030:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(xstr) + cid->nbytescomp + strlen(lpd->poststream));
data/leptonlib-1.79.0/src/pdfio2.c:2073: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).
        l_dnaAddNumber(lpd->objsize, strlen(cmstr));
data/leptonlib-1.79.0/src/pdfio2.c:2197: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).
    nbytes = lpd->xrefloc + strlen(lpd->trailer);
data/leptonlib-1.79.0/src/pdfio2.c:2222:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(str);
data/leptonlib-1.79.0/src/pdfio2.c:2227: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).
               lpd->poststream, strlen(lpd->poststream));
data/leptonlib-1.79.0/src/pdfio2.c:2233: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).
        memcpy(data + locs[6 + nimages + i], str, strlen(str));
data/leptonlib-1.79.0/src/pdfio2.c:2237:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy(data + lpd->xrefloc, lpd->trailer, strlen(lpd->trailer));
data/leptonlib-1.79.0/src/pixabasic.c:1109: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 (text && strlen(text) > 0)
data/leptonlib-1.79.0/src/pixabasic.c:1266: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).
        hastext = (text && strlen(text) > 0);
data/leptonlib-1.79.0/src/pixafunc2.c:1248:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (textstr && strlen(textstr) > 0) {
data/leptonlib-1.79.0/src/pixafunc2.c:1353:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (textstr && strlen(textstr) > 0) {
data/leptonlib-1.79.0/src/pixafunc2.c:2111: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 (text && strlen(text) > 4) {
data/leptonlib-1.79.0/src/pixcomp.c:1754:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fgetc(fp);  /* swallow the ending nl */
data/leptonlib-1.79.0/src/pngio.c:1154: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).
        text_chunk.text_length = strlen(text);
data/leptonlib-1.79.0/src/pngio.c:2017: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).
        text_chunk.text_length = strlen(text);
data/leptonlib-1.79.0/src/pnmio.c:621:35:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if ('\n' != (ch = fgetc(fp)))
data/leptonlib-1.79.0/src/pnmio.c:1350:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1396:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1449:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1458:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1461:22:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1472:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1484:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1514:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1519:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/pnmio.c:1522:22:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((c = fgetc(fp)) == EOF)
data/leptonlib-1.79.0/src/psio2.c:265: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(outstr);
data/leptonlib-1.79.0/src/psio2.c:717: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).
    nbytes = strlen(outstr);
data/leptonlib-1.79.0/src/psio2.c:924:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *pnbytes = strlen(outstr);
data/leptonlib-1.79.0/src/psio2.c:1114: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).
    nbytes = strlen(outstr);
data/leptonlib-1.79.0/src/psio2.c:1313:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *pnbytes = strlen(outstr);
data/leptonlib-1.79.0/src/psio2.c:1591: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).
    nbytes = strlen(outstr);
data/leptonlib-1.79.0/src/psio2.c:1797:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *pnbytes = strlen(outstr);
data/leptonlib-1.79.0/src/psio2.c:1974: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).
    *psize = strlen((char *)(*pdata));
data/leptonlib-1.79.0/src/ptabasic.c:709:9:  [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.
    if (fscanf(fp, " Number of pts = %d; format = %127s\n", &n, typestr) != 2)
data/leptonlib-1.79.0/src/readfile.c:1287:28:  [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.
l_int32    w, h, d, depth, equal, problems;
data/leptonlib-1.79.0/src/readfile.c:1344:31:  [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.
        pixEqual(pixc, pix2, &equal);
data/leptonlib-1.79.0/src/readfile.c:1345: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.
        if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1357:31:  [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.
        pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1358: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.
        if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1373:31:  [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.
        pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1374: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.
        if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1397:27:  [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.
    pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1398: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.
    if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1409:27:  [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.
    pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1410: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.
    if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1421:27:  [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.
    pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1422: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.
    if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1465:31:  [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.
        pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1466: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.
        if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1475:31:  [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.
        pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1476: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.
        if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1485:31:  [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.
        pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1486: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.
        if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1495:31:  [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.
        pixEqual(pixc, pix1, &equal);
data/leptonlib-1.79.0/src/readfile.c:1496: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.
        if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1518:27:  [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.
    pixEqual(pix1, pix2, &equal);
data/leptonlib-1.79.0/src/readfile.c:1519: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.
    if (!equal) {
data/leptonlib-1.79.0/src/readfile.c:1536:27:  [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.
    pixEqual(pix1, pix2, &equal);
data/leptonlib-1.79.0/src/readfile.c:1537: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.
    if (!equal) {
data/leptonlib-1.79.0/src/recogbasic.c:367: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).
        if (!text || strlen(text) == 0) {
data/leptonlib-1.79.0/src/recogbasic.c:796: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).
    size = strlen(str);
data/leptonlib-1.79.0/src/recogident.c:1808:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(textstr) + 1;
data/leptonlib-1.79.0/src/regutils.c:861:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(root)) <= 4) {
data/leptonlib-1.79.0/src/regutils.c:874:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(root);
data/leptonlib-1.79.0/src/sarray1.c:241: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).
    size = strlen(string);
data/leptonlib-1.79.0/src/sarray1.c:292: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).
    size = strlen(string);
data/leptonlib-1.79.0/src/sarray1.c:842: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).
        size += strlen(str) + 2;
data/leptonlib-1.79.0/src/sarray1.c:851:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(src);
data/leptonlib-1.79.0/src/sarray1.c:1056:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(wd);
data/leptonlib-1.79.0/src/sarray1.c:1172:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        arrayFindSequence((l_uint8 *)str, strlen(str), (l_uint8 *)substr,
data/leptonlib-1.79.0/src/sarray1.c:1173: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).
                          strlen(substr), &offset, &found);
data/leptonlib-1.79.0/src/sarray1.c:1295:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        arrayFindSequence((l_uint8 *)str, strlen(str), (l_uint8 *)substr,
data/leptonlib-1.79.0/src/sarray1.c:1296: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).
                          strlen(substr), &offset, &found);
data/leptonlib-1.79.0/src/sarray1.c:1311:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        arrayFindSequence((l_uint8 *)str, strlen(str), (l_uint8 *)substr,
data/leptonlib-1.79.0/src/sarray1.c:1312: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).
                          strlen(substr), &offset, &found);
data/leptonlib-1.79.0/src/sarray1.c:1328:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        arrayFindSequence((l_uint8 *)str, strlen(str), (l_uint8 *)substr,
data/leptonlib-1.79.0/src/sarray1.c:1329: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).
                          strlen(substr), &offset, &found);
data/leptonlib-1.79.0/src/sarray1.c:1538:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(sa->array[i]);
data/leptonlib-1.79.0/src/sarray1.c:1899:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size = strlen(realdir) + strlen(pdirentry->d_name) + 2;
data/leptonlib-1.79.0/src/sarray1.c:1899:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size = strlen(realdir) + strlen(pdirentry->d_name) + 2;
data/leptonlib-1.79.0/src/sarray1.c:1941: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(pszDir) + 1 > MAX_PATH) {
data/leptonlib-1.79.0/src/sarray2.c:201: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).
    len1 = strlen(str1);
data/leptonlib-1.79.0/src/sarray2.c:202: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).
    len2 = strlen(str2);
data/leptonlib-1.79.0/src/sel1.c:1083:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/leptonlib-1.79.0/src/sel1.c:1439:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(linebuf, "  ------  %200s  ------", selname);
data/leptonlib-1.79.0/src/sel1.c:1643: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(text) != (size_t)w * h)
data/leptonlib-1.79.0/src/sel1.c:1913:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(line);
data/leptonlib-1.79.0/src/stringcode.c:389: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).
    descr[strlen(descr) - 1] = '\0';
data/leptonlib-1.79.0/src/stringcode.c:432: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).
    casestr[strlen(casestr) - 1] = '\0';
data/leptonlib-1.79.0/src/stringcode.c:441: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).
    nbytes = strlen(filestr);
data/leptonlib-1.79.0/src/stringcode.c:490: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).
    datastr[strlen(datastr) - 1] = '\0';
data/leptonlib-1.79.0/src/stringcode.c:499: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).
    nbytes = strlen(filestr);
data/leptonlib-1.79.0/src/textops.c:601: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).
    nchar = strlen(textstr);
data/leptonlib-1.79.0/src/textops.c:915:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(linestr);
data/leptonlib-1.79.0/src/textops.c:1004: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).
    nchar = strlen(textstr);
data/leptonlib-1.79.0/src/textops.c:1094:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(textstr);
data/leptonlib-1.79.0/src/utils2.c:232:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(src);
data/leptonlib-1.79.0/src/utils2.c:313:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(src);
data/leptonlib-1.79.0/src/utils2.c:479:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(first);
data/leptonlib-1.79.0/src/utils2.c:481:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(arg);
data/leptonlib-1.79.0/src/utils2.c:523: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).
    srclen1 = (src1) ? strlen(src1) : 0;
data/leptonlib-1.79.0/src/utils2.c:524: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).
    srclen2 = (src2) ? strlen(src2) : 0;
data/leptonlib-1.79.0/src/utils2.c:603:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(src);
data/leptonlib-1.79.0/src/utils2.c:799: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).
    n = strlen(src);
data/leptonlib-1.79.0/src/utils2.c:833: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 ((dest = (char *)LEPT_CALLOC(strlen(src) + 1, sizeof(char))) == NULL)
data/leptonlib-1.79.0/src/utils2.c:835: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).
    nsrc = strlen(src);
data/leptonlib-1.79.0/src/utils2.c:889: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(sub2) > 0) {
data/leptonlib-1.79.0/src/utils2.c:891:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               (const l_uint8 *)src, strlen(src),
data/leptonlib-1.79.0/src/utils2.c:892:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               (const l_uint8 *)sub1, strlen(sub1),
data/leptonlib-1.79.0/src/utils2.c:893:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               (const l_uint8 *)sub2, strlen(sub2),
data/leptonlib-1.79.0/src/utils2.c:897:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               (const l_uint8 *)src, strlen(src),
data/leptonlib-1.79.0/src/utils2.c:898:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               (const l_uint8 *)sub1, strlen(sub1),
data/leptonlib-1.79.0/src/utils2.c:959: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).
    nsrc = strlen(src);
data/leptonlib-1.79.0/src/utils2.c:960: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).
    nsub1 = strlen(sub1);
data/leptonlib-1.79.0/src/utils2.c:961: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).
    nsub2 = strlen(sub2);
data/leptonlib-1.79.0/src/utils2.c:1001:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return arrayFindEachSequence((const l_uint8 *)src, strlen(src),
data/leptonlib-1.79.0/src/utils2.c:1002:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 (const l_uint8 *)sub, strlen(sub));
data/leptonlib-1.79.0/src/utils2.c:1035: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(sub) == 0)
data/leptonlib-1.79.0/src/utils2.c:1037: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(src) == 0)
data/leptonlib-1.79.0/src/utils2.c:2127: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(subdir) == 0) || (subdir[0] == '.') || (subdir[0] == '/'))
data/leptonlib-1.79.0/src/utils2.c:2197: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(subdir) == 0) || (subdir[0] == '.') || (subdir[0] == '/'))
data/leptonlib-1.79.0/src/utils2.c:2375: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).
    if (!tail || strlen(tail) == 0)
data/leptonlib-1.79.0/src/utils2.c:2412: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).
    if (!filepath || strlen(filepath) == 0)
data/leptonlib-1.79.0/src/utils2.c:2876:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (dir && strlen(dir) >= 2 && dir[0] == '.' && dir[1] == '.')
data/leptonlib-1.79.0/src/utils2.c:2878: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).
    if (fname && strlen(fname) >= 2 && fname[0] == '.' && fname[1] == '.')
data/leptonlib-1.79.0/src/utils2.c:2886:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (dir && strlen(dir) > 0) {
data/leptonlib-1.79.0/src/utils2.c:2899: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).
    emptydir = dir && strlen(dir) == 0;
data/leptonlib-1.79.0/src/utils2.c:2900:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((!dir || emptydir) && fname && strlen(fname) > 0 && fname[0] == '/')
data/leptonlib-1.79.0/src/utils2.c:2904: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).
    if (fname && strlen(fname) > 0) {
data/leptonlib-1.79.0/src/utils2.c:2953: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).
    len1 = strlen(basedir);
data/leptonlib-1.79.0/src/utils2.c:2954: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).
    len2 = strlen(subdirs);
data/leptonlib-1.79.0/src/utils2.c:2965: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).
    len4 = strlen(newdir);
data/leptonlib-1.79.0/src/utils2.c:3005:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(path);
data/leptonlib-1.79.0/src/utils2.c:3080: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).
    dirlen = strlen(cdir);
data/leptonlib-1.79.0/src/utils2.c:3086: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).
    namelen = (fname) ? strlen(fname) : 0;
data/leptonlib-1.79.0/src/utils2.c:3110: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).
        tmpdirlen = strlen(tmpdir);
data/leptonlib-1.79.0/src/utils2.c:3114: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).
        tmpdirlen = strlen(tmpdir);
data/leptonlib-1.79.0/src/utils2.c:3124: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).
    if (fname && strlen(fname) > 0) {
data/leptonlib-1.79.0/src/utils2.c:3125: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).
        dirlen = strlen(pathout);
data/leptonlib-1.79.0/src/utils2.c:3202: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).
    pathlen = strlen(path);
data/leptonlib-1.79.0/src/utils2.c:3244:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(path);
data/leptonlib-1.79.0/src/utils2.c:3352:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(basename);

ANALYSIS SUMMARY:

Hits = 935
Lines analyzed = 318694 in approximately 10.67 seconds (29864 lines/second)
Physical Source Lines of Code (SLOC) = 194624
Hits@level = [0] 2207 [1] 268 [2] 564 [3]  22 [4]  81 [5]   0
Hits@level+ = [0+] 3142 [1+] 935 [2+] 667 [3+] 103 [4+]  81 [5+]   0
Hits/KSLOC@level+ = [0+] 16.1439 [1+] 4.80414 [2+] 3.42712 [3+] 0.529226 [4+] 0.416187 [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.