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/libx11-1.6.12/modules/om/generic/omTextPer.c Examining data/libx11-1.6.12/modules/om/generic/omText.c Examining data/libx11-1.6.12/modules/om/generic/omDefault.c Examining data/libx11-1.6.12/modules/om/generic/omTextExt.c Examining data/libx11-1.6.12/modules/om/generic/omTextEsc.c Examining data/libx11-1.6.12/modules/om/generic/omGeneric.c Examining data/libx11-1.6.12/modules/om/generic/omXChar.c Examining data/libx11-1.6.12/modules/om/generic/omImText.c Examining data/libx11-1.6.12/modules/im/ximcp/imThaiIc.c Examining data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c Examining data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c Examining data/libx11-1.6.12/modules/im/ximcp/imInt.c Examining data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c Examining data/libx11-1.6.12/modules/im/ximcp/imDefFlt.c Examining data/libx11-1.6.12/modules/im/ximcp/imLcIc.c Examining data/libx11-1.6.12/modules/im/ximcp/imLcIm.c Examining data/libx11-1.6.12/modules/im/ximcp/imRm.c Examining data/libx11-1.6.12/modules/im/ximcp/imThaiIm.c Examining data/libx11-1.6.12/modules/im/ximcp/imTrX.c Examining data/libx11-1.6.12/modules/im/ximcp/imCallbk.c Examining data/libx11-1.6.12/modules/im/ximcp/imEvToWire.c Examining data/libx11-1.6.12/modules/im/ximcp/imDefIc.c Examining data/libx11-1.6.12/modules/im/ximcp/imLcSIc.c Examining data/libx11-1.6.12/modules/im/ximcp/imLcGIc.c Examining data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c Examining data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c Examining data/libx11-1.6.12/modules/im/ximcp/imTrans.c Examining data/libx11-1.6.12/modules/im/ximcp/imImSw.c Examining data/libx11-1.6.12/modules/im/ximcp/imExten.c Examining data/libx11-1.6.12/modules/im/ximcp/imDispch.c Examining data/libx11-1.6.12/modules/im/ximcp/imTransR.c Examining data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c Examining data/libx11-1.6.12/modules/im/ximcp/imDefIm.c Examining data/libx11-1.6.12/modules/im/ximcp/imLcFlt.c Examining data/libx11-1.6.12/modules/lc/Utf8/lcUTF8Load.c Examining data/libx11-1.6.12/modules/lc/gen/lcGenConv.c Examining data/libx11-1.6.12/modules/lc/def/lcDefConv.c Examining data/libx11-1.6.12/include/X11/Xlibint.h Examining data/libx11-1.6.12/include/X11/Xcms.h Examining data/libx11-1.6.12/include/X11/cursorfont.h Examining data/libx11-1.6.12/include/X11/extensions/XKBgeom.h Examining data/libx11-1.6.12/include/X11/Xregion.h Examining data/libx11-1.6.12/include/X11/Xlib.h Examining data/libx11-1.6.12/include/X11/Xlib-xcb.h Examining data/libx11-1.6.12/include/X11/Xutil.h Examining data/libx11-1.6.12/include/X11/Xresource.h Examining data/libx11-1.6.12/include/X11/XKBlib.h Examining data/libx11-1.6.12/include/X11/Xlocale.h Examining data/libx11-1.6.12/include/X11/ImUtil.h Examining data/libx11-1.6.12/src/StColors.c Examining data/libx11-1.6.12/src/ListExt.c Examining data/libx11-1.6.12/src/CrGC.c Examining data/libx11-1.6.12/src/FillArcs.c Examining data/libx11-1.6.12/src/UninsCmap.c Examining data/libx11-1.6.12/src/GetWMCMapW.c Examining data/libx11-1.6.12/src/LockDis.c Examining data/libx11-1.6.12/src/FontInfo.c Examining data/libx11-1.6.12/src/UngrabKbd.c Examining data/libx11-1.6.12/src/WrBitF.c Examining data/libx11-1.6.12/src/SetLocale.c Examining data/libx11-1.6.12/src/FillRcts.c Examining data/libx11-1.6.12/src/PolyTxt16.c Examining data/libx11-1.6.12/src/TrCoords.c Examining data/libx11-1.6.12/src/imConv.c Examining data/libx11-1.6.12/src/locking.h Examining data/libx11-1.6.12/src/SetDashes.c Examining data/libx11-1.6.12/src/UndefCurs.c Examining data/libx11-1.6.12/src/ChkMaskEv.c Examining data/libx11-1.6.12/src/reallocarray.h Examining data/libx11-1.6.12/src/StrToText.c Examining data/libx11-1.6.12/src/ModMap.c Examining data/libx11-1.6.12/src/SetLStyle.c Examining data/libx11-1.6.12/src/GetColor.c Examining data/libx11-1.6.12/src/KeysymStr.c Examining data/libx11-1.6.12/src/GrPointer.c Examining data/libx11-1.6.12/src/RepWindow.c Examining data/libx11-1.6.12/src/poly.h Examining data/libx11-1.6.12/src/SetClMask.c Examining data/libx11-1.6.12/src/XlibInt.c Examining data/libx11-1.6.12/src/SetPMask.c Examining data/libx11-1.6.12/src/Region.c Examining data/libx11-1.6.12/src/evtomask.c Examining data/libx11-1.6.12/src/xlibi18n/XimTrans.h Examining data/libx11-1.6.12/src/xlibi18n/lcCharSet.c Examining data/libx11-1.6.12/src/xlibi18n/lcPublic.c Examining data/libx11-1.6.12/src/xlibi18n/XlcPubI.h Examining data/libx11-1.6.12/src/xlibi18n/XimImSw.h Examining data/libx11-1.6.12/src/xlibi18n/lcFile.c Examining data/libx11-1.6.12/src/xlibi18n/lcDynamic.c Examining data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c Examining data/libx11-1.6.12/src/xlibi18n/utf8WMProps.c Examining data/libx11-1.6.12/src/xlibi18n/mbWrap.c Examining data/libx11-1.6.12/src/xlibi18n/XlcPublic.h Examining data/libx11-1.6.12/src/xlibi18n/XlcGeneric.h Examining data/libx11-1.6.12/src/xlibi18n/lcInit.c Examining data/libx11-1.6.12/src/xlibi18n/XimintP.h Examining data/libx11-1.6.12/src/xlibi18n/lcRM.c Examining data/libx11-1.6.12/src/xlibi18n/xim_trans.c Examining data/libx11-1.6.12/src/xlibi18n/lcGeneric.c Examining data/libx11-1.6.12/src/xlibi18n/lcTxtPr.c Examining data/libx11-1.6.12/src/xlibi18n/XDefaultIMIF.c Examining data/libx11-1.6.12/src/xlibi18n/mbWMProps.c Examining data/libx11-1.6.12/src/xlibi18n/lcDB.c Examining data/libx11-1.6.12/src/xlibi18n/wcWrap.c Examining data/libx11-1.6.12/src/xlibi18n/imKStoUCS.c Examining data/libx11-1.6.12/src/xlibi18n/XimThai.h Examining data/libx11-1.6.12/src/xlibi18n/IMWrap.c Examining data/libx11-1.6.12/src/xlibi18n/lcCT.c Examining data/libx11-1.6.12/src/xlibi18n/XimTrInt.h Examining data/libx11-1.6.12/src/xlibi18n/XimProto.h Examining data/libx11-1.6.12/src/xlibi18n/XimintL.h Examining data/libx11-1.6.12/src/xlibi18n/lcWrap.c Examining data/libx11-1.6.12/src/xlibi18n/Xlcint.h Examining data/libx11-1.6.12/src/xlibi18n/XlcSL.c Examining data/libx11-1.6.12/src/xlibi18n/lcStd.c Examining data/libx11-1.6.12/src/xlibi18n/lcUTF8.c Examining data/libx11-1.6.12/src/xlibi18n/XimTrX.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1256.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_2.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_3.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/gbk.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_8.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/tcvn.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_10.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_academy.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/ascii.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_4.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_7.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1255.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/tis620.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_16.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_6.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_u.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/jisx0201.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_11.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_9.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_14.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_9e.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/tatar_cyr.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_c.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/jisx0212.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_13.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1133.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/gb2312.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/viscii.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_r.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/ksc5601.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_ps.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/utf8.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/armscii_8.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_5.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/big5_emacs.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/big5.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/mulelao.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/big5hkscs.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/jisx0208.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/ucs2be.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_15.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_1.h Examining data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1251.h Examining data/libx11-1.6.12/src/xlibi18n/Xaixlcint.h Examining data/libx11-1.6.12/src/xlibi18n/utf8Wrap.c Examining data/libx11-1.6.12/src/xlibi18n/lcConv.c Examining data/libx11-1.6.12/src/xlibi18n/lcPubWrap.c Examining data/libx11-1.6.12/src/xlibi18n/XlcDL.c Examining data/libx11-1.6.12/src/xlibi18n/lcPrTxt.c Examining data/libx11-1.6.12/src/xlibi18n/Ximint.h Examining data/libx11-1.6.12/src/xlibi18n/lcUtil.c Examining data/libx11-1.6.12/src/xlibi18n/ICWrap.c Examining data/libx11-1.6.12/src/Xprivate.h Examining data/libx11-1.6.12/src/ScrResStr.c Examining data/libx11-1.6.12/src/QuColors.c Examining data/libx11-1.6.12/src/XlibAsync.c Examining data/libx11-1.6.12/src/ImText16.c Examining data/libx11-1.6.12/src/ImUtil.c Examining data/libx11-1.6.12/src/CrWindow.c Examining data/libx11-1.6.12/src/SetNrmHint.c Examining data/libx11-1.6.12/src/SetFore.c Examining data/libx11-1.6.12/src/UnldFont.c Examining data/libx11-1.6.12/src/PolyTxt.c Examining data/libx11-1.6.12/src/ChkTypEv.c Examining data/libx11-1.6.12/src/Clear.c Examining data/libx11-1.6.12/src/IfEvent.c Examining data/libx11-1.6.12/src/GetSOwner.c Examining data/libx11-1.6.12/src/ChProp.c Examining data/libx11-1.6.12/src/Cr.h Examining data/libx11-1.6.12/src/xcms/QuCol.c Examining data/libx11-1.6.12/src/xcms/HVCMnV.c Examining data/libx11-1.6.12/src/xcms/LuvMnL.c Examining data/libx11-1.6.12/src/xcms/PrOfId.c Examining data/libx11-1.6.12/src/xcms/cmsAllCol.c Examining data/libx11-1.6.12/src/xcms/LuvMxLC.c Examining data/libx11-1.6.12/src/xcms/LRGB.c Examining data/libx11-1.6.12/src/xcms/QGreen.c Examining data/libx11-1.6.12/src/xcms/HVC.c Examining data/libx11-1.6.12/src/xcms/QWhite.c Examining data/libx11-1.6.12/src/xcms/cmsColNm.c Examining data/libx11-1.6.12/src/xcms/Xcmsint.h Examining data/libx11-1.6.12/src/xcms/HVCMxVC.c Examining data/libx11-1.6.12/src/xcms/QBlack.c Examining data/libx11-1.6.12/src/xcms/XYZ.c Examining data/libx11-1.6.12/src/xcms/QRed.c Examining data/libx11-1.6.12/src/xcms/Cv.h Examining data/libx11-1.6.12/src/xcms/LuvWpAj.c Examining data/libx11-1.6.12/src/xcms/LabGcC.c Examining data/libx11-1.6.12/src/xcms/AddSF.c Examining data/libx11-1.6.12/src/xcms/HVCMxVs.c Examining data/libx11-1.6.12/src/xcms/cmsInt.c Examining data/libx11-1.6.12/src/xcms/QuCols.c Examining data/libx11-1.6.12/src/xcms/SetGetCols.c Examining data/libx11-1.6.12/src/xcms/OfCCC.c Examining data/libx11-1.6.12/src/xcms/LuvGcLC.c Examining data/libx11-1.6.12/src/xcms/LabGcLC.c Examining data/libx11-1.6.12/src/xcms/SetCCC.c Examining data/libx11-1.6.12/src/xcms/LabMxC.c Examining data/libx11-1.6.12/src/xcms/HVCWpAj.c Examining data/libx11-1.6.12/src/xcms/LabMnL.c Examining data/libx11-1.6.12/src/xcms/HVCMxV.c Examining data/libx11-1.6.12/src/xcms/uvY.c Examining data/libx11-1.6.12/src/xcms/LuvGcL.c Examining data/libx11-1.6.12/src/xcms/LabWpAj.c Examining data/libx11-1.6.12/src/xcms/IdOfPr.c Examining data/libx11-1.6.12/src/xcms/CvColW.c Examining data/libx11-1.6.12/src/xcms/QBlue.c Examining data/libx11-1.6.12/src/xcms/XRGB.c Examining data/libx11-1.6.12/src/xcms/cmsAllNCol.c Examining data/libx11-1.6.12/src/xcms/UNDEFINED.c Examining data/libx11-1.6.12/src/xcms/cmsProp.c Examining data/libx11-1.6.12/src/xcms/HVCMxC.c Examining data/libx11-1.6.12/src/xcms/HVCGcC.c Examining data/libx11-1.6.12/src/xcms/cmsGlobls.c Examining data/libx11-1.6.12/src/xcms/cmsLkCol.c Examining data/libx11-1.6.12/src/xcms/LabMxL.c Examining data/libx11-1.6.12/src/xcms/cmsCmap.c Examining data/libx11-1.6.12/src/xcms/CCC.c Examining data/libx11-1.6.12/src/xcms/AddDIC.c Examining data/libx11-1.6.12/src/xcms/Luv.c Examining data/libx11-1.6.12/src/xcms/LuvMxL.c Examining data/libx11-1.6.12/src/xcms/LuvGcC.c Examining data/libx11-1.6.12/src/xcms/Lab.c Examining data/libx11-1.6.12/src/xcms/LabMxLC.c Examining data/libx11-1.6.12/src/xcms/StCols.c Examining data/libx11-1.6.12/src/xcms/xyY.c Examining data/libx11-1.6.12/src/xcms/LabGcL.c Examining data/libx11-1.6.12/src/xcms/HVCGcV.c Examining data/libx11-1.6.12/src/xcms/CvCols.c Examining data/libx11-1.6.12/src/xcms/cmsTrig.c Examining data/libx11-1.6.12/src/xcms/HVCGcVC.c Examining data/libx11-1.6.12/src/xcms/cmsMath.c Examining data/libx11-1.6.12/src/xcms/LuvMxC.c Examining data/libx11-1.6.12/src/xcms/StCol.c Examining data/libx11-1.6.12/src/PixFormats.c Examining data/libx11-1.6.12/src/ClDisplay.c Examining data/libx11-1.6.12/src/DelProp.c Examining data/libx11-1.6.12/src/CrCmap.c Examining data/libx11-1.6.12/src/GetTxtProp.c Examining data/libx11-1.6.12/src/GetHColor.c Examining data/libx11-1.6.12/src/ChClMode.c Examining data/libx11-1.6.12/src/MapWindow.c Examining data/libx11-1.6.12/src/PeekEvent.c Examining data/libx11-1.6.12/src/Text16.c Examining data/libx11-1.6.12/src/ChKeyCon.c Examining data/libx11-1.6.12/src/CirWinUp.c Examining data/libx11-1.6.12/src/SetTxtProp.c Examining data/libx11-1.6.12/src/GetEventData.c Examining data/libx11-1.6.12/src/DrRect.c Examining data/libx11-1.6.12/src/Flush.c Examining data/libx11-1.6.12/src/PmapBgnd.c Examining data/libx11-1.6.12/src/SendEvent.c Examining data/libx11-1.6.12/src/ConvSel.c Examining data/libx11-1.6.12/src/CrPixmap.c Examining data/libx11-1.6.12/src/DrRects.c Examining data/libx11-1.6.12/src/GetKCnt.c Examining data/libx11-1.6.12/src/PutBEvent.c Examining data/libx11-1.6.12/src/ChPntCon.c Examining data/libx11-1.6.12/src/QuExt.c Examining data/libx11-1.6.12/src/ClearArea.c Examining data/libx11-1.6.12/src/UngrabBut.c Examining data/libx11-1.6.12/src/QuCurShp.c Examining data/libx11-1.6.12/src/SetWMProto.c Examining data/libx11-1.6.12/src/SetSSaver.c Examining data/libx11-1.6.12/src/RaiseWin.c Examining data/libx11-1.6.12/src/PeekIfEv.c Examining data/libx11-1.6.12/src/Xxcbint.h Examining data/libx11-1.6.12/src/SetClOrig.c Examining data/libx11-1.6.12/src/GrServer.c Examining data/libx11-1.6.12/src/MoveWin.c Examining data/libx11-1.6.12/src/SetFont.c Examining data/libx11-1.6.12/src/FetchName.c Examining data/libx11-1.6.12/src/UngrabSvr.c Examining data/libx11-1.6.12/src/SetWMCMapW.c Examining data/libx11-1.6.12/src/DrArc.c Examining data/libx11-1.6.12/src/IntAtom.c Examining data/libx11-1.6.12/src/SetStip.c Examining data/libx11-1.6.12/src/GetWMProto.c Examining data/libx11-1.6.12/src/CrBFData.c Examining data/libx11-1.6.12/src/UnmapSubs.c Examining data/libx11-1.6.12/src/locking.c Examining data/libx11-1.6.12/src/GrKey.c Examining data/libx11-1.6.12/src/FreePix.c Examining data/libx11-1.6.12/src/ChAccCon.c Examining data/libx11-1.6.12/src/LoadFont.c Examining data/libx11-1.6.12/src/LookupCol.c Examining data/libx11-1.6.12/src/SetIFocus.c Examining data/libx11-1.6.12/src/DrPoint.c Examining data/libx11-1.6.12/src/DrArcs.c Examining data/libx11-1.6.12/src/StName.c Examining data/libx11-1.6.12/src/FreeGC.c Examining data/libx11-1.6.12/src/WMGeom.c Examining data/libx11-1.6.12/src/ReconfWin.c Examining data/libx11-1.6.12/src/FreeCols.c Examining data/libx11-1.6.12/src/xkb/XKBSetMap.c Examining data/libx11-1.6.12/src/xkb/XKBGetByName.c Examining data/libx11-1.6.12/src/xkb/XKBCompat.c Examining data/libx11-1.6.12/src/xkb/XKBCtrls.c Examining data/libx11-1.6.12/src/xkb/XKBGAlloc.c Examining data/libx11-1.6.12/src/xkb/XKBRdBuf.c Examining data/libx11-1.6.12/src/xkb/XKBUse.c Examining data/libx11-1.6.12/src/xkb/XKBleds.c Examining data/libx11-1.6.12/src/xkb/XKB.c Examining data/libx11-1.6.12/src/xkb/XKBMAlloc.c Examining data/libx11-1.6.12/src/xkb/XKBExtDev.c Examining data/libx11-1.6.12/src/xkb/XKBList.c Examining data/libx11-1.6.12/src/xkb/XKBMisc.c Examining data/libx11-1.6.12/src/xkb/XKBGetMap.c Examining data/libx11-1.6.12/src/xkb/XKBGeom.c Examining data/libx11-1.6.12/src/xkb/XKBNames.c Examining data/libx11-1.6.12/src/xkb/XKBCvt.c Examining data/libx11-1.6.12/src/xkb/XKBBell.c Examining data/libx11-1.6.12/src/xkb/XKBAlloc.c Examining data/libx11-1.6.12/src/xkb/XKBBind.c Examining data/libx11-1.6.12/src/xkb/XKBSetGeom.c Examining data/libx11-1.6.12/src/xkb/XKBlibint.h Examining data/libx11-1.6.12/src/StColor.c Examining data/libx11-1.6.12/src/Xrm.c Examining data/libx11-1.6.12/src/pathmax.h Examining data/libx11-1.6.12/src/CrGlCur.c Examining data/libx11-1.6.12/src/Bell.c Examining data/libx11-1.6.12/src/ChkWinEv.c Examining data/libx11-1.6.12/src/GetProp.c Examining data/libx11-1.6.12/src/StrKeysym.c Examining data/libx11-1.6.12/src/WMProps.c Examining data/libx11-1.6.12/src/UngrabPtr.c Examining data/libx11-1.6.12/src/LowerWin.c Examining data/libx11-1.6.12/src/MapSubs.c Examining data/libx11-1.6.12/src/QuTextExt.c Examining data/libx11-1.6.12/src/ChActPGb.c Examining data/libx11-1.6.12/src/CrPFBData.c Examining data/libx11-1.6.12/src/NextEvent.c Examining data/libx11-1.6.12/src/DrSegs.c Examining data/libx11-1.6.12/src/GetPCnt.c Examining data/libx11-1.6.12/src/StBytes.c Examining data/libx11-1.6.12/src/SetSOwner.c Examining data/libx11-1.6.12/src/PmapBord.c Examining data/libx11-1.6.12/src/GetDflt.c Examining data/libx11-1.6.12/src/TextExt16.c Examining data/libx11-1.6.12/src/SetPntMap.c Examining data/libx11-1.6.12/src/SetRGBCMap.c Examining data/libx11-1.6.12/src/CopyGC.c Examining data/libx11-1.6.12/src/GetImage.c Examining data/libx11-1.6.12/src/SelInput.c Examining data/libx11-1.6.12/src/SetFunc.c Examining data/libx11-1.6.12/src/Geom.c Examining data/libx11-1.6.12/src/GrKeybd.c Examining data/libx11-1.6.12/src/CrCursor.c Examining data/libx11-1.6.12/src/globals.c Examining data/libx11-1.6.12/src/FontNames.c Examining data/libx11-1.6.12/src/MaskEvent.c Examining data/libx11-1.6.12/src/ParseGeom.c Examining data/libx11-1.6.12/src/ChSaveSet.c Examining data/libx11-1.6.12/src/Depths.c Examining data/libx11-1.6.12/src/GetFPath.c Examining data/libx11-1.6.12/src/DrLines.c Examining data/libx11-1.6.12/src/Context.c Examining data/libx11-1.6.12/src/QuKeybd.c Examining data/libx11-1.6.12/src/TextToStr.c Examining data/libx11-1.6.12/src/Pending.c Examining data/libx11-1.6.12/src/XomGeneric.h Examining data/libx11-1.6.12/src/TextExt.c Examining data/libx11-1.6.12/src/CopyPlane.c Examining data/libx11-1.6.12/src/os2Stubs.c Examining data/libx11-1.6.12/src/SetFPath.c Examining data/libx11-1.6.12/src/GetMoEv.c Examining data/libx11-1.6.12/src/Cmap.h Examining data/libx11-1.6.12/src/util/makekeys.c Examining data/libx11-1.6.12/src/GetGCVals.c Examining data/libx11-1.6.12/src/GetSSaver.c Examining data/libx11-1.6.12/src/ChCmap.c Examining data/libx11-1.6.12/src/CirWinDn.c Examining data/libx11-1.6.12/src/QuColor.c Examining data/libx11-1.6.12/src/FilterEv.c Examining data/libx11-1.6.12/src/OCWrap.c Examining data/libx11-1.6.12/src/Quarks.c Examining data/libx11-1.6.12/src/Xintatom.h Examining data/libx11-1.6.12/src/LiICmaps.c Examining data/libx11-1.6.12/src/ParseCmd.c Examining data/libx11-1.6.12/src/GCMisc.c Examining data/libx11-1.6.12/src/StNColor.c Examining data/libx11-1.6.12/src/RotProp.c Examining data/libx11-1.6.12/src/AllowEv.c Examining data/libx11-1.6.12/src/FreeEData.c Examining data/libx11-1.6.12/src/FillArc.c Examining data/libx11-1.6.12/src/QuStipShp.c Examining data/libx11-1.6.12/src/x11_xcb.c Examining data/libx11-1.6.12/src/Key.h Examining data/libx11-1.6.12/src/ParseCol.c Examining data/libx11-1.6.12/src/GrButton.c Examining data/libx11-1.6.12/src/GetFProp.c Examining data/libx11-1.6.12/src/BdrWidth.c Examining data/libx11-1.6.12/src/UngrabKey.c Examining data/libx11-1.6.12/src/GetStCmap.c Examining data/libx11-1.6.12/src/ErrHndlr.c Examining data/libx11-1.6.12/src/GetHints.c Examining data/libx11-1.6.12/src/InsCmap.c Examining data/libx11-1.6.12/src/GetIFocus.c Examining data/libx11-1.6.12/src/Cursor.c Examining data/libx11-1.6.12/src/Border.c Examining data/libx11-1.6.12/src/RestackWs.c Examining data/libx11-1.6.12/src/CopyCmap.c Examining data/libx11-1.6.12/src/SetTSOrig.c Examining data/libx11-1.6.12/src/Text.c Examining data/libx11-1.6.12/src/reallocarray.c Examining data/libx11-1.6.12/src/Synchro.c Examining data/libx11-1.6.12/src/ChWindow.c Examining data/libx11-1.6.12/src/Withdraw.c Examining data/libx11-1.6.12/src/FillPoly.c Examining data/libx11-1.6.12/src/PutImage.c Examining data/libx11-1.6.12/src/Xresinternal.h Examining data/libx11-1.6.12/src/GetPntMap.c Examining data/libx11-1.6.12/src/LiHosts.c Examining data/libx11-1.6.12/src/ReconfWM.c Examining data/libx11-1.6.12/src/QuTileShp.c Examining data/libx11-1.6.12/src/RdBitF.c Examining data/libx11-1.6.12/src/AutoRep.c Examining data/libx11-1.6.12/src/QuPntr.c Examining data/libx11-1.6.12/src/DrLine.c Examining data/libx11-1.6.12/src/SetHints.c Examining data/libx11-1.6.12/src/Misc.c Examining data/libx11-1.6.12/src/FreeCurs.c Examining data/libx11-1.6.12/src/SetCRects.c Examining data/libx11-1.6.12/src/FreeCmap.c Examining data/libx11-1.6.12/src/utlist.h Examining data/libx11-1.6.12/src/GetNrmHint.c Examining data/libx11-1.6.12/src/SetStCmap.c Examining data/libx11-1.6.12/src/GetRGBCMap.c Examining data/libx11-1.6.12/src/ChGC.c Examining data/libx11-1.6.12/src/KeyBind.c Examining data/libx11-1.6.12/src/UnmapWin.c Examining data/libx11-1.6.12/src/EvToWire.c Examining data/libx11-1.6.12/src/xcb_io.c Examining data/libx11-1.6.12/src/OMWrap.c Examining data/libx11-1.6.12/src/SetState.c Examining data/libx11-1.6.12/src/ConfWind.c Examining data/libx11-1.6.12/src/DestSubs.c Examining data/libx11-1.6.12/src/InitExt.c Examining data/libx11-1.6.12/src/Iconify.c Examining data/libx11-1.6.12/src/GetWAttrs.c Examining data/libx11-1.6.12/src/xcb_disp.c Examining data/libx11-1.6.12/src/WinEvent.c Examining data/libx11-1.6.12/src/AllPlanes.c Examining data/libx11-1.6.12/src/ImText.c Examining data/libx11-1.6.12/src/DestWind.c Examining data/libx11-1.6.12/src/SetTile.c Examining data/libx11-1.6.12/src/UIThrStubs.c Examining data/libx11-1.6.12/src/WarpPtr.c Examining data/libx11-1.6.12/src/FillRct.c Examining data/libx11-1.6.12/src/Window.c Examining data/libx11-1.6.12/src/DisName.c Examining data/libx11-1.6.12/src/Font.c Examining data/libx11-1.6.12/src/VisUtil.c Examining data/libx11-1.6.12/src/DrPoints.c Examining data/libx11-1.6.12/src/QuTree.c Examining data/libx11-1.6.12/src/Xintconn.h Examining data/libx11-1.6.12/src/RecolorC.c Examining data/libx11-1.6.12/src/FSWrap.c Examining data/libx11-1.6.12/src/KillCl.c Examining data/libx11-1.6.12/src/CopyArea.c Examining data/libx11-1.6.12/src/GetAtomNm.c Examining data/libx11-1.6.12/src/FSSaver.c Examining data/libx11-1.6.12/src/RegstFlt.c Examining data/libx11-1.6.12/src/ChWAttrs.c Examining data/libx11-1.6.12/src/OpenDis.c Examining data/libx11-1.6.12/src/SetBack.c Examining data/libx11-1.6.12/src/PolyReg.c Examining data/libx11-1.6.12/src/GetGeom.c Examining data/libx11-1.6.12/src/Macros.c Examining data/libx11-1.6.12/src/QuBest.c Examining data/libx11-1.6.12/src/ErrDes.c Examining data/libx11-1.6.12/src/ChkTypWEv.c Examining data/libx11-1.6.12/src/DefCursor.c Examining data/libx11-1.6.12/src/Sync.c Examining data/libx11-1.6.12/src/ChkIfEv.c Examining data/libx11-1.6.12/src/FreeEventData.c Examining data/libx11-1.6.12/src/Xatomtype.h Examining data/libx11-1.6.12/src/LiProps.c Examining data/libx11-1.6.12/src/Host.c Examining data/libx11-1.6.12/src/CirWin.c Examining data/libx11-1.6.12/src/AllCells.c Examining data/libx11-1.6.12/src/PropAlloc.c Examining data/libx11-1.6.12/src/MapRaised.c Examining data/libx11-1.6.12/src/Backgnd.c Examining data/libx11-1.6.12/src/QuTextE16.c FINAL RESULTS: data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:320:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( locale_name[0], "%s_%s.%s", language, territory, codeset ); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:324:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( locale_name[1], "%s.%s", language, codeset ); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:330:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( locale_name[2], "%s_%s", language, territory ); data/libx11-1.6.12/modules/im/ximcp/imExten.c:326:8: [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). (void)strcpy((char *)&buf[1], extensions[i].name); data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:67: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( locale, language ); data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:70:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( locale, territory ); data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:74:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( locale, codeset ); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:354:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (*res, "%s/%c%d_%03x_%08x_%08x", dir, _XimGetMyEndian(), data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:357:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (*res, "%s%c%d_%03x_%08x_%08x", dir, _XimGetMyEndian(), data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:478: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 (m->fname, name); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:479: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 (m->fname+strlen(name)+1, encoding); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:534:14: [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(name, home); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:586:6: [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 (cachedir, home); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:587:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (cachedir, XIM_HOME_CACHE_DIR); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:379:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(j, home); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:385:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(j, lcCompose); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:390:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(j, dir); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:587:2: [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(rhs_string_mb, tokenbuf); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1004:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp, name_list[i]); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1055:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp, name_list[i]); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1232:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp, name_list[i]); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1273:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp, name_list[i]); data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:380:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *)outstr, (char *)instr); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:1148:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *)outbufptr, ct_sequence); data/libx11-1.6.12/modules/om/generic/omGeneric.c:461:2: [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(font_name_buf, font_set->font_name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:548:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pattern, font_name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:582:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(rotate_font_ptr, fields[field_num]); data/libx11-1.6.12/modules/om/generic/omGeneric.c:694:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, pattern); data/libx11-1.6.12/modules/om/generic/omGeneric.c:770:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(last, font_data->name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:780:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(last + 2, font_data->name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:1257:4: [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(charset_buf, data/libx11-1.6.12/modules/om/generic/omGeneric.c:1264:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(charset_buf, font_set->substitute->name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:1267:6: [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(charset_buf, font_set->font_data->name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:2033:6: [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(bufptr, data->font_data->name); data/libx11-1.6.12/src/FSWrap.c:156:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, *list_src); data/libx11-1.6.12/src/Font.c:684:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, name); data/libx11-1.6.12/src/Font.c:685:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf + l - 1, p + 1); data/libx11-1.6.12/src/GetDflt.c:145:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (fname, slashDotXdefaults); data/libx11-1.6.12/src/GetDflt.c:156:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (fname, slashDotXdefaultsDash); data/libx11-1.6.12/src/GetHints.c:323:2: [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(classhint->res_name, (char *) data); data/libx11-1.6.12/src/GetHints.c:332:2: [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(classhint->res_class, (char *) (data+len_name+1)); data/libx11-1.6.12/src/IntAtom.c:154:2: [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(EntryName(e), name); data/libx11-1.6.12/src/RdBitF.c:145:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf(line,"#define %s %d",name_and_type,&value) == 2) { data/libx11-1.6.12/src/RdBitF.c:166:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf(line, "static short %s = {", name_and_type) == 1) data/libx11-1.6.12/src/RdBitF.c:168:11: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. else if (sscanf(line,"static unsigned char %s = {",name_and_type) == 1) data/libx11-1.6.12/src/RdBitF.c:170:11: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. else if (sscanf(line, "static char %s = {", name_and_type) == 1) data/libx11-1.6.12/src/Region.c:84:36: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define assert(expr) {if (!(expr)) fprintf(stderr,\ data/libx11-1.6.12/src/SetHints.c:222:14: [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). (void) strcpy(bp, argv[i]); data/libx11-1.6.12/src/SetHints.c:303:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, classhint->res_name); data/libx11-1.6.12/src/SetHints.c:309:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s, classhint->res_class); data/libx11-1.6.12/src/StrToText.c:74:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy (buf, arg); data/libx11-1.6.12/src/XlibInt.c:1331:12: [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. (void) fprintf(fp, mesg, event->request_code); data/libx11-1.6.12/src/XlibInt.c:1351:9: [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. (void) fprintf(fp, mesg, event->minor_code); data/libx11-1.6.12/src/XlibInt.c:1383:13: [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. (void) fprintf(fp, mesg, event->resourceid); data/libx11-1.6.12/src/XlibInt.c:1411:9: [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. (void) fprintf(fp, mesg, event->resourceid); data/libx11-1.6.12/src/XlibInt.c:1417:12: [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. (void) fprintf(fp, mesg, event->serial); data/libx11-1.6.12/src/XlibInt.c:1421:12: [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. (void) fprintf(fp, mesg, (unsigned long long)(X_DPY_GET_REQUEST(dpy))); data/libx11-1.6.12/src/XlibInt.c:1806:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (path, F_OK) == 0) { data/libx11-1.6.12/src/XlibInt.c:1812:6: [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 (*pathret, path); data/libx11-1.6.12/src/XlibInt.c:1846: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 (bufp, drive); data/libx11-1.6.12/src/XlibInt.c:1847:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (bufp, path); data/libx11-1.6.12/src/XlibInt.c:1860:2: [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 (bufp, drive); data/libx11-1.6.12/src/XlibInt.c:1861:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (bufp, path); data/libx11-1.6.12/src/XlibInt.c:1881:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (bufp, path); data/libx11-1.6.12/src/os2Stubs.c:73:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(redirname,"%s%s",root,fname); data/libx11-1.6.12/src/os2Stubs.c:83:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf,format,arg1,arg2,arg3); data/libx11-1.6.12/src/util/makekeys.c:147:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name, "%s%s", prefix, key); data/libx11-1.6.12/src/util/makekeys.c:229:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf((i == (ksnum-1)) ? "0\n" : "0,\n"); data/libx11-1.6.12/src/util/makekeys.c:242:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf((i & 7) ? ", " : ",\n"); data/libx11-1.6.12/src/util/makekeys.c:317:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf((i & 7) ? ", " : ",\n"); data/libx11-1.6.12/src/xcms/cmsColNm.c:564:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ((sscanf(buf, "%s %s", token, token2)) data/libx11-1.6.12/src/xcms/cmsColNm.c:579:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ((sscanf(buf, "%s", token)) && (strcmp(token, END_TOKEN) == 0)) { data/libx11-1.6.12/src/xcms/cmsColNm.c:655:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ((sscanf(buf, "%s %s", token, token2)) data/libx11-1.6.12/src/xcms/cmsColNm.c:674:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ((sscanf(buf, "%s", token)) && (strcmp(token, END_TOKEN) == 0)) { data/libx11-1.6.12/src/xkb/XKBCvt.c:276:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(start, tmp); data/libx11-1.6.12/src/xkb/XKBCvt.c:307:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp, _XkbKnownLanguages); data/libx11-1.6.12/src/xlibi18n/XlcDL.c:156:2: [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(result + 1, symbol); data/libx11-1.6.12/src/xlibi18n/lcCT.c:486:28: [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). ct_info->ct_sequence = strcpy((char *) (ct_info + 1), ct_sequence); data/libx11-1.6.12/src/xlibi18n/lcDB.c:569:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, parse_info.name[0]); data/libx11-1.6.12/src/xlibi18n/lcDB.c:573:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, parse_info.name[i]); data/libx11-1.6.12/src/xlibi18n/lcDB.c:842:2: [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(&parse_info.buf[parse_info.bufsize], wordp); data/libx11-1.6.12/src/xlibi18n/lcDB.c:904:2: [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(&parse_info.buf[parse_info.bufsize + token_len], wordp); data/libx11-1.6.12/src/xlibi18n/lcDB.c:978:2: [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(&parse_info.buf[parse_info.bufsize], wordp); data/libx11-1.6.12/src/xlibi18n/lcFile.c:46:25: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #define isreadable(f) ((access((f), R_OK) != -1) ? 1 : 0) data/libx11-1.6.12/src/xlibi18n/lcFile.c:586:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (dst, pub->siname); data/libx11-1.6.12/src/xlibi18n/lcFile.c:633:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (dir_name, last_dir_name); data/libx11-1.6.12/src/xlibi18n/lcFile.c:689:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (last_dir_name, dir_name); data/libx11-1.6.12/src/xlibi18n/lcFile.c:711:2: [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 (dir_name, last_dir_name); data/libx11-1.6.12/src/xlibi18n/lcFile.c:766:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (last_dir_name, dir_name); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:669:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cset_name,ret->name); data/libx11-1.6.12/src/xlibi18n/lcPrTxt.c:101:6: [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(str, mb_text); data/libx11-1.6.12/src/xlibi18n/lcTxtPr.c:118:4: [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(to, *mb_list); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:69: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(s,c_charsetname); strcat(s,".h"); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:124:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fname,directory); strcat(fname,filename); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:124:32: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcpy(fname,directory); strcat(fname,filename); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:226:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(enc->check_col_expr, "c2"); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:229:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(enc->byte_row_expr, "c1"); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:231:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(enc->byte_col_expr, "c2"); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:149:2: [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(mods, prog_mods); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:151:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(mods, user_mods); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:516: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. char *home = getenv("HOME"); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:528:12: [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. name = getenv("XCOMPOSEFILE"); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:556:20: [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. cachedir = getenv("XCOMPOSECACHE"); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:325:29: [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. home = getenv("HOME"); data/libx11-1.6.12/src/DisName.c:61:15: [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 ( (d = getenv( "DISPLAY" )) != (char *)NULL ) data/libx11-1.6.12/src/ErrDes.c:166:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. dbname = getenv("XERRORDB"); data/libx11-1.6.12/src/Font.c:334:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. envval = getenv("XF86BIGFONT_DISABLE"); /* Let the user disable it. */ data/libx11-1.6.12/src/GetDflt.c:80:17: [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 ((ptr1 = getenv("HOME"))) { /* old, deprecated */ data/libx11-1.6.12/src/GetDflt.c:82:24: [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. } else if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) { data/libx11-1.6.12/src/GetDflt.c:82:56: [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. } else if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) { data/libx11-1.6.12/src/GetDflt.c:85:24: [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. } else if ((ptr2 = getenv("USERNAME"))) { data/libx11-1.6.12/src/GetDflt.c:103:16: [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 ((ptr = getenv("HOME"))) { data/libx11-1.6.12/src/GetDflt.c:107:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((ptr = getenv("USER"))) data/libx11-1.6.12/src/GetDflt.c:151: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. if (!(xenv = getenv ("XENVIRONMENT"))) { data/libx11-1.6.12/src/OpenDis.c:95:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((display_name = getenv("DISPLAY")) == NULL) { data/libx11-1.6.12/src/OpenDis.c:224:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. xlib_buffer_size = getenv("XLIBBUFFERSIZE"); data/libx11-1.6.12/src/OpenDis.c:228:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. xlib_buffer_size = getenv("XSUNBUFFERSIZE"); data/libx11-1.6.12/src/OpenDis.c:462:30: [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 (dp->depth == 32 && getenv ("XLIB_SKIP_ARGB_VISUALS")) data/libx11-1.6.12/src/StrKeysym.c:62:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. dbname = getenv("XKEYSYMDB"); data/libx11-1.6.12/src/WMProps.c:118:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp.res_name = getenv ("RESOURCE_NAME"); data/libx11-1.6.12/src/XlibInt.c:1836:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. drive = getenv ("_XBASEDRIVE"); data/libx11-1.6.12/src/XlibInt.c:1839:10: [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. drive = getenv ("X11ROOT"); data/libx11-1.6.12/src/XlibInt.c:1855:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. drive = getenv ("HOMEDRIVE"); data/libx11-1.6.12/src/os2Stubs.c:68:19: [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. root = (char*)getenv("X11ROOT"); data/libx11-1.6.12/src/xcms/cmsColNm.c:734:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((pathname = getenv("XCMSDB")) == NULL) { data/libx11-1.6.12/src/xkb/XKBCvt.c:243:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp = getenv("_XKB_CHARSET"); data/libx11-1.6.12/src/xkb/XKBCvt.c:274:16: [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 ((tmp = getenv("_XKB_LOCALE_CHARSETS")) != NULL) { data/libx11-1.6.12/src/xkb/XKBCvt.c:339:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp = getenv("_XKB_CHARSET"); data/libx11-1.6.12/src/xkb/XKBUse.c:589: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("XKB_FORCE") != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:597:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if (getenv("XKB_DEBUG") != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:638:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. debugMsg = (getenv("XKB_DEBUG") != NULL); data/libx11-1.6.12/src/xkb/XKBUse.c:655:20: [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 ((str = getenv("_XKB_OPTIONS_ENABLE")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:656:24: [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 ((str = getenv("_XKB_LATIN1_LOOKUP")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:662:24: [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 ((str = getenv("_XKB_CONSUME_LOOKUP_MODS")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:668:24: [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 ((str = getenv("_XKB_CONSUME_SHIFT_AND_LOCK")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:674:24: [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 ((str = getenv("_XKB_IGNORE_NEW_KEYBOARDS")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:680:24: [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 ((str = getenv("_XKB_CONTROL_FALLBACK")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:686:24: [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 ((str = getenv("_XKB_COMP_LED")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:695:24: [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 ((str = getenv("_XKB_COMP_FAIL_BEEP")) != NULL) { data/libx11-1.6.12/src/xkb/XKBUse.c:730:47: [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 (forceIgnore || _XkbIgnoreExtension || getenv("XKB_DISABLE")) { data/libx11-1.6.12/src/xlibi18n/lcFile.c:210:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. dir = getenv("XLOCALEDIR"); data/libx11-1.6.12/src/xlibi18n/lcFile.c:288:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. dir = getenv("XLOCALELIBDIR"); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:87:17: [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. user_mods = getenv("XMODIFIERS"); data/libx11-1.6.12/include/X11/XKBlib.h:216:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[XkbActionMessageLength+1]; data/libx11-1.6.12/include/X11/Xcms.h:203:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pad[3]; data/libx11-1.6.12/include/X11/Xlib.h:463:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char auto_repeats[32]; data/libx11-1.6.12/include/X11/Xlib.h:659:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key_vector[32]; data/libx11-1.6.12/include/X11/Xlib.h:906:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b[20]; data/libx11-1.6.12/include/X11/Xlibint.h:642:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dpy->bufptr, data, (int)(len));\ data/libx11-1.6.12/include/X11/Xlibint.h:1369:32: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define _XOpenFile(path,flags) open(path,flags) data/libx11-1.6.12/include/X11/Xlibint.h:1370:41: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define _XOpenFileMode(path,flags,mode) open(path,flags,mode) data/libx11-1.6.12/include/X11/Xlibint.h:1371:32: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define _XFopenFile(path,mode) fopen(path,mode) data/libx11-1.6.12/modules/im/ximcp/imCallbk.c:234:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(proto_buf, proto, proto_len); data/libx11-1.6.12/modules/im/ximcp/imCallbk.c:346:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf[p],&cbrec.text->string.mbs,length_in_bytes); data/libx11-1.6.12/modules/im/ximcp/imCallbk.c:466:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_buf, buf, tmp_len); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:113:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)save_ic, (char *)ic, sizeof(XicRec)); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:125:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)res, (char *)im->core.ic_resources, buf_size); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:133:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)res, data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:170:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, buf, buf_size); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:241:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)ic, (char *)save_ic, sizeof(XicRec)); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:737:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, buf, buf_size); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1175:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(str, info->string, info->string_len); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1178:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(str, (char *)&buf_s[1], buf_s[0]); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1232:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(str, info->string, info->string_len); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1235:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(str, (char *)&buf_s[1], buf_s[0]); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1291:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(str, info->string, info->string_len); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1294:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(str, (char *)&buf_s[1], buf_s[0]); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1401:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)res, (char *)im->core.ic_resources, len); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1463:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)res, (char *)im->core.ic_resources, len); data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1491:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)res, data/libx11-1.6.12/modules/im/ximcp/imDefIc.c:1526:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, buf, buf_size); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:286:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *locale_name[4], *locale; data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:819:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_b[1], locale_name, locale_len); /* locale name */ data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1319:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, buf, buf_size); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1738:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)&buf_s[2], name_ptr, name_len); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1744:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)&buf_s[2], detail_ptr, detail_len); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1852:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, buf, buf_size); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1946:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)save_im, (char *)im, sizeof(XimRec)); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1957:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)im, (char *)save_im, sizeof(XimRec)); data/libx11-1.6.12/modules/im/ximcp/imDefLkup.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((char *)key, (char *)buf_l, len); data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c:442:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)key, (char *)buf_l, len); data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c:655:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(string, (char *)buf, len); data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c:818:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&buf_s[6], detail, len); data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c:853:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char scratchbuf[BUFSIZ]; data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c:896:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to, scratchbuf, to_cnvlen); data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c:929:5: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t scratchbuf[BUFSIZ]; data/libx11-1.6.12/modules/im/ximcp/imDefLkup.c:972:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to, scratchbuf, to_cnvlen * sizeof(wchar_t)); data/libx11-1.6.12/modules/im/ximcp/imEvToWire.c:141:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)(((xKeymapEvent *) event)->map), data/libx11-1.6.12/modules/im/ximcp/imEvToWire.c:521:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ev->key_vector[1], data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[XIM_MAXLCNAMELEN]; data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:226:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char locale[XIM_MAXLCNAMELEN]; data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:273:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char locale[XIM_MAXLCNAMELEN]; data/libx11-1.6.12/modules/im/ximcp/imLcFlt.c:45:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[256]; data/libx11-1.6.12/modules/im/ximcp/imLcIc.c:164:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)res, (char *)im->core.ic_resources, len); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:425:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&im->private.local.base, &_XimCachedDefaultTreeBase, data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:535:14: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(name + hl, "/.XCompose"); data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:64:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mb2[XLC_PUBLIC(ic->core.im->core.lcd, mb_cur_max)]; data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:77:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, mb2, ret); data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:91:6: [2] (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, &mb[b[ic->private.local.composed].mb], ret); data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:162:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)buffer, (char *)&wc[b[ic->private.local.composed].wc], data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:236:6: [2] (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, &utf8[b[ic->private.local.composed].utf8], ret); data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:291:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char scratchbuf[BUFSIZ]; data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:334:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to, scratchbuf, to_cnvlen); data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:362:5: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t scratchbuf[BUFSIZ]; data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:405:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to, scratchbuf, to_cnvlen * sizeof(wchar_t)); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:287: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. const char name[6]; data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:312:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[XLC_BUFSIZE] = ""; data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:416:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char local_buf[MB_LEN_MAX]; data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:470:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char local_mb_buf[MB_LEN_MAX+1]; data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:471:5: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t local_wc_buf[LOCAL_WC_BUFSIZE], *rhs_string_wc; data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:472:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char local_utf8_buf[LOCAL_UTF8_BUFSIZE], *rhs_string_utf8; data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:620: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(rhs_string_mb, local_mb_buf, l); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:640:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)rhs_string_wc, (char *)local_wc_buf, (l + 1) * sizeof(wchar_t) ); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:656: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(rhs_string_utf8, local_utf8_buf, l + 1); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:725:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tb[8192]; data/libx11-1.6.12/modules/im/ximcp/imRm.c:76:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char res_name_buf[256]; data/libx11-1.6.12/modules/im/ximcp/imRm.c:79:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char res_class_buf[256]; data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:246:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(str, (char *)data, data_len); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:647:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)buf, (char *)value, ret_len); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:735:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)&buf_s[1], base_name, length); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1464:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(names, (char *)&buf[3], len); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1509:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(names, (char *)&buf[3], len); data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:85: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 const tactis_chtype[TACTIS_CHARS] = { data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:131: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 const write_rules_lookup[CH_CLASSES][CH_CLASSES] = { data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.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 const wtt_isc1_lookup[CH_CLASSES][CH_CLASSES] = { data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:179: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 const wtt_isc2_lookup[CH_CLASSES][CH_CLASSES] = { data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:203: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 const thaicat_isc_lookup[CH_CLASSES][CH_CLASSES] = { data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:878:6: [2] (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, p->string, length); data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:1300:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[10]; data/libx11-1.6.12/modules/im/ximcp/imThaiFlt.c:1302:5: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wbuf[10]; data/libx11-1.6.12/modules/im/ximcp/imThaiIc.c:196:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy((char *)res, (char *)im->core.ic_resources, len); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:253:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. (void)sprintf(atomName, "_client%d", sequence); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:262:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char atomName[16]; data/libx11-1.6.12/modules/im/ximcp/imTrX.c:306:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)p, (data + length), (len - length)); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:309:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)p, (data + length), XIM_CM_DATA_SIZE); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:330:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_buf[XIM_CM_DATA_SIZE]; data/libx11-1.6.12/modules/im/ximcp/imTrX.c:351:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(buf, data, XIM_CM_DATA_SIZE); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:354:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(buf, data, buf_len); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:356:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(tmp_buf, &data[buf_len], len); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:358:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(data, tmp_buf, len); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:376:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(buf, prop_ret, (int)nitems); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:395:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(buf, prop_ret, buf_len); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:429:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(buf, prop_ret, (int)nitems); data/libx11-1.6.12/modules/im/ximcp/imTrX.c:432:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(buf, prop_ret, buf_len); data/libx11-1.6.12/modules/im/ximcp/imTransR.c:133:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, hold_buf, packet_size); data/libx11-1.6.12/modules/im/ximcp/imTransR.c:144:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, &hold_buf[i], data_len); data/libx11-1.6.12/modules/im/ximcp/imTransR.c:156:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, hold_buf, data_len); data/libx11-1.6.12/modules/im/ximcp/imTransR.c:179:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, buf, data_len); data/libx11-1.6.12/modules/im/ximcp/imTransR.c:206:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, &buf[i], data_len); data/libx11-1.6.12/modules/lc/def/lcDefConv.c:189:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ch[MB_LEN_MAX]; data/libx11-1.6.12/modules/lc/def/lcDefConv.c:264:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ch[MB_LEN_MAX]; data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:2176:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[32]; data/libx11-1.6.12/modules/om/generic/omDefault.c:40:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define DefineLocalBuf char local_buf[BUFSIZ] data/libx11-1.6.12/modules/om/generic/omGeneric.c:507:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fields[CHARSET_ENCODING_FIELD]; data/libx11-1.6.12/modules/om/generic/omGeneric.c:508:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_pixel[32], str_point[4]; data/libx11-1.6.12/modules/om/generic/omGeneric.c:554: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). pixel_size = atoi(fields[PIXEL_SIZE_FIELD - 1]); data/libx11-1.6.12/modules/om/generic/omGeneric.c:676:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[XLFD_MAX_LEN + 1]; data/libx11-1.6.12/modules/om/generic/omGeneric.c:1879:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char **value, buf[BUFSIZ]; data/libx11-1.6.12/modules/om/generic/omGeneric.c:1910:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char **value, buf[BUFSIZ], *bufptr; data/libx11-1.6.12/src/ErrDes.c:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[150]; data/libx11-1.6.12/src/ErrDes.c:151:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[BUFSIZ]; data/libx11-1.6.12/src/EvToWire.c:138:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)(((xKeymapEvent *) event)->map), data/libx11-1.6.12/src/FSWrap.c:76:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *plist[XMAXLIST]; data/libx11-1.6.12/src/FSWrap.c:120:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)list, (char *)plist, sizeof(char *) * (size_t) (*num)); data/libx11-1.6.12/src/Font.c:659:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/libx11-1.6.12/src/GetColor.c:63:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)hard_def, (char *)exact_def, sizeof(XColor)); data/libx11-1.6.12/src/GetDflt.c:128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[PATH_MAX]; /* longer than any conceivable size */ data/libx11-1.6.12/src/GetKCnt.c:50: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 (state->auto_repeats, rep.map, sizeof state->auto_repeats); data/libx11-1.6.12/src/GetPntMap.c:46:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char mapping[256]; /* known fixed size */ data/libx11-1.6.12/src/GetPntMap.c:75:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) map, (char *) mapping, data/libx11-1.6.12/src/Host.c:93:2: [2] (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, siAddr->type, (size_t) siAddr->typelength); data/libx11-1.6.12/src/Host.c:95:2: [2] (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 + siAddr->typelength + 1,siAddr->value,(size_t) siAddr->valuelength); data/libx11-1.6.12/src/Host.c:97:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) NEXTPTR(req,xChangeHostsReq), host->address, (size_t) addrlen); data/libx11-1.6.12/src/ImText.c:63:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/libx11-1.6.12/src/ImText16.c:63:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/libx11-1.6.12/src/ImUtil.c:49:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char const _lomask[0x09] = { 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff }; data/libx11-1.6.12/src/ImUtil.c:50:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char const _himask[0x09] = { 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, 0x00 }; data/libx11-1.6.12/src/KeyBind.c:840:6: [2] (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, p->string, (size_t) length); data/libx11-1.6.12/src/KeyBind.c:949: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 (p->string, str, (size_t) nbytes); data/libx11-1.6.12/src/KeyBind.c:951:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) p->modifiers, (char *) mlist, (size_t) nb); data/libx11-1.6.12/src/KeysymStr.c:105:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[9]; data/libx11-1.6.12/src/LookupCol.c:61:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)scr, (char *)def, sizeof(XColor)); data/libx11-1.6.12/src/PolyTxt.c:170: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 (tbuf+2 , CharacterOffset, 254); data/libx11-1.6.12/src/PolyTxt.c:200: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 (tbuf+2 , CharacterOffset, (size_t) PartialNChars); data/libx11-1.6.12/src/PolyTxt16.c:171:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) (elt + 1), (char *)CharacterOffset, 254 * 2); data/libx11-1.6.12/src/PolyTxt16.c:205:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) (elt + 1), (char *)CharacterOffset, data/libx11-1.6.12/src/PutImage.c:50:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char const _reverse_byte[0x100] = { data/libx11-1.6.12/src/PutImage.c:85:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char const _reverse_nibs[0x100] = { data/libx11-1.6.12/src/PutImage.c:152:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)dest, (char *)src, (int)(srcinc * (h - 1) + srclen)); data/libx11-1.6.12/src/PutImage.c:155:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)dest, (char *)src, (int)srclen); data/libx11-1.6.12/src/QuKeybd.c:33:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char map[32]; data/libx11-1.6.12/src/QuKeybd.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keys[32]) data/libx11-1.6.12/src/Quarks.c:205:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. permTable[0] = (Bits *)((char *)stringTable[0] + STRQUANTSIZE); data/libx11-1.6.12/src/Quarks.c:323:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s1, s2, (size_t)len); data/libx11-1.6.12/src/RdBitF.c:119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAX_SIZE]; /* input line from file */ data/libx11-1.6.12/src/RdBitF.c:121:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name_and_type[MAX_SIZE]; /* an input line */ data/libx11-1.6.12/src/RdBitF.c:135:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(fstream = fopen(filename, "r"))) data/libx11-1.6.12/src/Region.c:541:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) dstrgn->rects, (char *) rgn->rects, data/libx11-1.6.12/src/SetFPath.c:64:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p + 1, directories[i], (size_t)length); data/libx11-1.6.12/src/Text.c:91:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)tbuf+2, CharacterOffset, 254); data/libx11-1.6.12/src/Text.c:107:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)tbuf+2, CharacterOffset, (size_t)PartialNChars); data/libx11-1.6.12/src/Text16.c:85:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (((char *) elt) + 2, (char *)CharacterOffset, 254 * 2); data/libx11-1.6.12/src/Text16.c:96:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)elt) + 2, (char *)CharacterOffset, PartialNChars * 2); data/libx11-1.6.12/src/TextToStr.c:87: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 (start, (char *) tp->value, tp->nitems); data/libx11-1.6.12/src/WMProps.c:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostName[256]; data/libx11-1.6.12/src/WrBitF.c:112:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(stream = fopen(filename, "w"))) data/libx11-1.6.12/src/XlibAsync.c:109:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(replbuf, buf, len); data/libx11-1.6.12/src/XlibAsync.c:149:2: [2] (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, buf, datalen); data/libx11-1.6.12/src/XlibAsync.c:151:2: [2] (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, buf, len); data/libx11-1.6.12/src/XlibInt.c:989:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ev->key_vector[1], data/libx11-1.6.12/src/XlibInt.c:1320:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BUFSIZ]; data/libx11-1.6.12/src/XlibInt.c:1321:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mesg[BUFSIZ]; data/libx11-1.6.12/src/XlibInt.c:1322:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number[32]; data/libx11-1.6.12/src/XlibInt.c:1379:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buffer, "Value"); data/libx11-1.6.12/src/XlibInt.c:1638:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dpy->bufptr, data, (int)len); data/libx11-1.6.12/src/XlibInt.c:1828:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAX_PATH]; data/libx11-1.6.12/src/XlibInt.c:1896:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAX_PATH]; data/libx11-1.6.12/src/XlibInt.c:1902:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = open (bufp, flags); data/libx11-1.6.12/src/XlibInt.c:1916:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAX_PATH]; data/libx11-1.6.12/src/XlibInt.c:1922:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = open (bufp, flags, mode); data/libx11-1.6.12/src/XlibInt.c:1935:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAX_PATH]; data/libx11-1.6.12/src/XlibInt.c:1941:8: [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). ret = fopen (bufp, mode); data/libx11-1.6.12/src/XlibInt.c:1953:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAX_PATH]; data/libx11-1.6.12/src/Xrm.c:927:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(RawValue(entry), (char *)value->addr, value->size); data/libx11-1.6.12/src/Xrm.c:980: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(RawValue(entry), (char *)value->addr, value->size); data/libx11-1.6.12/src/Xrm.c:1100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *lhs, lhs_s[DEF_BUFF_SIZE]; data/libx11-1.6.12/src/Xrm.c:1427:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[3]; data/libx11-1.6.12/src/Xrm.c:1645:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char realfname[BUFSIZ]; data/libx11-1.6.12/src/Xrm.c:2095:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(file = fopen(fileName, "w"))) return; data/libx11-1.6.12/src/imConv.c:67:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char encoding_name[8]; data/libx11-1.6.12/src/imConv.c:68:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char charset_name[12]; data/libx11-1.6.12/src/imConv.c:171:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char look[BUF_SIZE]; data/libx11-1.6.12/src/imConv.c:180:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(look, (char *)buffer,count); data/libx11-1.6.12/src/imConv.c:242:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char look[BUF_SIZE]; data/libx11-1.6.12/src/imConv.c:314:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char look[BUF_SIZE]; data/libx11-1.6.12/src/imConv.c:323:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(look, (char *)buffer,count); data/libx11-1.6.12/src/os2Stubs.c:61:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char redirname[300]; /* enough for long filenames */ data/libx11-1.6.12/src/os2Stubs.c:82:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[300]; data/libx11-1.6.12/src/os2Stubs.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 faildata[16]; data/libx11-1.6.12/src/os2Stubs.c:350: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(sd->tcp_select_copy,sd->tcp_select_mask, data/libx11-1.6.12/src/util/makekeys.c:57: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 tab[KTNUM]; data/libx11-1.6.12/src/util/makekeys.c:67:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char alias[128]; data/libx11-1.6.12/src/util/makekeys.c:74:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prefix, key, (size_t)(tmp - key)); data/libx11-1.6.12/src/util/makekeys.c:86:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prefix, key, (size_t)(tmp - key)); data/libx11-1.6.12/src/util/makekeys.c:120:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[128], prefix[128]; data/libx11-1.6.12/src/util/makekeys.c:121:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1024]; data/libx11-1.6.12/src/util/makekeys.c:124:16: [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). fptr = fopen(argv[l], "r"); data/libx11-1.6.12/src/xcb_disp.c:28:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, n); data/libx11-1.6.12/src/xcb_io.c:455: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. static char const pad[3]; data/libx11-1.6.12/src/xcb_io.c:681:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rep, error, 32); data/libx11-1.6.12/src/xcb_io.c:729:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rep, dpy->xcb->reply_data, dpy->xcb->reply_consumed); data/libx11-1.6.12/src/xcb_io.c:743:2: [2] (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, dpy->xcb->reply_data + dpy->xcb->reply_consumed, size); data/libx11-1.6.12/src/xcms/CCC.c:124:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)newccc, (char *)pDefaultCCC, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/CCC.c:126:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&newccc->clientWhitePt, (char *)clientWhitePt, data/libx11-1.6.12/src/xcms/CCC.c:151:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pNewScrnInfo, (char *)newccc->pPerScrnInfo, data/libx11-1.6.12/src/xcms/CvCols.c:375:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&tmp1, (char *)pWhitePt1, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/CvCols.c:376:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&tmp2, (char *)pWhitePt2, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/CvCols.c:773:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&clientWhitePt, (char *)&ccc->clientWhitePt, data/libx11-1.6.12/src/xcms/CvCols.c:782:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&clientWhitePt, data/libx11-1.6.12/src/xcms/CvCols.c:806:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColors_tmp, (char *)pColors_in_out, data/libx11-1.6.12/src/xcms/CvCols.c:989:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColors_in_out, (char *)pColors_tmp, data/libx11-1.6.12/src/xcms/HVC.c:366:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)pHVC_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVC.c:435:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec, (char *)&uvY_return, sizeof(XcmsCIEuvY)); data/libx11-1.6.12/src/xcms/HVC.c:485:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)pHVC_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVC.c:568:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec, (char *)&HVC_return, sizeof(XcmsTekHVC)); data/libx11-1.6.12/src/xcms/HVCGcV.c:103:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/HVCGcV.c:139:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&hvc_max, (char *)pColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCGcVC.c:114:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/HVCGcVC.c:157:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&hvc_max, (char *)pColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMnV.c:119:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/HVCMnV.c:137:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&max_vc, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMnV.c:158:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxC.c:122:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/HVCMxC.c:138:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&max_vc, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxC.c:151:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxC.c:190:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxC.c:215:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxC.c:241:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxV.c:120:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &myCCC, (char *) ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/HVCMxV.c:136:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&max_vc, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxV.c:153:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxV.c:162:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxV.c:197:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxV.c:221:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxV.c:245:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxVC.c:165:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/HVCMxVC.c:222:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/HVCMxVs.c:117:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &myCCC, (char *) ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/IdOfPr.c:62:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string_buf[64]; data/libx11-1.6.12/src/xcms/LRGB.c:659:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pScreenData, (char *)pScreenDefaultData, data/libx11-1.6.12/src/xcms/LRGB.c:1201:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (answer, lo, nKeyPtrSize); data/libx11-1.6.12/src/xcms/LRGB.c:1211:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(answer, mid, nKeyPtrSize); data/libx11-1.6.12/src/xcms/LRGB.c:1534:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec, (char *)tmp, sizeof(tmp)); data/libx11-1.6.12/src/xcms/LRGB.c:1557:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec, (char *)tmp, sizeof(tmp)); data/libx11-1.6.12/src/xcms/LRGB.c:1627:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pXcmsColors_in_out->spec, (char *)tmp, sizeof(tmp)); data/libx11-1.6.12/src/xcms/LRGB.c:1710:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pXcmsColors_in_out->spec, (char *)&tmpRGB, sizeof(XcmsRGB)); data/libx11-1.6.12/src/xcms/LRGB.c:1791:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pXcmsColors_in_out->spec, (char *)&tmpRGBi, sizeof(XcmsRGBi)); data/libx11-1.6.12/src/xcms/Lab.c:269:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)pLab_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/Lab.c:320:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec.CIEXYZ, (char *)&XYZ_return, data/libx11-1.6.12/src/xcms/Lab.c:372:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)pLab_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/Lab.c:425:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec.CIELab, (char *)&Lab_return, data/libx11-1.6.12/src/xcms/LabGcL.c:84:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LabGcL.c:118:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&Lab_max, (char *)pColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabGcL.c:130:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor, (char *)&Lab_max, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabGcL.c:136:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor, (char *)&Lab_max, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabGcLC.c:97:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LabGcLC.c:140:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&Lab_max, (char *)pColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabGcLC.c:151:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor, (char *)&Lab_max, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabMnL.c:100:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &myCCC, (char *) ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LabMnL.c:135:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &max_lc, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LabMnL.c:163:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&prev, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabMnL.c:181:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LabMnL.c:191:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LabMnL.c:194:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LabMnL.c:207:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LabMnL.c:210:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LabMnL.c:214:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxC.c:105:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LabMxC.c:124:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&max_lc, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxC.c:178:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxC.c:201:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxL.c:100:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &myCCC, (char *) ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LabMxL.c:135:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &max_lc, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxL.c:163:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&prev, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxL.c:181:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxL.c:191:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LabMxL.c:194:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LabMxL.c:207:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LabMxL.c:210:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LabMxL.c:214:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxLC.c:155:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LabMxLC.c:205:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/Luv.c:268:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)pLuv_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/Luv.c:310:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec, (char *)&uvY_return, sizeof(XcmsCIEuvY)); data/libx11-1.6.12/src/xcms/Luv.c:360:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)pLuv_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/Luv.c:395:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec, (char *)&Luv_return, sizeof(XcmsCIELuv)); data/libx11-1.6.12/src/xcms/LuvGcL.c:84:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LuvGcL.c:118:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&Luv_max, (char *)pColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvGcL.c:130:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor, (char *)&Luv_max, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvGcL.c:136:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor, (char *)&Luv_max, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvGcLC.c:97:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LuvGcLC.c:140:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&Luv_max, (char *)pColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvGcLC.c:151:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor, (char *)&Luv_max, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMnL.c:100:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &myCCC, (char *) ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LuvMnL.c:135:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &max_lc, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMnL.c:163:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&prev, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMnL.c:181:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMnL.c:191:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LuvMnL.c:194:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LuvMnL.c:207:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LuvMnL.c:210:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LuvMnL.c:214:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxC.c:105:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LuvMxC.c:124:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&max_lc, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxC.c:179:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxC.c:202:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxL.c:100:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &myCCC, (char *) ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/LuvMxL.c:135:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &max_lc, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxL.c:163:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&prev, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxL.c:181:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxL.c:191:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LuvMxL.c:194:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LuvMxL.c:207:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&prev, data/libx11-1.6.12/src/xcms/LuvMxL.c:210:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)pColor_return, (char *)&tmp, data/libx11-1.6.12/src/xcms/LuvMxL.c:214:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) pColor_return, (char *) &tmp, sizeof (XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxLC.c:155:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_return, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/LuvMxLC.c:205:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec)); data/libx11-1.6.12/src/xcms/QBlack.c:82:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_ret, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/QBlue.c:82:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_ret, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/QGreen.c:82:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_ret, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/QRed.c:82:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_ret, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/QWhite.c:82:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_ret, (char *)&tmp, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/SetCCC.c:77:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&ccc->clientWhitePt, (char *)pColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/StCols.c:95:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColors_tmp, (char *)pColors_in, data/libx11-1.6.12/src/xcms/cmsAllNCol.c:106:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_exact_return, (char *)&tmpColor, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/cmsCmap.c:304:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pRec_copy->ccc, (char *)pRec_src->ccc, data/libx11-1.6.12/src/xcms/cmsColNm.c:199:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string_buf[64]; data/libx11-1.6.12/src/xcms/cmsColNm.c:391:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_lowered_64[64]; data/libx11-1.6.12/src/xcms/cmsColNm.c:544:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[XCMSDB_MAXLINELEN]; data/libx11-1.6.12/src/xcms/cmsColNm.c:545:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char token[XCMSDB_MAXLINELEN]; data/libx11-1.6.12/src/xcms/cmsColNm.c:546:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char token2[XCMSDB_MAXLINELEN]; data/libx11-1.6.12/src/xcms/cmsColNm.c:642:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[XCMSDB_MAXLINELEN]; data/libx11-1.6.12/src/xcms/cmsColNm.c:643:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char token[XCMSDB_MAXLINELEN]; data/libx11-1.6.12/src/xcms/cmsColNm.c:644:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char token2[XCMSDB_MAXLINELEN]; data/libx11-1.6.12/src/xcms/cmsColNm.c:985:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&dbWhitePt, data/libx11-1.6.12/src/xcms/cmsInt.c:87:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)newArray, (char *)pap, data/libx11-1.6.12/src/xcms/cmsInt.c:146:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)(newArray+1),(char *)pap, data/libx11-1.6.12/src/xcms/cmsLkCol.c:114:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)pColor_scrn_return, (char *)pColor_exact_return, data/libx11-1.6.12/src/xcms/uvY.c:288:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)puvY_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/uvY.c:327:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec.CIEXYZ, (char *)&XYZ_return, sizeof(XcmsCIEXYZ)); data/libx11-1.6.12/src/xcms/uvY.c:397:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)puvY_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/uvY.c:417:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&pColor->spec.CIEuvY, (char *)&uvY_return, sizeof(XcmsCIEuvY)); data/libx11-1.6.12/src/xcms/xyY.c:287:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&whitePt, (char *)pxyY_WhitePt, sizeof(XcmsColor)); data/libx11-1.6.12/src/xcms/xyY.c:326:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&pColor->spec, (char *)&XYZ_return, sizeof(XcmsCIEXYZ)); data/libx11-1.6.12/src/xcms/xyY.c:389:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *)&pColor->spec, (char *)&xyY_return, sizeof(XcmsCIExyY)); data/libx11-1.6.12/src/xkb/XKB.c:416: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(out, msg, req->msgLength); data/libx11-1.6.12/src/xkb/XKBBind.c:600:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4]; data/libx11-1.6.12/src/xkb/XKBBind.c:759: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(buffer, p->string, (size_t) tmp); data/libx11-1.6.12/src/xkb/XKBCompat.c:193: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(&wire->act, &sym->act, sz_xkbActionWireDesc); data/libx11-1.6.12/src/xkb/XKBCtrls.c:262: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(ctrls->per_key_repeat, rep.perKeyRepeat, XkbPerKeyBitArraySize); data/libx11-1.6.12/src/xkb/XKBCtrls.c:332:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(req->perKeyRepeat, ctrls->per_key_repeat, XkbPerKeyBitArraySize); data/libx11-1.6.12/src/xkb/XKBCvt.c:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tbuf[8], *buf; data/libx11-1.6.12/src/xkb/XKBCvt.c:173:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/libx11-1.6.12/src/xkb/XKBCvt.c:237:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[100] = { 0 }; data/libx11-1.6.12/src/xkb/XKBCvt.c:238:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lang[256]; data/libx11-1.6.12/src/xkb/XKBCvt.c:293:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). (file = fopen(cf, "r"))) { data/libx11-1.6.12/src/xkb/XKBExtDev.c:654: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(wire, (char *) &devi->btn_acts[changes->first_btn], (size_t) size); data/libx11-1.6.12/src/xkb/XKBGeom.c:489: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(row->keys[row->num_keys].over.name, keyWire->over, data/libx11-1.6.12/src/xkb/XKBGeom.c:491: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(row->keys[row->num_keys].under.name, keyWire->under, data/libx11-1.6.12/src/xkb/XKBGeom.c:559:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key->name.name, keyWire->name, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBGetByName.c:112: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(str, names->keymap, (size_t) mapLen); data/libx11-1.6.12/src/xkb/XKBGetByName.c:117: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(str, names->keycodes, (size_t) codesLen); data/libx11-1.6.12/src/xkb/XKBGetByName.c:122: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(str, names->types, (size_t) typesLen); data/libx11-1.6.12/src/xkb/XKBGetByName.c:127: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(str, names->compat, (size_t) compatLen); data/libx11-1.6.12/src/xkb/XKBGetByName.c:132: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(str, names->symbols, (size_t) symsLen); data/libx11-1.6.12/src/xkb/XKBGetByName.c:137: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(str, names->geometry, (size_t) geomLen); data/libx11-1.6.12/src/xkb/XKBGetMap.c:286:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (!_XkbCopyFromReadBuffer(buf, (char *) newActs, data/libx11-1.6.12/src/xkb/XKBList.c:85: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(this->name, str, (size_t) slen); data/libx11-1.6.12/src/xkb/XKBList.c:157: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(str, ptrns->keymap, (size_t) mapLen); data/libx11-1.6.12/src/xkb/XKBList.c:162: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(str, ptrns->keycodes, (size_t) codesLen); data/libx11-1.6.12/src/xkb/XKBList.c:167: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(str, ptrns->types, (size_t) typesLen); data/libx11-1.6.12/src/xkb/XKBList.c:172: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(str, ptrns->compat, (size_t) compatLen); data/libx11-1.6.12/src/xkb/XKBList.c:177: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(str, ptrns->symbols, (size_t) symsLen); data/libx11-1.6.12/src/xkb/XKBList.c:182:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(str, ptrns->geometry, (size_t) geomLen); data/libx11-1.6.12/src/xkb/XKBMAlloc.c:230: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(into->map, from->map, data/libx11-1.6.12/src/xkb/XKBMAlloc.c:237: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(into->preserve, from->preserve, data/libx11-1.6.12/src/xkb/XKBMAlloc.c:244: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(into->level_names, from->level_names, data/libx11-1.6.12/src/xkb/XKBMAlloc.c:472:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&newSyms[nSyms + (new_num_lvls * g)], data/libx11-1.6.12/src/xkb/XKBMAlloc.c:479: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(&newSyms[nSyms], XkbKeySymsPtr(xkb, i), data/libx11-1.6.12/src/xkb/XKBMAlloc.c:555: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(&xkb->map->syms[xkb->map->num_syms], XkbKeySymsPtr(xkb, key), data/libx11-1.6.12/src/xkb/XKBMAlloc.c:581: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(&newSyms[nSyms], XkbKeySymsPtr(xkb, i), data/libx11-1.6.12/src/xkb/XKBMAlloc.c:830: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(&newActs[nActs], XkbKeyActionsPtr(xkb, i), data/libx11-1.6.12/src/xkb/XKBMisc.c:272:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) &xkb_syms_rtrn[2], (char *) xkb_syms_rtrn, data/libx11-1.6.12/src/xkb/XKBMisc.c:276:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) &xkb_syms_rtrn[nSyms[XkbGroup1Index]], data/libx11-1.6.12/src/xkb/XKBMisc.c:277:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *) xkb_syms_rtrn, data/libx11-1.6.12/src/xkb/XKBMisc.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((char *) XkbKeySymsPtr(xkb, key), (char *) tsyms, data/libx11-1.6.12/src/xkb/XKBMisc.c:643:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char newVMods[XkbNumVirtualMods]; data/libx11-1.6.12/src/xkb/XKBMisc.c:738: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(oldSyms, pSyms, (size_t) XkbKeyNumSyms(xkb, key) * sizeof(KeySym)); data/libx11-1.6.12/src/xkb/XKBMisc.c:750: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(&pSyms[i * width], &oldSyms[i * oldWidth], data/libx11-1.6.12/src/xkb/XKBMisc.c:757: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(oldActs, pActs, (size_t) XkbKeyNumSyms(xkb, key) * sizeof(XkbAction)); data/libx11-1.6.12/src/xkb/XKBMisc.c:769: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(&pActs[i * width], &oldActs[i * oldWidth], data/libx11-1.6.12/src/xkb/XKBRdBuf.c:74:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to, from->data, (size_t)size); data/libx11-1.6.12/src/xkb/XKBRdBuf.c:196: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(str, &buf->data[2], len); data/libx11-1.6.12/src/xkb/XKBSetGeom.c:59: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(&wire[2], str, len); data/libx11-1.6.12/src/xkb/XKBSetGeom.c:311: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(keyWire->over, key->over.name, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBSetGeom.c:312: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(keyWire->under, key->under.name, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBSetGeom.c:360:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(keyWire[k].name, key->name.name, data/libx11-1.6.12/src/xkb/XKBSetGeom.c:392: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(wire, (char *) geom->key_aliases, (size_t)sz); data/libx11-1.6.12/src/xkb/XKBSetMap.c:200: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(actDesc, XkbKeyActionsPtr(xkb, (i + req->firstKeyAct)), data/libx11-1.6.12/src/xkb/XKBUse.c:493: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(amev->message, am->message, XkbActionMessageLength); data/libx11-1.6.12/src/xkb/XKBlibint.h:245:38: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define _XkbReadCopyData32(f,t,s) memcpy((char *)(t), (char *)(f), (s)*4) data/libx11-1.6.12/src/xkb/XKBlibint.h:246:38: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define _XkbWriteCopyData32(f,t,s) memcpy((char *)(t), (char *)(f), (s)*4) data/libx11-1.6.12/src/xlibi18n/IMWrap.c:91:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)&u, (char *)src, (int)size); data/libx11-1.6.12/src/xlibi18n/IMWrap.c:100:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. else memcpy( (char*)dst, (char*)src, (int)size ); data/libx11-1.6.12/src/xlibi18n/IMWrap.c:102:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( (char*)dst, (char*)src, (int)size ); data/libx11-1.6.12/src/xlibi18n/IMWrap.c:105:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( (char*)*dst, (char*)src, (int)size ); data/libx11-1.6.12/src/xlibi18n/XDefaultIMIF.c:174:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BUFSIZ]; data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c:78:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define DefineLocalBuf char local_buf[BUFSIZ] data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c:314:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *pattern, *last, buf[BUFSIZ]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:105:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). char *open; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:183:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[BUFSIZ]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:185:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:193: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(filename, "r"); data/libx11-1.6.12/src/xlibi18n/XlcDL.c:201:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[6]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:381:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lc_dir[BUFSIZE], lc_lib_dir[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:402:73: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). lc_loader = (dynamicLoadProc)fetch_symbol (objects_list, objects_list->open); data/libx11-1.6.12/src/xlibi18n/XlcDL.c:422:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lc_dir[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:440:76: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). im_openIM = (dynamicOpenProcp)fetch_symbol(objects_list, objects_list->open); data/libx11-1.6.12/src/xlibi18n/XlcDL.c:465:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lc_dir[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:513:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lc_dir[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:571:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lc_dir[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:591:77: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). om_openOM = (dynamicIOpenProcp)fetch_symbol(objects_list, objects_list->open); data/libx11-1.6.12/src/xlibi18n/lcCT.c:54:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char name[19]; data/libx11-1.6.12/src/xlibi18n/lcCT.c:55:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char ct_sequence[5]; /* Compound Text encoding, ESC sequence */ data/libx11-1.6.12/src/xlibi18n/lcCT.c:805: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(bufptr, ctptr, (size_t) n); data/libx11-1.6.12/src/xlibi18n/lcCT.c:837: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(bufptr, ctptr, (size_t) n); data/libx11-1.6.12/src/xlibi18n/lcCT.c:912: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(ctptr, ct_info->ct_sequence, (size_t) length); data/libx11-1.6.12/src/xlibi18n/lcCT.c:927: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(ctptr, ct_info->ct_sequence, (size_t) length); data/libx11-1.6.12/src/xlibi18n/lcCT.c:939: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(ctptr, ct_info->ext_segment, (size_t) ct_info->ext_segment_len); data/libx11-1.6.12/src/xlibi18n/lcCT.c:946: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(ctptr, ct_info->ct_sequence, (size_t) length); data/libx11-1.6.12/src/xlibi18n/lcCharSet.c:192:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, name, name_len+1); data/libx11-1.6.12/src/xlibi18n/lcCharSet.c:205: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(encoding_tmp, charset->name, length); data/libx11-1.6.12/src/xlibi18n/lcCharSet.c:216:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, ct_sequence, ct_sequence_len+1); data/libx11-1.6.12/src/xlibi18n/lcConv.c:140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ], *cs; data/libx11-1.6.12/src/xlibi18n/lcDB.c:149:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *name[MAX_NAME_NEST]; data/libx11-1.6.12/src/xlibi18n/lcDB.c:318:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZE], *p; data/libx11-1.6.12/src/xlibi18n/lcDB.c:584:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/lcDB.c:815:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char word[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/lcDB.c:874:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char word[BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/lcDB.c:927:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char word[BUFSIZE], *p; data/libx11-1.6.12/src/xlibi18n/lcDynamic.c:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char libpath[1024]; data/libx11-1.6.12/src/xlibi18n/lcFile.c:367:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[XLC_BUFSIZE], *name = NULL; data/libx11-1.6.12/src/xlibi18n/lcFile.c:376:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[2], *from, *to; data/libx11-1.6.12/src/xlibi18n/lcFile.c:470:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cat[XLC_BUFSIZE], dir[XLC_BUFSIZE]; data/libx11-1.6.12/src/xlibi18n/lcFile.c:472:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[NUM_LOCALEDIR]; data/libx11-1.6.12/src/xlibi18n/lcFile.c:487:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PATH_MAX], *name; data/libx11-1.6.12/src/xlibi18n/lcFile.c:529:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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], buf[PATH_MAX], *name = NULL; data/libx11-1.6.12/src/xlibi18n/lcFile.c:532:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[NUM_LOCALEDIR]; data/libx11-1.6.12/src/xlibi18n/lcFile.c:620:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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], buf[PATH_MAX]; data/libx11-1.6.12/src/xlibi18n/lcFile.c:622:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[NUM_LOCALEDIR]; data/libx11-1.6.12/src/xlibi18n/lcFile.c:698:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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], buf[PATH_MAX]; data/libx11-1.6.12/src/xlibi18n/lcFile.c:700:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[NUM_LOCALEDIR]; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:75: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(new,methods,sizeof(XLCdPublicMethodsRec)); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:421:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char csd[16], cset_name[256]; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:422:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BUFSIZ]; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:449:21: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(cset_name,":GL"); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:452:21: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(cset_name,":GR"); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:477:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). charsetd->char_size = atoi(value[0]); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:484:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). charsetd->set_size = atoi(value[0]); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:561:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char conv[16]; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:562:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BUFSIZ]; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:585:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). conversion->length = atoi(value[0]); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:715:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gen->wc_shift_bits = atoi(value[0]); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:733:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cs[16]; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:734:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[BUFSIZ]; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:771: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). codeset->length = atoi(value[0]); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:794:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char encoding[256]; data/libx11-1.6.12/src/xlibi18n/lcPublic.c:94: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(new,methods,sizeof(XLCdPublicMethodsRec)); data/libx11-1.6.12/src/xlibi18n/lcPublic.c:119: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). pub->mb_cur_max = atoi(values[0]); data/libx11-1.6.12/src/xlibi18n/lcPublic.c:207:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sinamebuf[256]; data/libx11-1.6.12/src/xlibi18n/lcTxtPr.c:205:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(value, buf, (size_t) nitems); data/libx11-1.6.12/src/xlibi18n/lcUTF8.c:1730:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char **value, buf[20]; data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:69:30: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcpy(s,c_charsetname); strcat(s,".h"); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:125:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fname,"w"); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:365: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(s, "%02x_%d", p, ++i); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:369: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(s, "%02x", p); data/libx11-1.6.12/src/xlibi18n/lcUniConv/armscii_8.h:45: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 armscii_8_page00[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/armscii_8.h:48: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 armscii_8_page00_1[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/armscii_8.h:54: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 armscii_8_page05[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/armscii_8.h:68: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 armscii_8_page20[24] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/big5_emacs.h:58:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[2]; data/libx11-1.6.12/src/xlibi18n/lcUniConv/big5_emacs.h:92:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[2]; data/libx11-1.6.12/src/xlibi18n/lcUniConv/big5_emacs.h:119:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[2]; data/libx11-1.6.12/src/xlibi18n/lcUniConv/big5_emacs.h:144:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[2]; data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1133.h:53: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 cp1133_page00[16] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1133.h:57: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 cp1133_page0e[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1251.h:51: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 cp1251_page00[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1251.h:57: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 cp1251_page04[152] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1251.h:78: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 cp1251_page20[48] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1255.h:51: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 cp1255_page00[88] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1255.h:64: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 cp1255_page02[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1255.h:70: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 cp1255_page05[72] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1255.h:81: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 cp1255_page20[56] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1256.h:44: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 cp1256_page00[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1256.h:58: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 cp1256_page01[72] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1256.h:69: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 cp1256_page06[208] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/cp1256.h:97: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 cp1256_page20[56] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_academy.h:28: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 georgian_academy_page00[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_academy.h:34: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 georgian_academy_page01[72] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_academy.h:45: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 georgian_academy_page02[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_academy.h:51: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 georgian_academy_page20[48] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_ps.h:38: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 georgian_ps_page00[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_ps.h:44: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 georgian_ps_page01[72] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_ps.h:55: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 georgian_ps_page02[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_ps.h:61: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 georgian_ps_page10[40] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/georgian_ps.h:68: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 georgian_ps_page20[48] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_10.h:38: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 iso8859_10_page00[224] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_11.h:47: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 iso8859_11_page0e[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_13.h:38: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 iso8859_13_page00[224] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_13.h:69: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 iso8859_13_page20[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_14.h:38: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 iso8859_14_page00[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_14.h:52: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 iso8859_14_page01_0[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_14.h:58: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 iso8859_14_page01_1[16] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_14.h:62: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 iso8859_14_page1e_0[136] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_14.h:81: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 iso8859_14_page1e_1[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_15.h:26: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 iso8859_15_page00[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_15.h:32: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 iso8859_15_page01[48] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_16.h:38: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 iso8859_16_page00[224] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_16.h:69: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 iso8859_16_page02[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_16.h:72: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 iso8859_16_page20[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_2.h:38: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 iso8859_2_page00[224] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_2.h:69: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 iso8859_2_page02[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_3.h:45: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 iso8859_3_page00[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_3.h:59: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 iso8859_3_page01[120] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_3.h:76: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 iso8859_3_page02[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_4.h:38: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 iso8859_4_page00[224] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_4.h:69: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 iso8859_4_page02[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_5.h:38: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 iso8859_5_page00[16] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_5.h:42: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 iso8859_5_page04[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_6.h:45: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 iso8859_6_page00[16] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_6.h:49: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 iso8859_6_page06[80] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_7.h:45: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 iso8859_7_page00[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_7.h:51: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 iso8859_7_page03[80] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_7.h:63: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 iso8859_7_page20[16] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_8.h:45: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 iso8859_8_page00[88] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_8.h:58: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 iso8859_8_page05[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_8.h:64: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 iso8859_8_page20[16] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_9.h:29: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 iso8859_9_page00[48] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_9.h:37: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 iso8859_9_page01[72] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_9e.h:38: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 iso8859_9e_page00[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_9e.h:52: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 iso8859_9e_page01[136] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/iso8859_9e.h:71: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 iso8859_9e_page01_d[24] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_c.h:44: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 koi8_c_page00[1] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_c.h:47: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 koi8_c_page04[240] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_c.h:79: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 koi8_c_page22[1] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_r.h:46: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 koi8_r_page00[88] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_r.h:59: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 koi8_r_page04[88] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_r.h:72: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 koi8_r_page22[80] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_r.h:84: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 koi8_r_page23[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_r.h:87: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 koi8_r_page25[168] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_u.h:46: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 koi8_u_page00[88] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_u.h:59: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 koi8_u_page04[152] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_u.h:80: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 koi8_u_page22[80] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_u.h:92: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 koi8_u_page23[8] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/koi8_u.h:95: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 koi8_u_page25[168] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/mulelao.h:45: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 mulelao_page0e[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tatar_cyr.h:44: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 tatar_cyr_page00[32] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tatar_cyr.h:50: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 tatar_cyr_page04[240] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tatar_cyr.h:82: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 tatar_cyr_page20[48] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tatar_cyr.h:90: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 tatar_cyr_page21[24] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tatar_cyr.h:95: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 tatar_cyr_page22[1] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tcvn.h:54: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 tcvn_page00[96+184] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tcvn.h:92: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 tcvn_page03[40] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tcvn.h: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 tcvn_page1e[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/tis620.h:47: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 tis620_page0e[96] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/viscii.h:56: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 viscii_page00[64+184] = { data/libx11-1.6.12/src/xlibi18n/lcUniConv/viscii.h:90: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 viscii_page1e[96] = { data/libx11-1.6.12/src/xlibi18n/lcWrap.c:254:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sinamebuf[256]; data/libx11-1.6.12/src/xlibi18n/lcWrap.c:518:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, (char *) src, (size_t) size); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:520:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, (char *) &src, (size_t) size); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:544:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*dst, src, (size_t) size); data/libx11-1.6.12/modules/im/ximcp/imCallbk.c:88:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (im->private.proto.read((im),(XPointer)(buf),(buf_len),&(len))) data/libx11-1.6.12/modules/im/ximcp/imCallbk.c:332:3: [1] (buffer) strlen: Does not handle 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(cbrec.text->string.mbs); /* mb */ data/libx11-1.6.12/modules/im/ximcp/imCallbk.c:500:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char_len = mblen(char_tmp, strlen(char_tmp)); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:116: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). int category_len = strlen(XIM_SERVER_CATEGORY); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:121:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(server_name); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:125: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((int)strlen(str) < category_len) data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:160: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). category_len = strlen(XIM_LOCAL_CATEGORY); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:194: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). int category_len = strlen(XIM_TRANSPORT_CATEGORY); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:314: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). llen = strlen( language ); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:315: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). tlen = territory ? strlen( territory ): 0; data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:316: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). clen = codeset ? strlen( codeset ): 0; data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:344:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((locale = _XimCheckLocaleName(im, address, strlen(address), locale_name, data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:368:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( _XimCheckTransport(address, strlen(address), data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:370:5: [1] (buffer) strlen: Does not handle 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(_XimTransportRec[i].transportname), data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:814: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). locale_len = strlen(locale_name); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1559: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). encoding_len = strlen(encoding); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1560: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). compound_len = strlen("COMPOUND_TEXT"); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1568:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy((char *)&ret[1], encoding, encoding_len); data/libx11-1.6.12/modules/im/ximcp/imDefIm.c:1571:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. (void)strncpy((char *)&ret[1], "COMPOUND_TEXT", compound_len); data/libx11-1.6.12/modules/im/ximcp/imExten.c:307:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(extensions[i].name); data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:69:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( locale, "_" ); data/libx11-1.6.12/modules/im/ximcp/imInsClbk.c:73:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( locale, "." ); data/libx11-1.6.12/modules/im/ximcp/imInt.c:157: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(dest); data/libx11-1.6.12/modules/im/ximcp/imInt.c:178: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). end = begin += strlen(ximmodifier); data/libx11-1.6.12/modules/im/ximcp/imInt.c:186:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(ret, begin, end - begin); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:275:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int namelen = strlen (name) + 1; data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:276: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). int encodinglen = strlen (encoding) + 1; data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:348: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). len = strlen (dir); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:446:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(name) + strlen(encoding) + 2 data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:446: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(name) + strlen(encoding) + 2 data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:479: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). strcpy (m->fname+strlen(name)+1, encoding); data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:519: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). int hl = home ? strlen (home) : 0; data/libx11-1.6.12/modules/im/ximcp/imLcIm.c:585: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). tmpcachedir = cachedir = Xmalloc (hl+strlen(XIM_HOME_CACHE_DIR)+1); data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:86: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). ret = strlen(&mb[b[ic->private.local.composed].mb]); data/libx11-1.6.12/modules/im/ximcp/imLcLkup.c:231: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). ret = strlen(&utf8[b[ic->private.local.composed].utf8]); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:97:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(fp); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:99:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(fp); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:101:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(fp); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:327: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). size_t Hsize = strlen(home); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:338: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). size_t Lsize = strlen(lcCompose); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:349: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). size_t Ssize = strlen(dir); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:380: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). j += strlen(home); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:386:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j += strlen(lcCompose); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:391: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). j += strlen(dir); data/libx11-1.6.12/modules/im/ximcp/imLcPrs.c:576:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(tokenbuf) + 1; data/libx11-1.6.12/modules/im/ximcp/imRm.c:95: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). res_name_len = strlen (im->core.res_name); data/libx11-1.6.12/modules/im/ximcp/imRm.c:104: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). res_class_len = strlen (im->core.res_class); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:340:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(base_name, (char *)&data[1], (size_t)len); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:641: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). ret_len = strlen((char *)value); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:995: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(name_list[i]) + sizeof(char)); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1005:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmp, ","); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1046: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(name_list[i]) + sizeof(char)); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1056:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmp, ","); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1223: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). len += (strlen(name_list[i]) + sizeof(char)); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1233:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmp, ","); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1264: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). len += (strlen(name_list[i]) + sizeof(char)); data/libx11-1.6.12/modules/im/ximcp/imRmAttr.c:1274:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmp, ","); data/libx11-1.6.12/modules/im/ximcp/imTransR.c:165:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!(im->private.proto.read(im, data/libx11-1.6.12/modules/im/ximcp/imTransR.c:188:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!(im->private.proto.read(im, data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:428: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 ( !(*ctr_seq_len = strlen(directionality_data[i].encoding)) ) data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:450: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 ( !(seq_len = strlen(ct_sequence) ) ) data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:475: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). name_len = strlen(encoding_name); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:606: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 (!strlen(charset->name)) data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:920:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int defstr_len = strlen(default_string); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:943:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)outbufptr, default_string, defstr_len); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:975: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). length = strlen(encoding); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:979:25: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)outbufptr, encoding, length); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:1122: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). seq_len = strlen(ct_sequence); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:1127: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). name_len = strlen(charset->encoding_name) + 1; data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:1947:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int defstr_len = strlen(default_string); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:1969:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)outbufptr, default_string, defstr_len); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:2003: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). length = strlen(encoding); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:2008:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)outbufptr, encoding, length); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:2461:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(encoding); data/libx11-1.6.12/modules/lc/gen/lcGenConv.c:2465:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)outbufptr, encoding, length); data/libx11-1.6.12/modules/om/generic/omGeneric.c:426: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). length += strlen(font_set->font_name) + 1; data/libx11-1.6.12/modules/om/generic/omGeneric.c:464: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). font_name_buf += strlen(font_name_buf) + 1; data/libx11-1.6.12/modules/om/generic/omGeneric.c:513: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). if(font_name == (char *) NULL || (len = strlen(font_name)) <= 0 data/libx11-1.6.12/modules/om/generic/omGeneric.c:560:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(str_point, "*"); data/libx11-1.6.12/modules/om/generic/omGeneric.c:566: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). len += 1 + strlen(fields[field_num]); data/libx11-1.6.12/modules/om/generic/omGeneric.c:581:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(rotate_font_ptr, "-"); data/libx11-1.6.12/modules/om/generic/omGeneric.c:599: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). name_len = strlen(font_name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:602: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(font_data->name); data/libx11-1.6.12/modules/om/generic/omGeneric.c:689: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 (pattern); data/libx11-1.6.12/modules/om/generic/omGeneric.c:767: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 ((last - buf) + strlen(font_data->name) > XLFD_MAX_LEN) data/libx11-1.6.12/modules/om/generic/omGeneric.c:1211:5: [1] (buffer) strlen: Does not handle 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(font_set->charset_list[0]->encoding_name) + 1; data/libx11-1.6.12/modules/om/generic/omGeneric.c:1216: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). length += strlen(font_set->substitute->name) + 1; data/libx11-1.6.12/modules/om/generic/omGeneric.c:1219: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). length += strlen(font_set->font_data->name) + 1; data/libx11-1.6.12/modules/om/generic/omGeneric.c:1260:4: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(charset_buf, ""); data/libx11-1.6.12/modules/om/generic/omGeneric.c:1271: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). charset_buf += strlen(charset_buf) + 1; data/libx11-1.6.12/modules/om/generic/omGeneric.c:1829: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(buf); data/libx11-1.6.12/modules/om/generic/omGeneric.c:1836:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(font_data->name, buf,len); data/libx11-1.6.12/modules/om/generic/omGeneric.c:2011: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). length += strlen(data->font_data->name) + 1; data/libx11-1.6.12/modules/om/generic/omGeneric.c:2035: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). bufptr += strlen(bufptr) + 1; data/libx11-1.6.12/modules/om/generic/omXChar.c:85: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). if(name == (char *)NULL || (int) strlen(name) <= 0) data/libx11-1.6.12/src/ErrDes.c:188: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). tlen = strlen (name) + strlen (type) + 2; data/libx11-1.6.12/src/ErrDes.c:188: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). tlen = strlen (name) + strlen (type) + 2; data/libx11-1.6.12/src/ErrDes.c:207:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result.size = (unsigned)strlen(defaultp) + 1; data/libx11-1.6.12/src/ErrDes.c:209:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy (buffer, (char *) result.addr, (size_t)nbytes); data/libx11-1.6.12/src/FSWrap.c:102: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). back = plist[*num] + strlen(plist[*num]); data/libx11-1.6.12/src/FSWrap.c:144:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = length + (int) strlen(*list_src) + 1; data/libx11-1.6.12/src/FSWrap.c:158: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). dst += strlen(dst) + 1; data/libx11-1.6.12/src/Font.c:110: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). nbytes = req->nbytes = (CARD16) (name ? strlen(name) : 0); data/libx11-1.6.12/src/Font.c:665: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). l = (int) strlen(name); data/libx11-1.6.12/src/Font.c:682: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(p + 1) + (size_t) l - 1 >= sizeof(buf) - 1) data/libx11-1.6.12/src/FontInfo.c:64: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). nbytes = req->nbytes = pattern ? (CARD16) strlen (pattern) : 0; data/libx11-1.6.12/src/FontNames.c:57: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). nbytes = req->nbytes = pattern ? (CARD16) strlen (pattern) : 0; data/libx11-1.6.12/src/GetColor.c:86: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). nbytes = req->nbytes = (CARD16) strlen(colorname); data/libx11-1.6.12/src/GetDflt.c:81: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). len1 = strlen (ptr1); data/libx11-1.6.12/src/GetDflt.c:83: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). len1 = strlen (ptr1); data/libx11-1.6.12/src/GetDflt.c:84: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). len2 = strlen (ptr2); data/libx11-1.6.12/src/GetDflt.c:86: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). len1 = strlen (ptr1 = "/users/"); data/libx11-1.6.12/src/GetDflt.c:87: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). len2 = strlen (ptr2); data/libx11-1.6.12/src/GetDflt.c:104:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(dest, ptr, len-1); data/libx11-1.6.12/src/GetDflt.c:112:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(dest, pw->pw_dir, len-1); data/libx11-1.6.12/src/GetDflt.c:144:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void) GetHomeDir (fname, (int) (PATH_MAX - strlen (slashDotXdefaults) - 1)); data/libx11-1.6.12/src/GetDflt.c:155:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void) GetHomeDir (fname, (int) (PATH_MAX - strlen (slashDotXdefaultsDash) - 1)); data/libx11-1.6.12/src/GetDflt.c:157: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). len = (int) strlen (fname); data/libx11-1.6.12/src/GetHints.c:318: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_name = (int) strlen((char *) data); data/libx11-1.6.12/src/GetHints.c:325: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). len_class = (int) strlen((char *) (data+len_name+1)); data/libx11-1.6.12/src/KeysymStr.c:112:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). resval.size = (unsigned)strlen(buf) + 1; data/libx11-1.6.12/src/LoadFont.c:46: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). nbytes = req->nbytes = name ? (CARD16) strlen(name) : 0; data/libx11-1.6.12/src/LookupCol.c:81: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). n = (int) strlen (spec); data/libx11-1.6.12/src/OpenDis.c:336:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(dpy->vendor, u.vendor, (size_t) vendorlen); data/libx11-1.6.12/src/ParseCol.c:49: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). n = (int) strlen (spec); data/libx11-1.6.12/src/ParseCol.c:122: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). req->nbytes = (CARD16) (n = (int) strlen(spec)); data/libx11-1.6.12/src/QuExt.c:45:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). req->nbytes = name ? (CARD16) strlen(name) : 0; data/libx11-1.6.12/src/RdBitF.c:91:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getc(fstream); data/libx11-1.6.12/src/RdBitF.c:143:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(line) == MAX_SIZE-1) data/libx11-1.6.12/src/SetFPath.c:32: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). #define safestrlen(s) ((s) ? strlen(s) : 0) data/libx11-1.6.12/src/SetHints.c:59: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). #define safestrlen(s) ((s) ? strlen(s) : 0) data/libx11-1.6.12/src/SetHints.c:223: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). bp += strlen(argv[i]) + 1; data/libx11-1.6.12/src/SetLocale.c:168: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). start += strlen(STARTSTR); data/libx11-1.6.12/src/SetLocale.c:174:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(siname, start, (size_t) len); data/libx11-1.6.12/src/SetLocale.c:186:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(osname); data/libx11-1.6.12/src/SetLocale.c:189:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(siname, osname, len); data/libx11-1.6.12/src/StNColor.c:79:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). req->nbytes = (CARD16) (nbytes = (unsigned) strlen(name)); data/libx11-1.6.12/src/StName.c:41: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). name ? (int) strlen(name) : 0); data/libx11-1.6.12/src/StName.c:52: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). icon_name ? (int) strlen(icon_name) : 0); data/libx11-1.6.12/src/StrKeysym.c:157:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(s) > 2 && s[0] == '0' && s[1] == 'x') { data/libx11-1.6.12/src/StrKeysym.c:174:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(&tmp[4], &tmp[5], strlen(s) - 5 + 1); data/libx11-1.6.12/src/StrToText.c:52:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nbytes += (unsigned) ((argv[i] ? strlen (argv[i]) : 0) + 1); data/libx11-1.6.12/src/StrToText.c:75: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). buf += (strlen (arg) + 1); data/libx11-1.6.12/src/WMGeom.c:61:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). int umask; /* parse mask of returned values */ data/libx11-1.6.12/src/WMGeom.c:106:18: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). rwidth = ((((umask & WidthValue) ? uwidth : data/libx11-1.6.12/src/WMGeom.c:109:19: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). rheight = ((((umask & HeightValue) ? uheight : data/libx11-1.6.12/src/WMGeom.c:131:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). if (umask & XValue) { data/libx11-1.6.12/src/WMGeom.c:132:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). rx = ((umask & XNegative) ? data/libx11-1.6.12/src/WMGeom.c:144:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). if (umask & YValue) { data/libx11-1.6.12/src/WMGeom.c:145:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). ry = ((umask & YNegative) ? data/libx11-1.6.12/src/WMProps.c:145: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). (unsigned char *)locale, (int) strlen(locale)); data/libx11-1.6.12/src/XlibInt.c:1341:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, ext->name, BUFSIZ); data/libx11-1.6.12/src/XlibInt.c:1711:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (int) strlen (name.nodename); data/libx11-1.6.12/src/XlibInt.c:1713:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (buf, name.nodename, (size_t) len); data/libx11-1.6.12/src/XlibInt.c:1722:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (int) strlen(buf); data/libx11-1.6.12/src/XlibInt.c:1807:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (path) < len_pathbuf) data/libx11-1.6.12/src/XlibInt.c:1810:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *pathret = Xmalloc (strlen (path) + 1); data/libx11-1.6.12/src/XlibInt.c:1843: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 (drive) + strlen (path); data/libx11-1.6.12/src/XlibInt.c:1843: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). len = strlen (drive) + strlen (path); data/libx11-1.6.12/src/XlibInt.c:1857:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (drive) + strlen (path); data/libx11-1.6.12/src/XlibInt.c:1857:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (drive) + strlen (path); data/libx11-1.6.12/src/XlibInt.c:1875: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 = 2 + strlen (path); data/libx11-1.6.12/src/Xrm.c:1050: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). value.size = (unsigned) strlen(str) + 1; data/libx11-1.6.12/src/Xrm.c:1137: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). str_len = strlen (str); data/libx11-1.6.12/src/Xrm.c:1535: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). value.size = (unsigned) strlen(str)+1; data/libx11-1.6.12/src/Xrm.c:1611:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read (fd, filebuf, size); data/libx11-1.6.12/src/Xrm.c:1655:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(realfname, base, (size_t) len); data/libx11-1.6.12/src/Xrm.c:1656:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(realfname + len, fname, (size_t) fnamelen); data/libx11-1.6.12/src/Xrm.c:1659:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(realfname, fname, (size_t) fnamelen); data/libx11-1.6.12/src/os2Stubs.c:71:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strlen(fname)+strlen(root)+2) > 300) data/libx11-1.6.12/src/os2Stubs.c:71:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strlen(fname)+strlen(root)+2) > 300) data/libx11-1.6.12/src/util/makekeys.c:72:9: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. i = sscanf(buf, "#define %127s 0x%lx", key, val); data/libx11-1.6.12/src/util/makekeys.c:77: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). memmove(key, tmp, strlen(tmp) + 1); data/libx11-1.6.12/src/util/makekeys.c:84:9: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. i = sscanf(buf, "#define %127s %127s", key, alias); data/libx11-1.6.12/src/util/makekeys.c:89: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). memmove(key, tmp, strlen(tmp) + 1); data/libx11-1.6.12/src/util/makekeys.c:90:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(tmpa, tmpa + 3, strlen(tmpa + 3) + 1); data/libx11-1.6.12/src/util/makekeys.c:142: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). name = malloc(strlen(prefix) + strlen(key) + 1); data/libx11-1.6.12/src/util/makekeys.c:142: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). name = malloc(strlen(prefix) + strlen(key) + 1); data/libx11-1.6.12/src/xcms/IdOfPr.c:69: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(prefix)) >= sizeof(string_buf)) { data/libx11-1.6.12/src/xcms/LRGB.c:1296: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). n = (int)strlen(spec); data/libx11-1.6.12/src/xcms/cmsAllNCol.c:155: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). nbytes = req->nbytes = (CARD16) strlen(colorname); data/libx11-1.6.12/src/xcms/cmsColNm.c:211:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((len = strlen(color_string)) >= sizeof(string_buf)) { data/libx11-1.6.12/src/xcms/cmsColNm.c:422: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 ((len = (int)strlen(tmpName)) > 63) { data/libx11-1.6.12/src/xcms/cmsColNm.c:512: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). for (i = (int)strlen(pString); i; i--, cptr++) { data/libx11-1.6.12/src/xcms/cmsColNm.c:591:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(f1); data/libx11-1.6.12/src/xcms/cmsColNm.c:602:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen(f2); data/libx11-1.6.12/src/xcms/cmsColNm.c:741: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). length = (int)strlen(pathname); data/libx11-1.6.12/src/xcms/cmsLkCol.c:153: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). req->nbytes = (CARD16)(n = (int)strlen(colorname)); data/libx11-1.6.12/src/xkb/XKB.c:413: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). req->msgLength = (CARD16) (strlen(msg) + 1); data/libx11-1.6.12/src/xkb/XKBCvt.c:180: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(str1) >= sizeof(str)) /* almost certain it's a mismatch */ data/libx11-1.6.12/src/xkb/XKBCvt.c:251: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(locale) >= sizeof(lang)) data/libx11-1.6.12/src/xkb/XKBCvt.c:265:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, charset, 99); data/libx11-1.6.12/src/xkb/XKBCvt.c:275: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). start = _XkbAlloc(strlen(tmp) + 1); data/libx11-1.6.12/src/xkb/XKBCvt.c:304: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). tmp = _XkbAlloc(strlen(_XkbKnownLanguages) + 1); data/libx11-1.6.12/src/xkb/XKBCvt.c:320:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, set, 100); data/libx11-1.6.12/src/xkb/XKBGAlloc.c:697:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(alias->real, realStr, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBGAlloc.c:707:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(alias->alias, aliasStr, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBGAlloc.c:708:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(alias->real, realStr, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBGAlloc.c:928:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key->under.name, under, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBGAlloc.c:929:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key->over.name, over, XkbKeyNameLength); data/libx11-1.6.12/src/xkb/XKBGetByName.c:78: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). mapLen = (int) strlen(names->keymap); data/libx11-1.6.12/src/xkb/XKBGetByName.c:80: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). codesLen = (int) strlen(names->keycodes); data/libx11-1.6.12/src/xkb/XKBGetByName.c:82: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). typesLen = (int) strlen(names->types); data/libx11-1.6.12/src/xkb/XKBGetByName.c:84: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). compatLen = (int) strlen(names->compat); data/libx11-1.6.12/src/xkb/XKBGetByName.c:86: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). symsLen = (int) strlen(names->symbols); data/libx11-1.6.12/src/xkb/XKBGetByName.c:88: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). geomLen = (int) strlen(names->geometry); data/libx11-1.6.12/src/xkb/XKBList.c:126: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). mapLen = (int) strlen(ptrns->keymap); data/libx11-1.6.12/src/xkb/XKBList.c:128:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). codesLen = (int) strlen(ptrns->keycodes); data/libx11-1.6.12/src/xkb/XKBList.c:130:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). typesLen = (int) strlen(ptrns->types); data/libx11-1.6.12/src/xkb/XKBList.c:132: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). compatLen = (int) strlen(ptrns->compat); data/libx11-1.6.12/src/xkb/XKBList.c:134: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). symsLen = (int) strlen(ptrns->symbols); data/libx11-1.6.12/src/xkb/XKBList.c:136: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). geomLen = (int) strlen(ptrns->geometry); data/libx11-1.6.12/src/xkb/XKBSetGeom.c:48:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define _SizeCountedString(s) ((s)?XkbPaddedSize(2+strlen(s)):4) data/libx11-1.6.12/src/xkb/XKBSetGeom.c:55:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (CARD16) (str ? strlen(str) : 0); data/libx11-1.6.12/src/xkb/XKBUse.c:691:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(str) > 0) data/libx11-1.6.12/src/xlibi18n/XDefaultIMIF.c:198: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). mod += strlen(MODIFIER); data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c:167:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name_len = (ssize_t) strlen(font_name); data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c:174: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). length = (ssize_t) strlen(font_data->name); data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c:373:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, pattern, BUFSIZ); data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c:375: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). length = (ssize_t) strlen(buf); data/libx11-1.6.12/src/xlibi18n/XDefaultOMIF.c:424:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(last, font_data->name, (size_t) (BUFSIZ - length)); data/libx11-1.6.12/src/xlibi18n/XimintP.h:147:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). XimTransReadProc read; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:153:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((result = malloc(strlen(symbol) + 2)) == NULL) data/libx11-1.6.12/src/xlibi18n/XlcDL.c:262: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). len = (lc_dir ? strlen(lc_dir) : 0 ) + data/libx11-1.6.12/src/xlibi18n/XlcDL.c:263: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). (dl_name ? strlen(dl_name) : 0) + 10; data/libx11-1.6.12/src/xlibi18n/XlcDL.c:265: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). len += (strlen(POSTLOCALELIBDIR) + 1); data/libx11-1.6.12/src/xlibi18n/lcCT.c:326: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). length = (int) strlen(ptr); data/libx11-1.6.12/src/xlibi18n/lcCT.c:480: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). length = (int) strlen(ct_sequence); data/libx11-1.6.12/src/xlibi18n/lcCT.c:509: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). int n = (int) strlen(q); data/libx11-1.6.12/src/xlibi18n/lcCT.c:902: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). length = (int) strlen(ct_info->ct_sequence); data/libx11-1.6.12/src/xlibi18n/lcCharSet.c:183: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). name_len = strlen(name); data/libx11-1.6.12/src/xlibi18n/lcCharSet.c:184: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). ct_sequence_len = strlen(ct_sequence); data/libx11-1.6.12/src/xlibi18n/lcDB.c:280: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). int len = strlen(str); data/libx11-1.6.12/src/xlibi18n/lcDB.c:298:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (int) strlen(p); data/libx11-1.6.12/src/xlibi18n/lcDB.c:330: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). len = (int) strlen(p); data/libx11-1.6.12/src/xlibi18n/lcDB.c:344:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str + cur, p, (size_t) len); data/libx11-1.6.12/src/xlibi18n/lcDB.c:426:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(w, p, (size_t) token_len); data/libx11-1.6.12/src/xlibi18n/lcDB.c:461:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(w, p, (size_t) token_len); data/libx11-1.6.12/src/xlibi18n/lcDB.c:530:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, str, (size_t) len); data/libx11-1.6.12/src/xlibi18n/lcDB.c:564: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). len = (int) ((size_t) len + (strlen(parse_info.name[i]) + 1)); data/libx11-1.6.12/src/xlibi18n/lcDB.c:570: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). p += strlen(parse_info.name[0]); data/libx11-1.6.12/src/xlibi18n/lcDB.c:574:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(parse_info.name[i]); data/libx11-1.6.12/src/xlibi18n/lcDB.c:668:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (int) strlen(parse_info.category); data/libx11-1.6.12/src/xlibi18n/lcDB.c:819: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 ((len = (int) strlen (str)) < sizeof word) data/libx11-1.6.12/src/xlibi18n/lcDB.c:836:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((parse_info.bufsize + (int)strlen(wordp) + 1) data/libx11-1.6.12/src/xlibi18n/lcDB.c:838:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (realloc_parse_info((int) strlen(wordp)+1) == False) { data/libx11-1.6.12/src/xlibi18n/lcDB.c:843: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). parse_info.bufsize = (int) ((size_t) parse_info.bufsize + strlen(wordp)); data/libx11-1.6.12/src/xlibi18n/lcDB.c:880: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 ((len = (int) strlen (str)) < sizeof word) data/libx11-1.6.12/src/xlibi18n/lcDB.c:898: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). if ((parse_info.bufsize + token_len + (int)strlen(wordp) + 1) data/libx11-1.6.12/src/xlibi18n/lcDB.c:900:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (realloc_parse_info((int)((size_t) token_len + strlen(wordp) + 1)) == False) data/libx11-1.6.12/src/xlibi18n/lcDB.c:903:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&parse_info.buf[parse_info.bufsize], str, (size_t) token_len); data/libx11-1.6.12/src/xlibi18n/lcDB.c:905:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). parse_info.bufsize = (int) ((size_t) parse_info.bufsize + ((size_t) token_len + strlen(wordp))); data/libx11-1.6.12/src/xlibi18n/lcDB.c:931: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 ((len = (int) strlen (str)) < sizeof word) data/libx11-1.6.12/src/xlibi18n/lcDB.c:958: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 = (int) strlen(str); data/libx11-1.6.12/src/xlibi18n/lcDB.c:973:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((parse_info.bufsize + (int)strlen(wordp) + 1) data/libx11-1.6.12/src/xlibi18n/lcDB.c:975:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (realloc_parse_info((int) strlen(wordp) + 1) == False) data/libx11-1.6.12/src/xlibi18n/lcDB.c:979: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). parse_info.bufsize = (int) ((size_t) parse_info.bufsize + strlen(wordp)); data/libx11-1.6.12/src/xlibi18n/lcFile.c:185: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). len = (int) strlen(p); data/libx11-1.6.12/src/xlibi18n/lcFile.c:257: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). len = (int) strlen(dir); data/libx11-1.6.12/src/xlibi18n/lcFile.c:258:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, dir, (size_t) buf_len); data/libx11-1.6.12/src/xlibi18n/lcFile.c:269:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, XLOCALEDIR, (size_t) (buf_len - len)); data/libx11-1.6.12/src/xlibi18n/lcFile.c:271:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p,__XOS2RedirRoot(XLOCALEDIR), buf_len - len); data/libx11-1.6.12/src/xlibi18n/lcFile.c:335: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). len = (int) strlen(dir); data/libx11-1.6.12/src/xlibi18n/lcFile.c:336:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, dir, (size_t) buf_len); data/libx11-1.6.12/src/xlibi18n/lcFile.c:347:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, XLOCALELIBDIR, (size_t) (buf_len - len)); data/libx11-1.6.12/src/xlibi18n/lcFile.c:349:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p,__XOS2RedirRoot(XLOCALELIBDIR), (size_t) (buf_len - len)); data/libx11-1.6.12/src/xlibi18n/lcFile.c:380:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(p); data/libx11-1.6.12/src/xlibi18n/lcFile.c:440: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). p = ret = Xmalloc(strlen(name) + 1); data/libx11-1.6.12/src/xlibi18n/lcFile.c:566: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). sinamelen = (int) strlen (pub->siname); data/libx11-1.6.12/src/xlibi18n/lcFile.c:687: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). last_dir_len = strlen (dir_name) + 1; data/libx11-1.6.12/src/xlibi18n/lcFile.c:764: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). last_dir_len = strlen (dir_name) + 1; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:439:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cset_name,value[0], sizeof cset_name - 1); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:507: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). tmp = Xmalloc(strlen(value[0])+1); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:649: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). cset_len = strlen(ret->name) + 1; data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:799:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (int) strlen(shifts[j].str))) { data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:801: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). tmp += strlen(shifts[j].str); data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:805:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (tmp) > sizeof encoding || data/libx11-1.6.12/src/xlibi18n/lcGeneric.c:832:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (*value) > sizeof name) data/libx11-1.6.12/src/xlibi18n/lcPrTxt.c:103: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). length = (int) strlen(str) + 1; data/libx11-1.6.12/src/xlibi18n/lcPrTxt.c:189:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(to, from, (size_t) len); data/libx11-1.6.12/src/xlibi18n/lcPublic.c:222: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 ((len = (int) strlen(name)) < sizeof sinamebuf) data/libx11-1.6.12/src/xlibi18n/lcStd.c:142: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). from_left = (int) strlen(str); data/libx11-1.6.12/src/xlibi18n/lcStd.c:334: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). from_left = (int) strlen(str); data/libx11-1.6.12/src/xlibi18n/lcTxtPr.c:59: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). length = (int) ((size_t) length + (strlen(*mb_list) + 1)); data/libx11-1.6.12/src/xlibi18n/lcTxtPr.c:121: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). from_left = (int) (*mb_list ? strlen(*mb_list) : 0) + 1; data/libx11-1.6.12/src/xlibi18n/lcTxtPr.c:164: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). from_left = (int) (*mb_list ? strlen(*mb_list) : 0); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:68: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). char* s = malloc(strlen(c_charsetname)+strlen(".h")+1); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:68: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). char* s = malloc(strlen(c_charsetname)+strlen(".h")+1); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:78:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(stdin); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:85:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(stdin); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:91:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do { c = getc(stdin); } while (!(c == EOF || c == '\n')); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:97:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do { c = getc(stdin); } while (c == ' ' || c == '\t'); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:123:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* fname = malloc(strlen(directory)+strlen(filename)+1); data/libx11-1.6.12/src/xlibi18n/lcUniConv/8bit_tab_to_h.c:123:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* fname = malloc(strlen(directory)+strlen(filename)+1); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:81:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(stdin); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:86:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(stdin); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:92:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do { c = getc(stdin); } while (!(c == EOF || c == '\n')); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:775:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(stdin); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:780:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(stdin); data/libx11-1.6.12/src/xlibi18n/lcUniConv/cjk_tab_to_h.c:786:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do { c = getc(stdin); } while (!(c == EOF || c == '\n')); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:114: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). i = (int) strlen(*ptr); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:144: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). i = (int) strlen(prog_mods) + 1; data/libx11-1.6.12/src/xlibi18n/lcWrap.c:146:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = (int) ((size_t) i + strlen(user_mods)); data/libx11-1.6.12/src/xlibi18n/lcWrap.c:265:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((len = (int) strlen(name)) >= sizeof sinamebuf) { ANALYSIS SUMMARY: Hits = 1025 Lines analyzed = 153528 in approximately 6.13 seconds (25061 lines/second) Physical Source Lines of Code (SLOC) = 113858 Hits@level = [0] 490 [1] 304 [2] 578 [3] 43 [4] 100 [5] 0 Hits@level+ = [0+] 1515 [1+] 1025 [2+] 721 [3+] 143 [4+] 100 [5+] 0 Hits/KSLOC@level+ = [0+] 13.306 [1+] 9.00244 [2+] 6.33245 [3+] 1.25595 [4+] 0.878287 [5+] 0 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.