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/fltk1.1-1.1.10/borlandc/config.h Examining data/fltk1.1-1.1.10/CMake/PlatformTests.cxx Examining data/fltk1.1-1.1.10/FL/dirent.h Examining data/fltk1.1-1.1.10/FL/Enumerations.H Examining data/fltk1.1-1.1.10/FL/filename.H Examining data/fltk1.1-1.1.10/FL/Fl.H Examining data/fltk1.1-1.1.10/FL/Fl_Adjuster.H Examining data/fltk1.1-1.1.10/FL/fl_ask.H Examining data/fltk1.1-1.1.10/FL/Fl_Bitmap.H Examining data/fltk1.1-1.1.10/FL/Fl_BMP_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_Box.H Examining data/fltk1.1-1.1.10/FL/Fl_Browser.H Examining data/fltk1.1-1.1.10/FL/Fl_Browser_.H Examining data/fltk1.1-1.1.10/FL/Fl_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Chart.H Examining data/fltk1.1-1.1.10/FL/Fl_Check_Browser.H Examining data/fltk1.1-1.1.10/FL/Fl_Check_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Choice.H Examining data/fltk1.1-1.1.10/FL/Fl_Clock.H Examining data/fltk1.1-1.1.10/FL/Fl_Color_Chooser.H Examining data/fltk1.1-1.1.10/FL/Fl_Counter.H Examining data/fltk1.1-1.1.10/FL/Fl_Dial.H Examining data/fltk1.1-1.1.10/FL/Fl_Double_Window.H Examining data/fltk1.1-1.1.10/FL/fl_draw.H Examining data/fltk1.1-1.1.10/FL/Fl_Export.H Examining data/fltk1.1-1.1.10/FL/Fl_File_Browser.H Examining data/fltk1.1-1.1.10/FL/Fl_File_Chooser.H Examining data/fltk1.1-1.1.10/FL/Fl_File_Icon.H Examining data/fltk1.1-1.1.10/FL/Fl_File_Input.H Examining data/fltk1.1-1.1.10/FL/Fl_Fill_Dial.H Examining data/fltk1.1-1.1.10/FL/Fl_Fill_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Float_Input.H Examining data/fltk1.1-1.1.10/FL/Fl_FormsBitmap.H Examining data/fltk1.1-1.1.10/FL/Fl_FormsPixmap.H Examining data/fltk1.1-1.1.10/FL/Fl_Free.H Examining data/fltk1.1-1.1.10/FL/Fl_GIF_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_Gl_Window.H Examining data/fltk1.1-1.1.10/FL/Fl_Group.H Examining data/fltk1.1-1.1.10/FL/Fl_Help_Dialog.H Examining data/fltk1.1-1.1.10/FL/Fl_Help_View.H Examining data/fltk1.1-1.1.10/FL/Fl_Hold_Browser.H Examining data/fltk1.1-1.1.10/FL/Fl_Hor_Fill_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Hor_Nice_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Hor_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Hor_Value_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_Input.H Examining data/fltk1.1-1.1.10/FL/Fl_Input_.H Examining data/fltk1.1-1.1.10/FL/Fl_Input_Choice.H Examining data/fltk1.1-1.1.10/FL/Fl_Int_Input.H Examining data/fltk1.1-1.1.10/FL/Fl_JPEG_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_Light_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Line_Dial.H Examining data/fltk1.1-1.1.10/FL/Fl_Menu.H Examining data/fltk1.1-1.1.10/FL/Fl_Menu_.H Examining data/fltk1.1-1.1.10/FL/Fl_Menu_Bar.H Examining data/fltk1.1-1.1.10/FL/Fl_Menu_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Menu_Item.H Examining data/fltk1.1-1.1.10/FL/Fl_Menu_Window.H Examining data/fltk1.1-1.1.10/FL/fl_message.H Examining data/fltk1.1-1.1.10/FL/Fl_Multi_Browser.H Examining data/fltk1.1-1.1.10/FL/Fl_Multi_Label.H Examining data/fltk1.1-1.1.10/FL/Fl_Multiline_Input.H Examining data/fltk1.1-1.1.10/FL/Fl_Multiline_Output.H Examining data/fltk1.1-1.1.10/FL/Fl_Nice_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Object.H Examining data/fltk1.1-1.1.10/FL/Fl_Output.H Examining data/fltk1.1-1.1.10/FL/Fl_Overlay_Window.H Examining data/fltk1.1-1.1.10/FL/Fl_Pack.H Examining data/fltk1.1-1.1.10/FL/Fl_Pixmap.H Examining data/fltk1.1-1.1.10/FL/Fl_PNG_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_PNM_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_Positioner.H Examining data/fltk1.1-1.1.10/FL/Fl_Preferences.H Examining data/fltk1.1-1.1.10/FL/Fl_Progress.H Examining data/fltk1.1-1.1.10/FL/Fl_Radio_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Radio_Light_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Radio_Round_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Repeat_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Return_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_RGB_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_Roller.H Examining data/fltk1.1-1.1.10/FL/Fl_Round_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Round_Clock.H Examining data/fltk1.1-1.1.10/FL/Fl_Scroll.H Examining data/fltk1.1-1.1.10/FL/Fl_Scrollbar.H Examining data/fltk1.1-1.1.10/FL/Fl_Secret_Input.H Examining data/fltk1.1-1.1.10/FL/Fl_Select_Browser.H Examining data/fltk1.1-1.1.10/FL/Fl_Shared_Image.H Examining data/fltk1.1-1.1.10/FL/fl_show_colormap.H Examining data/fltk1.1-1.1.10/FL/fl_show_input.H Examining data/fltk1.1-1.1.10/FL/Fl_Simple_Counter.H Examining data/fltk1.1-1.1.10/FL/Fl_Single_Window.H Examining data/fltk1.1-1.1.10/FL/Fl_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Spinner.H Examining data/fltk1.1-1.1.10/FL/Fl_Sys_Menu_Bar.H Examining data/fltk1.1-1.1.10/FL/Fl_Tabs.H Examining data/fltk1.1-1.1.10/FL/Fl_Text_Buffer.H Examining data/fltk1.1-1.1.10/FL/Fl_Text_Display.H Examining data/fltk1.1-1.1.10/FL/Fl_Text_Editor.H Examining data/fltk1.1-1.1.10/FL/Fl_Tile.H Examining data/fltk1.1-1.1.10/FL/Fl_Tiled_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_Timer.H Examining data/fltk1.1-1.1.10/FL/Fl_Toggle_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Toggle_Light_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Toggle_Round_Button.H Examining data/fltk1.1-1.1.10/FL/Fl_Tooltip.H Examining data/fltk1.1-1.1.10/FL/Fl_Valuator.H Examining data/fltk1.1-1.1.10/FL/Fl_Value_Input.H Examining data/fltk1.1-1.1.10/FL/Fl_Value_Output.H Examining data/fltk1.1-1.1.10/FL/Fl_Value_Slider.H Examining data/fltk1.1-1.1.10/FL/Fl_Widget.H Examining data/fltk1.1-1.1.10/FL/Fl_Window.H Examining data/fltk1.1-1.1.10/FL/Fl_Wizard.H Examining data/fltk1.1-1.1.10/FL/Fl_XBM_Image.H Examining data/fltk1.1-1.1.10/FL/Fl_XPM_Image.H Examining data/fltk1.1-1.1.10/FL/gl.h Examining data/fltk1.1-1.1.10/FL/gl2opengl.h Examining data/fltk1.1-1.1.10/FL/gl_draw.H Examining data/fltk1.1-1.1.10/FL/glu.h Examining data/fltk1.1-1.1.10/FL/glut.H Examining data/fltk1.1-1.1.10/FL/mac.H Examining data/fltk1.1-1.1.10/FL/math.h Examining data/fltk1.1-1.1.10/FL/names.h Examining data/fltk1.1-1.1.10/FL/win32.H Examining data/fltk1.1-1.1.10/FL/forms.H Examining data/fltk1.1-1.1.10/FL/x.H Examining data/fltk1.1-1.1.10/fluid/about_panel.cxx Examining data/fltk1.1-1.1.10/fluid/about_panel.h Examining data/fltk1.1-1.1.10/fluid/align_widget.cxx Examining data/fltk1.1-1.1.10/fluid/alignment_panel.cxx Examining data/fltk1.1-1.1.10/fluid/alignment_panel.h Examining data/fltk1.1-1.1.10/fluid/code.cxx Examining data/fltk1.1-1.1.10/fluid/CodeEditor.cxx Examining data/fltk1.1-1.1.10/fluid/CodeEditor.h Examining data/fltk1.1-1.1.10/fluid/comments.h Examining data/fltk1.1-1.1.10/fluid/factory.cxx Examining data/fltk1.1-1.1.10/fluid/Fl_Group_Type.cxx Examining data/fltk1.1-1.1.10/fluid/Fl_Menu_Type.cxx Examining data/fltk1.1-1.1.10/fluid/Fl_Type.cxx Examining data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx Examining data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.h Examining data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx Examining data/fltk1.1-1.1.10/fluid/fluid.cxx Examining data/fltk1.1-1.1.10/fluid/Fluid_Image.cxx Examining data/fltk1.1-1.1.10/fluid/Fluid_Image.h Examining data/fltk1.1-1.1.10/fluid/function_panel.cxx Examining data/fltk1.1-1.1.10/fluid/function_panel.h Examining data/fltk1.1-1.1.10/fluid/print_panel.cxx Examining data/fltk1.1-1.1.10/fluid/print_panel.h Examining data/fltk1.1-1.1.10/fluid/Shortcut_Button.h Examining data/fltk1.1-1.1.10/fluid/template_panel.cxx Examining data/fltk1.1-1.1.10/fluid/template_panel.h Examining data/fltk1.1-1.1.10/fluid/undo.cxx Examining data/fltk1.1-1.1.10/fluid/undo.h Examining data/fltk1.1-1.1.10/fluid/widget_panel.cxx Examining data/fltk1.1-1.1.10/fluid/widget_panel.h Examining data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx Examining data/fltk1.1-1.1.10/fluid/Fl_Type.h Examining data/fltk1.1-1.1.10/fluid/file.cxx Examining data/fltk1.1-1.1.10/forms.h Examining data/fltk1.1-1.1.10/jpeg/jcapimin.c Examining data/fltk1.1-1.1.10/jpeg/jcapistd.c Examining data/fltk1.1-1.1.10/jpeg/jccoefct.c Examining data/fltk1.1-1.1.10/jpeg/jccolor.c Examining data/fltk1.1-1.1.10/jpeg/jcdctmgr.c Examining data/fltk1.1-1.1.10/jpeg/jchuff.c Examining data/fltk1.1-1.1.10/jpeg/jchuff.h Examining data/fltk1.1-1.1.10/jpeg/jcinit.c Examining data/fltk1.1-1.1.10/jpeg/jcmainct.c Examining data/fltk1.1-1.1.10/jpeg/jcmarker.c Examining data/fltk1.1-1.1.10/jpeg/jcmaster.c Examining data/fltk1.1-1.1.10/jpeg/jcomapi.c Examining data/fltk1.1-1.1.10/jpeg/jconfig.h Examining data/fltk1.1-1.1.10/jpeg/jcparam.c Examining data/fltk1.1-1.1.10/jpeg/jcphuff.c Examining data/fltk1.1-1.1.10/jpeg/jcprepct.c Examining data/fltk1.1-1.1.10/jpeg/jcsample.c Examining data/fltk1.1-1.1.10/jpeg/jctrans.c Examining data/fltk1.1-1.1.10/jpeg/jdapimin.c Examining data/fltk1.1-1.1.10/jpeg/jdapistd.c Examining data/fltk1.1-1.1.10/jpeg/jdatadst.c Examining data/fltk1.1-1.1.10/jpeg/jdatasrc.c Examining data/fltk1.1-1.1.10/jpeg/jdcoefct.c Examining data/fltk1.1-1.1.10/jpeg/jdcolor.c Examining data/fltk1.1-1.1.10/jpeg/jdct.h Examining data/fltk1.1-1.1.10/jpeg/jddctmgr.c Examining data/fltk1.1-1.1.10/jpeg/jdhuff.c Examining data/fltk1.1-1.1.10/jpeg/jdhuff.h Examining data/fltk1.1-1.1.10/jpeg/jdinput.c Examining data/fltk1.1-1.1.10/jpeg/jdmainct.c Examining data/fltk1.1-1.1.10/jpeg/jdmarker.c Examining data/fltk1.1-1.1.10/jpeg/jdmaster.c Examining data/fltk1.1-1.1.10/jpeg/jdmerge.c Examining data/fltk1.1-1.1.10/jpeg/jdphuff.c Examining data/fltk1.1-1.1.10/jpeg/jdpostct.c Examining data/fltk1.1-1.1.10/jpeg/jdsample.c Examining data/fltk1.1-1.1.10/jpeg/jdtrans.c Examining data/fltk1.1-1.1.10/jpeg/jerror.c Examining data/fltk1.1-1.1.10/jpeg/jerror.h Examining data/fltk1.1-1.1.10/jpeg/jfdctflt.c Examining data/fltk1.1-1.1.10/jpeg/jfdctfst.c Examining data/fltk1.1-1.1.10/jpeg/jfdctint.c Examining data/fltk1.1-1.1.10/jpeg/jidctflt.c Examining data/fltk1.1-1.1.10/jpeg/jidctfst.c Examining data/fltk1.1-1.1.10/jpeg/jidctint.c Examining data/fltk1.1-1.1.10/jpeg/jidctred.c Examining data/fltk1.1-1.1.10/jpeg/jinclude.h Examining data/fltk1.1-1.1.10/jpeg/jmemmgr.c Examining data/fltk1.1-1.1.10/jpeg/jmemnobs.c Examining data/fltk1.1-1.1.10/jpeg/jmemsys.h Examining data/fltk1.1-1.1.10/jpeg/jmorecfg.h Examining data/fltk1.1-1.1.10/jpeg/jpegint.h Examining data/fltk1.1-1.1.10/jpeg/jpeglib.h Examining data/fltk1.1-1.1.10/jpeg/jquant1.c Examining data/fltk1.1-1.1.10/jpeg/jquant2.c Examining data/fltk1.1-1.1.10/jpeg/jutils.c Examining data/fltk1.1-1.1.10/jpeg/jversion.h Examining data/fltk1.1-1.1.10/png/png.c Examining data/fltk1.1-1.1.10/png/png.h Examining data/fltk1.1-1.1.10/png/pngconf.h Examining data/fltk1.1-1.1.10/png/pngerror.c Examining data/fltk1.1-1.1.10/png/pngget.c Examining data/fltk1.1-1.1.10/png/pngmem.c Examining data/fltk1.1-1.1.10/png/pngpread.c Examining data/fltk1.1-1.1.10/png/pngread.c Examining data/fltk1.1-1.1.10/png/pngrio.c Examining data/fltk1.1-1.1.10/png/pngrtran.c Examining data/fltk1.1-1.1.10/png/pngrutil.c Examining data/fltk1.1-1.1.10/png/pngset.c Examining data/fltk1.1-1.1.10/png/pngtrans.c Examining data/fltk1.1-1.1.10/png/pngwio.c Examining data/fltk1.1-1.1.10/png/pngwrite.c Examining data/fltk1.1-1.1.10/png/pngwtran.c Examining data/fltk1.1-1.1.10/png/pngwutil.c Examining data/fltk1.1-1.1.10/src/cgdebug.h Examining data/fltk1.1-1.1.10/src/cmap.cxx Examining data/fltk1.1-1.1.10/src/dump_compose.c Examining data/fltk1.1-1.1.10/src/fastarrow.h Examining data/fltk1.1-1.1.10/src/filename_absolute.cxx Examining data/fltk1.1-1.1.10/src/filename_expand.cxx Examining data/fltk1.1-1.1.10/src/filename_ext.cxx Examining data/fltk1.1-1.1.10/src/filename_isdir.cxx Examining data/fltk1.1-1.1.10/src/filename_list.cxx Examining data/fltk1.1-1.1.10/src/filename_match.cxx Examining data/fltk1.1-1.1.10/src/filename_setext.cxx Examining data/fltk1.1-1.1.10/src/Fl.cxx Examining data/fltk1.1-1.1.10/src/Fl_abort.cxx Examining data/fltk1.1-1.1.10/src/Fl_add_idle.cxx Examining data/fltk1.1-1.1.10/src/Fl_Adjuster.cxx Examining data/fltk1.1-1.1.10/src/fl_arc.cxx Examining data/fltk1.1-1.1.10/src/fl_arci.cxx Examining data/fltk1.1-1.1.10/src/Fl_arg.cxx Examining data/fltk1.1-1.1.10/src/fl_ask.cxx Examining data/fltk1.1-1.1.10/src/Fl_Bitmap.cxx Examining data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx Examining data/fltk1.1-1.1.10/src/Fl_Box.cxx Examining data/fltk1.1-1.1.10/src/fl_boxtype.cxx Examining data/fltk1.1-1.1.10/src/Fl_Browser.cxx Examining data/fltk1.1-1.1.10/src/Fl_Browser_.cxx Examining data/fltk1.1-1.1.10/src/Fl_Browser_load.cxx Examining data/fltk1.1-1.1.10/src/Fl_Button.cxx Examining data/fltk1.1-1.1.10/src/fl_call_main.c Examining data/fltk1.1-1.1.10/src/Fl_Chart.cxx Examining data/fltk1.1-1.1.10/src/Fl_Check_Browser.cxx Examining data/fltk1.1-1.1.10/src/Fl_Check_Button.cxx Examining data/fltk1.1-1.1.10/src/Fl_Choice.cxx Examining data/fltk1.1-1.1.10/src/Fl_Clock.cxx Examining data/fltk1.1-1.1.10/src/fl_cmap.h Examining data/fltk1.1-1.1.10/src/fl_color.cxx Examining data/fltk1.1-1.1.10/src/Fl_Color_Chooser.cxx Examining data/fltk1.1-1.1.10/src/fl_color_mac.cxx Examining data/fltk1.1-1.1.10/src/fl_color_win32.cxx Examining data/fltk1.1-1.1.10/src/Fl_compose.cxx Examining data/fltk1.1-1.1.10/src/Fl_Counter.cxx Examining data/fltk1.1-1.1.10/src/fl_cursor.cxx Examining data/fltk1.1-1.1.10/src/fl_curve.cxx Examining data/fltk1.1-1.1.10/src/Fl_Dial.cxx Examining data/fltk1.1-1.1.10/src/fl_diamond_box.cxx Examining data/fltk1.1-1.1.10/src/Fl_display.cxx Examining data/fltk1.1-1.1.10/src/fl_dnd.cxx Examining data/fltk1.1-1.1.10/src/fl_dnd_mac.cxx Examining data/fltk1.1-1.1.10/src/fl_dnd_win32.cxx Examining data/fltk1.1-1.1.10/src/fl_dnd_x.cxx Examining data/fltk1.1-1.1.10/src/Fl_Double_Window.cxx Examining data/fltk1.1-1.1.10/src/fl_draw_image.cxx Examining data/fltk1.1-1.1.10/src/fl_draw_image_mac.cxx Examining data/fltk1.1-1.1.10/src/fl_draw_image_win32.cxx Examining data/fltk1.1-1.1.10/src/fl_draw_pixmap.cxx Examining data/fltk1.1-1.1.10/src/fl_encoding_latin1.cxx Examining data/fltk1.1-1.1.10/src/fl_encoding_mac_roman.cxx Examining data/fltk1.1-1.1.10/src/fl_engraved_label.cxx Examining data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx Examining data/fltk1.1-1.1.10/src/Fl_File_Chooser.cxx Examining data/fltk1.1-1.1.10/src/fl_file_dir.cxx Examining data/fltk1.1-1.1.10/src/Fl_File_Icon.cxx Examining data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx Examining data/fltk1.1-1.1.10/src/Fl_File_Input.cxx Examining data/fltk1.1-1.1.10/src/fl_font.cxx Examining data/fltk1.1-1.1.10/src/Fl_Font.H Examining data/fltk1.1-1.1.10/src/fl_font_mac.cxx Examining data/fltk1.1-1.1.10/src/fl_font_win32.cxx Examining data/fltk1.1-1.1.10/src/fl_font_x.cxx Examining data/fltk1.1-1.1.10/src/Fl_get_key.cxx Examining data/fltk1.1-1.1.10/src/Fl_get_key_mac.cxx Examining data/fltk1.1-1.1.10/src/Fl_get_key_win32.cxx Examining data/fltk1.1-1.1.10/src/Fl_get_system_colors.cxx Examining data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx Examining data/fltk1.1-1.1.10/src/Fl_Gl_Choice.cxx Examining data/fltk1.1-1.1.10/src/Fl_Gl_Choice.H Examining data/fltk1.1-1.1.10/src/Fl_Gl_Overlay.cxx Examining data/fltk1.1-1.1.10/src/Fl_Gl_Window.cxx Examining data/fltk1.1-1.1.10/src/Fl_grab.cxx Examining data/fltk1.1-1.1.10/src/Fl_Group.cxx Examining data/fltk1.1-1.1.10/src/fl_gtk.cxx Examining data/fltk1.1-1.1.10/src/Fl_Help_Dialog.cxx Examining data/fltk1.1-1.1.10/src/Fl_Help_View.cxx Examining data/fltk1.1-1.1.10/src/Fl_Image.cxx Examining data/fltk1.1-1.1.10/src/fl_images_core.cxx Examining data/fltk1.1-1.1.10/src/Fl_Input.cxx Examining data/fltk1.1-1.1.10/src/Fl_Input_.cxx Examining data/fltk1.1-1.1.10/src/Fl_JPEG_Image.cxx Examining data/fltk1.1-1.1.10/src/fl_labeltype.cxx Examining data/fltk1.1-1.1.10/src/Fl_Light_Button.cxx Examining data/fltk1.1-1.1.10/src/fl_line_style.cxx Examining data/fltk1.1-1.1.10/src/Fl_lock.cxx Examining data/fltk1.1-1.1.10/src/Fl_mac.cxx Examining data/fltk1.1-1.1.10/src/Fl_Menu.cxx Examining data/fltk1.1-1.1.10/src/Fl_Menu_.cxx Examining data/fltk1.1-1.1.10/src/Fl_Menu_add.cxx Examining data/fltk1.1-1.1.10/src/Fl_Menu_Bar.cxx Examining data/fltk1.1-1.1.10/src/Fl_Menu_Button.cxx Examining data/fltk1.1-1.1.10/src/Fl_Menu_global.cxx Examining data/fltk1.1-1.1.10/src/Fl_Menu_Window.cxx Examining data/fltk1.1-1.1.10/src/Fl_Multi_Label.cxx Examining data/fltk1.1-1.1.10/src/fl_open_uri.cxx Examining data/fltk1.1-1.1.10/src/fl_oval_box.cxx Examining data/fltk1.1-1.1.10/src/fl_overlay.cxx Examining data/fltk1.1-1.1.10/src/fl_overlay_visual.cxx Examining data/fltk1.1-1.1.10/src/Fl_Overlay_Window.cxx Examining data/fltk1.1-1.1.10/src/Fl_own_colormap.cxx Examining data/fltk1.1-1.1.10/src/Fl_Pack.cxx Examining data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx Examining data/fltk1.1-1.1.10/src/fl_plastic.cxx Examining data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx Examining data/fltk1.1-1.1.10/src/Fl_Positioner.cxx Examining data/fltk1.1-1.1.10/src/Fl_Preferences.cxx Examining data/fltk1.1-1.1.10/src/Fl_Progress.cxx Examining data/fltk1.1-1.1.10/src/fl_read_image.cxx Examining data/fltk1.1-1.1.10/src/fl_read_image_mac.cxx Examining data/fltk1.1-1.1.10/src/fl_read_image_win32.cxx Examining data/fltk1.1-1.1.10/src/fl_rect.cxx Examining data/fltk1.1-1.1.10/src/Fl_Repeat_Button.cxx Examining data/fltk1.1-1.1.10/src/Fl_Return_Button.cxx Examining data/fltk1.1-1.1.10/src/Fl_Roller.cxx Examining data/fltk1.1-1.1.10/src/fl_round_box.cxx Examining data/fltk1.1-1.1.10/src/Fl_Round_Button.cxx Examining data/fltk1.1-1.1.10/src/fl_rounded_box.cxx Examining data/fltk1.1-1.1.10/src/Fl_Scroll.cxx Examining data/fltk1.1-1.1.10/src/fl_scroll_area.cxx Examining data/fltk1.1-1.1.10/src/Fl_Scrollbar.cxx Examining data/fltk1.1-1.1.10/src/fl_set_font.cxx Examining data/fltk1.1-1.1.10/src/fl_set_fonts.cxx Examining data/fltk1.1-1.1.10/src/fl_set_fonts_mac.cxx Examining data/fltk1.1-1.1.10/src/fl_set_fonts_win32.cxx Examining data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx Examining data/fltk1.1-1.1.10/src/fl_set_fonts_xft.cxx Examining data/fltk1.1-1.1.10/src/fl_shadow_box.cxx Examining data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx Examining data/fltk1.1-1.1.10/src/fl_shortcut.cxx Examining data/fltk1.1-1.1.10/src/fl_show_colormap.cxx Examining data/fltk1.1-1.1.10/src/Fl_Single_Window.cxx Examining data/fltk1.1-1.1.10/src/Fl_Slider.cxx Examining data/fltk1.1-1.1.10/src/fl_symbols.cxx Examining data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx Examining data/fltk1.1-1.1.10/src/Fl_Tabs.cxx Examining data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx Examining data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx Examining data/fltk1.1-1.1.10/src/Fl_Text_Editor.cxx Examining data/fltk1.1-1.1.10/src/Fl_Tile.cxx Examining data/fltk1.1-1.1.10/src/Fl_Tiled_Image.cxx Examining data/fltk1.1-1.1.10/src/Fl_Tooltip.cxx Examining data/fltk1.1-1.1.10/src/Fl_Valuator.cxx Examining data/fltk1.1-1.1.10/src/Fl_Value_Input.cxx Examining data/fltk1.1-1.1.10/src/Fl_Value_Output.cxx Examining data/fltk1.1-1.1.10/src/Fl_Value_Slider.cxx Examining data/fltk1.1-1.1.10/src/fl_vertex.cxx Examining data/fltk1.1-1.1.10/src/Fl_visual.cxx Examining data/fltk1.1-1.1.10/src/Fl_Widget.cxx Examining data/fltk1.1-1.1.10/src/Fl_win32.cxx Examining data/fltk1.1-1.1.10/src/Fl_Window.cxx Examining data/fltk1.1-1.1.10/src/Fl_Window_fullscreen.cxx Examining data/fltk1.1-1.1.10/src/Fl_Window_hotspot.cxx Examining data/fltk1.1-1.1.10/src/Fl_Window_iconize.cxx Examining data/fltk1.1-1.1.10/src/Fl_Wizard.cxx Examining data/fltk1.1-1.1.10/src/Fl_XBM_Image.cxx Examining data/fltk1.1-1.1.10/src/Fl_XColor.H Examining data/fltk1.1-1.1.10/src/Fl_XPM_Image.cxx Examining data/fltk1.1-1.1.10/src/flstring.c Examining data/fltk1.1-1.1.10/src/flstring.h Examining data/fltk1.1-1.1.10/src/forms_bitmap.cxx Examining data/fltk1.1-1.1.10/src/forms_free.cxx Examining data/fltk1.1-1.1.10/src/forms_fselect.cxx Examining data/fltk1.1-1.1.10/src/forms_pixmap.cxx Examining data/fltk1.1-1.1.10/src/forms_timer.cxx Examining data/fltk1.1-1.1.10/src/freeglut_geometry.cxx Examining data/fltk1.1-1.1.10/src/freeglut_stroke_mono_roman.cxx Examining data/fltk1.1-1.1.10/src/freeglut_stroke_roman.cxx Examining data/fltk1.1-1.1.10/src/freeglut_teapot.cxx Examining data/fltk1.1-1.1.10/src/freeglut_teapot_data.h Examining data/fltk1.1-1.1.10/src/gl_draw.cxx Examining data/fltk1.1-1.1.10/src/gl_start.cxx Examining data/fltk1.1-1.1.10/src/glut_compatability.cxx Examining data/fltk1.1-1.1.10/src/glut_font.cxx Examining data/fltk1.1-1.1.10/src/mediumarrow.h Examining data/fltk1.1-1.1.10/src/numericsort.c Examining data/fltk1.1-1.1.10/src/scandir.c Examining data/fltk1.1-1.1.10/src/scandir_win32.c Examining data/fltk1.1-1.1.10/src/screen_xywh.cxx Examining data/fltk1.1-1.1.10/src/slowarrow.h Examining data/fltk1.1-1.1.10/src/vsnprintf.c Examining data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx Examining data/fltk1.1-1.1.10/src/Fl_PNG_Image.cxx Examining data/fltk1.1-1.1.10/src/Fl_x.cxx Examining data/fltk1.1-1.1.10/src/fl_draw.cxx Examining data/fltk1.1-1.1.10/src/fl_font_xft.cxx Examining data/fltk1.1-1.1.10/src/forms_compatability.cxx Examining data/fltk1.1-1.1.10/test/adjuster.cxx Examining data/fltk1.1-1.1.10/test/arc.cxx Examining data/fltk1.1-1.1.10/test/ask.cxx Examining data/fltk1.1-1.1.10/test/bitmap.cxx Examining data/fltk1.1-1.1.10/test/blocks.cxx Examining data/fltk1.1-1.1.10/test/boxtype.cxx Examining data/fltk1.1-1.1.10/test/browser.cxx Examining data/fltk1.1-1.1.10/test/button.cxx Examining data/fltk1.1-1.1.10/test/buttons.cxx Examining data/fltk1.1-1.1.10/test/checkers.cxx Examining data/fltk1.1-1.1.10/test/clock.cxx Examining data/fltk1.1-1.1.10/test/colbrowser.cxx Examining data/fltk1.1-1.1.10/test/color_chooser.cxx Examining data/fltk1.1-1.1.10/test/connect.cxx Examining data/fltk1.1-1.1.10/test/cube.cxx Examining data/fltk1.1-1.1.10/test/CubeMain.cxx Examining data/fltk1.1-1.1.10/test/CubeView.cxx Examining data/fltk1.1-1.1.10/test/CubeView.h Examining data/fltk1.1-1.1.10/test/cursor.cxx Examining data/fltk1.1-1.1.10/test/curve.cxx Examining data/fltk1.1-1.1.10/test/demo.cxx Examining data/fltk1.1-1.1.10/test/doublebuffer.cxx Examining data/fltk1.1-1.1.10/test/editor.cxx Examining data/fltk1.1-1.1.10/test/file_chooser.cxx Examining data/fltk1.1-1.1.10/test/fl_jpeg_image.cxx Examining data/fltk1.1-1.1.10/test/fonts.cxx Examining data/fltk1.1-1.1.10/test/forms.cxx Examining data/fltk1.1-1.1.10/test/fractals.cxx Examining data/fltk1.1-1.1.10/test/fracviewer.cxx Examining data/fltk1.1-1.1.10/test/fracviewer.h Examining data/fltk1.1-1.1.10/test/fromdos.c Examining data/fltk1.1-1.1.10/test/fullscreen.cxx Examining data/fltk1.1-1.1.10/test/gl_overlay.cxx Examining data/fltk1.1-1.1.10/test/glpuzzle.cxx Examining data/fltk1.1-1.1.10/test/hello.cxx Examining data/fltk1.1-1.1.10/test/help.cxx Examining data/fltk1.1-1.1.10/test/iconize.cxx Examining data/fltk1.1-1.1.10/test/image.cxx Examining data/fltk1.1-1.1.10/test/input.cxx Examining data/fltk1.1-1.1.10/test/input_choice.cxx Examining data/fltk1.1-1.1.10/test/keyboard.cxx Examining data/fltk1.1-1.1.10/test/keyboard.h Examining data/fltk1.1-1.1.10/test/label.cxx Examining data/fltk1.1-1.1.10/test/line_style.cxx Examining data/fltk1.1-1.1.10/test/list_visuals.cxx Examining data/fltk1.1-1.1.10/test/mandelbrot.cxx Examining data/fltk1.1-1.1.10/test/mandelbrot.h Examining data/fltk1.1-1.1.10/test/message.cxx Examining data/fltk1.1-1.1.10/test/minimum.cxx Examining data/fltk1.1-1.1.10/test/navigation.cxx Examining data/fltk1.1-1.1.10/test/output.cxx Examining data/fltk1.1-1.1.10/test/overlay.cxx Examining data/fltk1.1-1.1.10/test/pack.cxx Examining data/fltk1.1-1.1.10/test/pixmap.cxx Examining data/fltk1.1-1.1.10/test/pixmap_browser.cxx Examining data/fltk1.1-1.1.10/test/resizebox.cxx Examining data/fltk1.1-1.1.10/test/scroll.cxx Examining data/fltk1.1-1.1.10/test/shape.cxx Examining data/fltk1.1-1.1.10/test/subwindow.cxx Examining data/fltk1.1-1.1.10/test/sudoku.cxx Examining data/fltk1.1-1.1.10/test/sudokurc.h Examining data/fltk1.1-1.1.10/test/symbols.cxx Examining data/fltk1.1-1.1.10/test/threads.cxx Examining data/fltk1.1-1.1.10/test/threads.h Examining data/fltk1.1-1.1.10/test/tile.cxx Examining data/fltk1.1-1.1.10/test/tiled_image.cxx Examining data/fltk1.1-1.1.10/test/trackball.c Examining data/fltk1.1-1.1.10/test/trackball.h Examining data/fltk1.1-1.1.10/test/unittests.cxx Examining data/fltk1.1-1.1.10/test/menubar.cxx Examining data/fltk1.1-1.1.10/vc2005/config.h Examining data/fltk1.1-1.1.10/vcnet/config.h Examining data/fltk1.1-1.1.10/visualc/config.h Examining data/fltk1.1-1.1.10/watcom/config.h Examining data/fltk1.1-1.1.10/zlib/adler32.c Examining data/fltk1.1-1.1.10/zlib/compress.c Examining data/fltk1.1-1.1.10/zlib/crc32.c Examining data/fltk1.1-1.1.10/zlib/crc32.h Examining data/fltk1.1-1.1.10/zlib/deflate.c Examining data/fltk1.1-1.1.10/zlib/deflate.h Examining data/fltk1.1-1.1.10/zlib/gzio.c Examining data/fltk1.1-1.1.10/zlib/inffast.c Examining data/fltk1.1-1.1.10/zlib/inffast.h Examining data/fltk1.1-1.1.10/zlib/inffixed.h Examining data/fltk1.1-1.1.10/zlib/inflate.c Examining data/fltk1.1-1.1.10/zlib/inflate.h Examining data/fltk1.1-1.1.10/zlib/inftrees.c Examining data/fltk1.1-1.1.10/zlib/inftrees.h Examining data/fltk1.1-1.1.10/zlib/trees.c Examining data/fltk1.1-1.1.10/zlib/trees.h Examining data/fltk1.1-1.1.10/zlib/uncompr.c Examining data/fltk1.1-1.1.10/zlib/zconf.h Examining data/fltk1.1-1.1.10/zlib/zlib.h Examining data/fltk1.1-1.1.10/zlib/zutil.c Examining data/fltk1.1-1.1.10/zlib/zutil.h FINAL RESULTS: data/fltk1.1-1.1.10/src/fl_set_fonts_xft.cxx:102:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(raw, pretty, LOCAL_RAW_NAME_MAX); data/fltk1.1-1.1.10/test/button.cxx:46:3: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. gets(buf); data/fltk1.1-1.1.10/test/checkers.cxx:733:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. if (!gets(line)) { data/fltk1.1-1.1.10/FL/Fl_Spinner.H:108:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, format_, c, value_); data/fltk1.1-1.1.10/FL/Fl_Spinner.H:110:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, format_, value_); data/fltk1.1-1.1.10/fluid/CodeEditor.cxx:356: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(b+1, text); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1078:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullname,"%s %s",prefix(),name()); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1080:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullname, name()); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:375: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(oldlabel,i->value()); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:2588:22: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. char buf[128]; sprintf(buf,"o->shortcut(\"%s\");",value); data/fltk1.1-1.1.10/fluid/code.cxx:140:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), format, args); data/fltk1.1-1.1.10/fluid/code.cxx:261:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(code_file, format, args); data/fltk1.1-1.1.10/fluid/code.cxx:269:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(header_file, format, args); data/fltk1.1-1.1.10/fluid/code.cxx:375:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(header_file, hdr, FL_VERSION); data/fltk1.1-1.1.10/fluid/code.cxx:376:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(code_file, hdr, FL_VERSION); data/fltk1.1-1.1.10/fluid/factory.cxx:1023: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(t1, txt); data/fltk1.1-1.1.10/fluid/file.cxx:102:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(fout, format, args); data/fltk1.1-1.1.10/fluid/file.cxx:161:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buffer, sizeof(buffer), format, args); data/fltk1.1-1.1.10/fluid/file.cxx:165:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, args); data/fltk1.1-1.1.10/fluid/fluid.cxx:65:13: [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 access _access data/fltk1.1-1.1.10/fluid/fluid.cxx:196:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(c, 0)) { data/fltk1.1-1.1.10/fluid/fluid.cxx:267:7: [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(filename, 0)) mkdir(filename); data/fltk1.1-1.1.10/fluid/fluid.cxx:269:7: [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(filename, 0)) mkdir(filename, 0777); data/fltk1.1-1.1.10/fluid/fluid.cxx:284:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(filename, 0)) { data/fltk1.1-1.1.10/fluid/fluid.cxx:1230:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. outfile = popen(command, "w"); data/fltk1.1-1.1.10/fluid/fluid.cxx:1237:21: [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 (outname && !access(outname, 0)) { data/fltk1.1-1.1.10/fluid/fluid.cxx:1922:21: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((shell_pipe = popen((char *)command, "r")) == NULL) { data/fltk1.1-1.1.10/fluid/fluid.cxx:1972:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((status = system(command)) != 0) { data/fltk1.1-1.1.10/fluid/print_panel.cxx:528:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((lpstat = popen("lpstat -p -d", "r")) != NULL) { data/fltk1.1-1.1.10/fluid/print_panel.cxx:531:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(line + 8, "%s", name) == 1) { data/fltk1.1-1.1.10/fluid/print_panel.cxx:539: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. if (sscanf(line + 28, "%s", defname) != 1) defname[0] = '\0'; data/fltk1.1-1.1.10/fluid/print_panel.cxx:566:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((lpstat = popen(command, "r")) != NULL) { data/fltk1.1-1.1.10/jpeg/jerror.c:194:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, msgtext, err->msg_parm.s); data/fltk1.1-1.1.10/jpeg/jerror.c:196:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, msgtext, data/fltk1.1-1.1.10/png/png.h:2608:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ data/fltk1.1-1.1.10/png/png.h:2616:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ data/fltk1.1-1.1.10/png/png.h:2624:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ data/fltk1.1-1.1.10/png/png.h:2637:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(PNG_DEBUG_FILE,format); \ data/fltk1.1-1.1.10/png/png.h:2648:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(PNG_DEBUG_FILE,format,p1); \ data/fltk1.1-1.1.10/png/png.h:2659:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(PNG_DEBUG_FILE,format,p1,p2); \ data/fltk1.1-1.1.10/png/pngconf.h:1471:28: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define png_snprintf _snprintf /* Added to v 1.2.19 */ data/fltk1.1-1.1.10/png/pngconf.h:1472:29: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define png_snprintf2 _snprintf data/fltk1.1-1.1.10/png/pngconf.h:1473:29: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define png_snprintf6 _snprintf data/fltk1.1-1.1.10/png/pngconf.h:1475:28: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define png_snprintf snprintf /* Added to v 1.2.19 */ data/fltk1.1-1.1.10/png/pngconf.h:1476:29: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define png_snprintf2 snprintf data/fltk1.1-1.1.10/png/pngconf.h:1477:29: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define png_snprintf6 snprintf data/fltk1.1-1.1.10/png/pngconf.h:1485:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1) data/fltk1.1-1.1.10/png/pngconf.h:1486:43: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2) data/fltk1.1-1.1.10/png/pngconf.h:1488:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s1,fmt,x1,x2,x3,x4,x5,x6) data/fltk1.1-1.1.10/png/pngerror.c:237:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, PNG_STRING_NEWLINE); data/fltk1.1-1.1.10/png/pngerror.c:243:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, PNG_STRING_NEWLINE); data/fltk1.1-1.1.10/png/pngerror.c:250:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, PNG_STRING_NEWLINE); data/fltk1.1-1.1.10/png/pngerror.c:301:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, PNG_STRING_NEWLINE); data/fltk1.1-1.1.10/png/pngerror.c:307:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, PNG_STRING_NEWLINE); data/fltk1.1-1.1.10/png/pngerror.c:314:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, PNG_STRING_NEWLINE); data/fltk1.1-1.1.10/png/pngwutil.c:1639:7: [4] (format) swprintf: Potential format string problem (CWE-134). Make format string constant. swprintf(wc_buf, TEXT("%12.12e"), width); data/fltk1.1-1.1.10/png/pngwutil.c:1643:7: [4] (format) swprintf: Potential format string problem (CWE-134). Make format string constant. swprintf(wc_buf, TEXT("%12.12e"), height); data/fltk1.1-1.1.10/src/Fl_Browser.cxx:171: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(t->txt, newtext); data/fltk1.1-1.1.10/src/Fl_Browser.cxx:199: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(t->txt, newtext); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:67:11: [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 access _access data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:559:36: [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. } else if ((type_ & CREATE) || access(pathname, 0) == 0) { data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:680:31: [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 (((type_ & CREATE) || !access(fileName->value(), 0)) && data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:690:31: [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 (((type_ & CREATE) || !access(fileName->value(), 0)) && data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:58:11: [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 access _access data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:677:14: [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("/opt/kde", F_OK)) kdedir = "/opt/kde"; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:678:12: [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. else if (!access("/usr/local/share/mimelnk", F_OK)) kdedir = "/usr/local"; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:685:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(filename, F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:693:14: [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(icondir, F_OK)) break; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:704:12: [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(filename, F_OK)) icon->load_image(filename); data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:711:12: [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(filename, F_OK)) icon->load_image(filename); data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:715:17: [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. } else if (!access("/usr/share/icons/folder.xpm", F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:722:17: [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. } else if (!access("/usr/dt/appconfig/icons", F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:741:17: [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. } else if (!access("/usr/lib/filetype", F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:755:12: [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("/usr/lib/filetype/install/iconlib/acroread.doc.fti", F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:766:12: [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("/usr/lib/filetype/install/iconlib/html.fti", F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:772:12: [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("/usr/lib/filetype/install/iconlib/color.ps.idle.fti", F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:871:19: [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. } else if (!access(icondir, F_OK)) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:934:16: [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(full_iconfilename, F_OK)) break; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:943:13: [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(full_iconfilename, F_OK)) return; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:977: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(pattern + 1, kdepattern); data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:351: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(new_data[0], (char*)Suffix); data/fltk1.1-1.1.10/src/Fl_Input.cxx:112: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(chars, standard_fp_chars); data/fltk1.1-1.1.10/src/Fl_Input.cxx:114:34: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (lc->decimal_point) strcat(chars, lc->decimal_point); data/fltk1.1-1.1.10/src/Fl_Input.cxx:115:38: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (lc->mon_decimal_point) strcat(chars, lc->mon_decimal_point); data/fltk1.1-1.1.10/src/Fl_Input.cxx:116:34: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (lc->positive_sign) strcat(chars, lc->positive_sign); data/fltk1.1-1.1.10/src/Fl_Input.cxx:117:34: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (lc->negative_sign) strcat(chars, lc->negative_sign); data/fltk1.1-1.1.10/src/Fl_Menu_.cxx:49:80: [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). { len += strlen(s); if ( len >= namelen ) { *name='\0'; return(-2); } else strcat(name,(s)); } data/fltk1.1-1.1.10/src/Fl_Menu_.cxx:108: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(itempath, menupath); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:217: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(new_data[0], data()[0]); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:232: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(*new_row, data()[i + 1]); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:292: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(new_data[0], new_info); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:307: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(*new_row, data()[i + 1]); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:412: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((char *)data()[color + 1], line); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:487: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((char *)data()[i + 1], line); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:44:11: [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 access _access data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:573:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(data_, 1024, format, args); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:594:7: [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, 0)) { data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:932:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( nameBuffer, "%s/%s", pn->path_, path_ ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:940:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( nameBuffer, "%s/%s", path_, path ); data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:109: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((char *)name_, n); data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:283: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((char *)temp_shared->name_, name_); data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:356: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((char *)key->name_, n); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:483: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( insText, s ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:957:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( outStr, "<%s>", ControlCodeTable[ ( unsigned char ) c ] ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1732: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( outPtr, retabbedStr ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1792: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( outPtr, retabbedStr ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1892: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( outPtr, linePtr ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2387: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( outStr, text ); data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:739: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( paddedText, text ); data/fltk1.1-1.1.10/src/Fl_XBM_Image.cxx:62:15: [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. int r = sscanf(buffer,"#define %s %d",junk,&wh[i]); data/fltk1.1-1.1.10/src/Fl_abort.cxx:49:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, 1024, format, args); data/fltk1.1-1.1.10/src/Fl_abort.cxx:58:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, 1024, format, args); data/fltk1.1-1.1.10/src/Fl_abort.cxx:69:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, args); data/fltk1.1-1.1.10/src/Fl_abort.cxx:78:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, args); data/fltk1.1-1.1.10/src/Fl_abort.cxx:87:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, args); data/fltk1.1-1.1.10/src/Fl_get_system_colors.cxx:112:18: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int R,G,B; if (sscanf(p,pattern,&R,&G,&B) != 3) return 0; data/fltk1.1-1.1.10/src/Fl_mac.cxx:68:35: [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 DEBUGMSG(msg) if ( msg ) fprintf(stderr, msg); data/fltk1.1-1.1.10/src/fl_ask.cxx:191:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ::vsnprintf(buffer, 1024, fmt, ap); data/fltk1.1-1.1.10/src/fl_font_mac.cxx:44:25: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). fn[0] = strlen(name); strcpy((char*)(fn+1), name); data/fltk1.1-1.1.10/src/fl_font_x.cxx:161: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(namebuffer+l,c); data/fltk1.1-1.1.10/src/fl_open_uri.cxx:117:15: [4] (shell) ShellExecute: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return (int)ShellExecute(HWND_DESKTOP, "open", uri, NULL, NULL, SW_SHOW) > 32; data/fltk1.1-1.1.10/src/fl_open_uri.cxx:249:12: [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(filename, X_OK)) return filename; data/fltk1.1-1.1.10/src/fl_open_uri.cxx:260:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(filename, X_OK)) return filename; data/fltk1.1-1.1.10/src/fl_open_uri.cxx:307:7: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(program, argv); data/fltk1.1-1.1.10/src/fl_set_fonts_win32.cxx:73: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(buffer+1, n); data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:269:24: [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,"-*-"); strcpy(buf+3,fl_encoding); data/fltk1.1-1.1.10/src/fl_shortcut.cxx:169:16: [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). if (p > buf) {strcpy(p,table[c].name); return buf;} data/fltk1.1-1.1.10/src/fl_shortcut.cxx:192:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (p > buf) {strcpy(p,q); return buf;} else return q; data/fltk1.1-1.1.10/src/flstring.h:84:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf fl_snprintf data/fltk1.1-1.1.10/src/flstring.h:89:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf fl_vsnprintf data/fltk1.1-1.1.10/src/gl_draw.cxx:70: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((char*)(fn+1), fl_fontsize->q_name); data/fltk1.1-1.1.10/src/scandir_win32.c:52: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(findIn, dirname); data/fltk1.1-1.1.10/src/scandir_win32.c:75: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(selectDir->d_name, find.cFileName); data/fltk1.1-1.1.10/src/vsnprintf.c:139:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(temp, tformat, va_arg(ap, double)); data/fltk1.1-1.1.10/src/vsnprintf.c:148: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). strcpy(bufptr, temp); data/fltk1.1-1.1.10/src/vsnprintf.c:166:6: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(temp, tformat, va_arg(ap, long long)); data/fltk1.1-1.1.10/src/vsnprintf.c:170:6: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(temp, tformat, va_arg(ap, long)); data/fltk1.1-1.1.10/src/vsnprintf.c:172:6: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(temp, tformat, va_arg(ap, int)); data/fltk1.1-1.1.10/src/vsnprintf.c:181: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). strcpy(bufptr, temp); data/fltk1.1-1.1.10/src/vsnprintf.c:190:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(temp, tformat, va_arg(ap, void *)); data/fltk1.1-1.1.10/src/vsnprintf.c:199: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). strcpy(bufptr, temp); data/fltk1.1-1.1.10/src/vsnprintf.c:269:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(str, size, fmt, ap); data/fltk1.1-1.1.10/test/checkers.cxx:658: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(n&BLACK ? "\033[1;7m" : "\033[1m"); data/fltk1.1-1.1.10/test/colbrowser.cxx:168:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "(%3d %3d %3d) %s", r, g, b, name); data/fltk1.1-1.1.10/test/colbrowser.cxx:254: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, p); data/fltk1.1-1.1.10/test/colbrowser.cxx:256: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(dbname, buf); data/fltk1.1-1.1.10/test/connect.cxx:55:19: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (!running) execl("/usr/sbin/pppd","pppd","-detach",0); data/fltk1.1-1.1.10/test/demo.cxx:129: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(menus[mennumb].name,nnn); data/fltk1.1-1.1.10/test/demo.cxx:140: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(menus[n].iname[menus[n].numb],item); data/fltk1.1-1.1.10/test/demo.cxx:141: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(menus[n].icommand[menus[n].numb],comm); data/fltk1.1-1.1.10/test/demo.cxx:202: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(stack[stsize],nnn); data/fltk1.1-1.1.10/test/demo.cxx:236: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(copy_of_icommand,menus[men].icommand[bn]); data/fltk1.1-1.1.10/test/demo.cxx:254:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "%sd.exe", start_command); data/fltk1.1-1.1.10/test/demo.cxx:256:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "%s.exe", start_command); data/fltk1.1-1.1.10/test/demo.cxx:266:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "%sd.exe %s", start_command, start_parameters); data/fltk1.1-1.1.10/test/demo.cxx:268:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "%s.exe %s", start_command, start_parameters); data/fltk1.1-1.1.10/test/demo.cxx:283:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "./%s &", menus[men].icommand[bn]); data/fltk1.1-1.1.10/test/demo.cxx:284:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(command); data/fltk1.1-1.1.10/test/demo.cxx:349: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(buf, argv[0]); data/fltk1.1-1.1.10/test/demo.cxx:366: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,fname); data/fltk1.1-1.1.10/test/editor.cxx:498: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). if (!insert) strcpy(filename, newfile); data/fltk1.1-1.1.10/test/editor.cxx:507: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(filename, newfile); data/fltk1.1-1.1.10/test/editor.cxx:533: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(e->search, val); data/fltk1.1-1.1.10/test/editor.cxx:565:24: [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). if (slash != NULL) strcpy(title, slash + 1); data/fltk1.1-1.1.10/test/editor.cxx:566: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). else strcpy(title, filename); data/fltk1.1-1.1.10/test/file_chooser.cxx:225:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(preview, "%s/.preview.ppm", home ? home : ""); data/fltk1.1-1.1.10/test/file_chooser.cxx:227:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, data/fltk1.1-1.1.10/test/file_chooser.cxx:232:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(command)) return 0; data/fltk1.1-1.1.10/test/file_chooser.cxx:261:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(preview, "%s/.preview.ppm", home ? home : ""); data/fltk1.1-1.1.10/test/file_chooser.cxx:265:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(outname, "%s/.preview.ps", home ? home : ""); data/fltk1.1-1.1.10/test/file_chooser.cxx:290:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, data/fltk1.1-1.1.10/test/file_chooser.cxx:295:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(command)) return 0; data/fltk1.1-1.1.10/test/fonts.cxx:160: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(p,name); data/fltk1.1-1.1.10/test/fonts.cxx:164:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "@F%d@.%s", i, name); data/fltk1.1-1.1.10/test/fromdos.c:38:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tempname, fname); data/fltk1.1-1.1.10/test/pixmap_browser.cxx:85: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(name,n); data/fltk1.1-1.1.10/test/symbols.cxx:58:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (val&&sze) sprintf(buf, "@@%+d%d%s", sze, val, l); data/fltk1.1-1.1.10/test/symbols.cxx:59:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else if (val) sprintf(buf, "@@%d%s", val, l); data/fltk1.1-1.1.10/test/symbols.cxx:60:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else if (sze) sprintf(buf, "@@%+d%s", sze, l); data/fltk1.1-1.1.10/test/symbols.cxx:61:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else sprintf(buf, "@@%s", l); data/fltk1.1-1.1.10/test/symbols.cxx:63:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (val&&sze) sprintf(buf, "@%+d%d%s", sze, val, l); data/fltk1.1-1.1.10/test/symbols.cxx:64:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else if (val) sprintf(buf, "@%d%s", val, l); data/fltk1.1-1.1.10/test/symbols.cxx:65:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else if (sze) sprintf(buf, "@%+d%s", sze, l); data/fltk1.1-1.1.10/test/symbols.cxx:66:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else sprintf(buf, "@%s", l); data/fltk1.1-1.1.10/test/symbols.cxx:81:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "@%s", name); data/fltk1.1-1.1.10/zlib/gzio.c:131: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->path, path); /* do this early for debugging */ data/fltk1.1-1.1.10/zlib/gzio.c:613:11: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. (void)vsprintf(buf, format, va); data/fltk1.1-1.1.10/zlib/gzio.c:618:11: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. len = vsprintf(buf, format, va); data/fltk1.1-1.1.10/zlib/gzio.c:623:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (void)vsnprintf(buf, sizeof(buf), format, va); data/fltk1.1-1.1.10/zlib/gzio.c:627:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(buf, sizeof(buf), format, va); data/fltk1.1-1.1.10/zlib/gzio.c:650:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, format, a1, a2, a3, a4, a5, a6, a7, a8, data/fltk1.1-1.1.10/zlib/gzio.c:655:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. len = sprintf(buf, format, a1, a2, a3, a4, a5, a6, a7, a8, data/fltk1.1-1.1.10/zlib/gzio.c:660:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), format, a1, a2, a3, a4, a5, a6, a7, a8, data/fltk1.1-1.1.10/zlib/gzio.c:664:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = snprintf(buf, sizeof(buf), format, a1, a2, a3, a4, a5, a6, a7, a8, data/fltk1.1-1.1.10/zlib/gzio.c:1008: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->msg, s->path); data/fltk1.1-1.1.10/zlib/gzio.c:1010: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(s->msg, m); data/fltk1.1-1.1.10/zlib/zutil.h:199:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # if !defined(vsnprintf) && !defined(NO_vsnprintf) data/fltk1.1-1.1.10/zlib/zutil.h:200:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/fltk1.1-1.1.10/zlib/zutil.h:246:39: [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 Trace(x) {if (z_verbose>=0) fprintf x ;} data/fltk1.1-1.1.10/zlib/zutil.h:247:39: [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 Tracev(x) {if (z_verbose>0) fprintf x ;} data/fltk1.1-1.1.10/zlib/zutil.h:248:40: [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 Tracevv(x) {if (z_verbose>1) fprintf x ;} data/fltk1.1-1.1.10/zlib/zutil.h:249:48: [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 Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;} data/fltk1.1-1.1.10/zlib/zutil.h:250:49: [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 Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;} data/fltk1.1-1.1.10/fluid/fluid.cxx:843: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 ((docdir = getenv("FLTK_DOCDIR")) == NULL) { data/fltk1.1-1.1.10/jpeg/jmemmgr.c:35: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. extern char * getenv JPP((const char * name)); data/fltk1.1-1.1.10/jpeg/jmemmgr.c:1106: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. if ((memenv = getenv("JPEGMEM")) != NULL) { data/fltk1.1-1.1.10/src/Fl_Double_Window.cxx:90:18: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE hMod = LoadLibrary("MSIMG32.DLL"); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:243: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("HOME")) v = favoritesButton->size() - 5; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:974: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 ((home = getenv("HOME")) != NULL) { data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:676: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 ((kdedir = getenv("KDEDIR")) == NULL) { data/fltk1.1-1.1.10/src/Fl_Gl_Choice.cxx:274:8: [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. !getenv("MESA_PRIVATE_CMAP")) data/fltk1.1-1.1.10/src/Fl_Gl_Window.cxx:296: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. const char* c = getenv("GL_SWAP_TYPE"); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:693: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 ((e = getenv("HOME")) != NULL) { data/fltk1.1-1.1.10/src/Fl_get_system_colors.cxx:250: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. if ((s = getenv("FLTK_SCHEME")) == NULL) { data/fltk1.1-1.1.10/src/Fl_lock.cxx:156:5: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(cs_ring); data/fltk1.1-1.1.10/src/Fl_lock.cxx:158:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(cs_ring); data/fltk1.1-1.1.10/src/Fl_lock.cxx:174:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&cs); data/fltk1.1-1.1.10/src/Fl_lock.cxx:182:21: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. if (!main_thread) InitializeCriticalSection(&cs); data/fltk1.1-1.1.10/src/filename_expand.cxx:63: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. value = getenv("HOME"); data/fltk1.1-1.1.10/src/filename_expand.cxx:75:45: [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 t = *e; *(char *)e = 0; value = getenv(a+1); *(char *)e = t;} data/fltk1.1-1.1.10/src/fl_open_uri.cxx:241: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 ((path = getenv("PATH")) == NULL) path = "/bin:/usr/bin"; data/fltk1.1-1.1.10/test/blocks.cxx:824:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/fltk1.1-1.1.10/test/checkers.cxx:1348:8: [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("DISPLAY")) terminal = 1; data/fltk1.1-1.1.10/test/demo.cxx:272:5: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. CreateProcess(NULL, command, NULL, NULL, FALSE, data/fltk1.1-1.1.10/test/demo.cxx:272:5: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. CreateProcess(NULL, command, NULL, NULL, FALSE, data/fltk1.1-1.1.10/test/file_chooser.cxx:224: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. home = getenv("HOME"); data/fltk1.1-1.1.10/test/file_chooser.cxx:260: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. home = getenv("HOME"); data/fltk1.1-1.1.10/test/fractals.cxx:80:11: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define drand48() (((float) rand())/((float) RAND_MAX)) data/fltk1.1-1.1.10/test/fractals.cxx:81:23: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define srand48(x) (srand((x))) data/fltk1.1-1.1.10/test/fractals.cxx:83:11: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define drand48() (((float) rand())/((float) RAND_MAX)) data/fltk1.1-1.1.10/test/fractals.cxx:84:23: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define srand48(x) (srand((x))) data/fltk1.1-1.1.10/test/fractals.cxx:187:20: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. RandTable[i] = drand48() - 0.5; data/fltk1.1-1.1.10/test/fractals.cxx:202:21: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. hash = unsigned(drand48() * 7334334); data/fltk1.1-1.1.10/test/fractals.cxx:204:23: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. hash = (unsigned)(drand48() * 634344 + hash) % NUMRANDS; data/fltk1.1-1.1.10/test/fractals.cxx:321:19: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(drand48()*180, 0, 1, 0); data/fltk1.1-1.1.10/test/fractals.cxx:327:15: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(drand48()*180, 0, 1, 0); data/fltk1.1-1.1.10/test/fractals.cxx:331:33: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. savedseed = (long)((ulong)drand48()*ULONG_MAX); data/fltk1.1-1.1.10/test/fractals.cxx:333:25: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(110 + drand48()*40, 0, 1, 0); data/fltk1.1-1.1.10/test/fractals.cxx:334:24: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(30 + drand48()*20, 0, 0, 1); data/fltk1.1-1.1.10/test/fractals.cxx:339:33: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. savedseed = (long)((ulong)drand48()*ULONG_MAX); data/fltk1.1-1.1.10/test/fractals.cxx:341:26: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(-130 + drand48()*40, 0, 1, 0); data/fltk1.1-1.1.10/test/fractals.cxx:342:24: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(30 + drand48()*20, 0, 0, 1); data/fltk1.1-1.1.10/test/fractals.cxx:348:25: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(-20 + drand48()*40, 0, 1, 0); data/fltk1.1-1.1.10/test/fractals.cxx:349:24: [3] (random) drand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. glRotatef(30 + drand48()*20, 0, 0, 1); data/fltk1.1-1.1.10/test/glpuzzle.cxx:144:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define srandom srand data/fltk1.1-1.1.10/test/glpuzzle.cxx:144:17: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define srandom srand data/fltk1.1-1.1.10/test/glpuzzle.cxx:145:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define random() (rand() >> 2) data/fltk1.1-1.1.10/test/glpuzzle.cxx:1385:3: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom(time(NULL)); data/fltk1.1-1.1.10/test/navigation.cxx:42:17: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (argc > 1) srand(atoi(argv[1])); data/fltk1.1-1.1.10/test/sudoku.cxx:1081:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/fltk1.1-1.1.10/CMake/PlatformTests.cxx:8: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. unsigned char cd[100]; data/fltk1.1-1.1.10/CMake/PlatformTests.cxx:9: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. const unsigned char ud[100] = ""; data/fltk1.1-1.1.10/FL/Fl_Chart.H:52: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 str[FL_CHART_LABEL_MAX+1]; data/fltk1.1-1.1.10/FL/Fl_File_Chooser.H:57: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 directory_[1024]; data/fltk1.1-1.1.10/FL/Fl_File_Chooser.H:58:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pattern_[1024]; data/fltk1.1-1.1.10/FL/Fl_File_Chooser.H:59: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 preview_text_[2048]; data/fltk1.1-1.1.10/FL/Fl_Help_Dialog.H:44: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 file_[100][256]; data/fltk1.1-1.1.10/FL/Fl_Help_View.H:75: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 filename[192], // Reference filename data/fltk1.1-1.1.10/FL/Fl_Help_View.H:89:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; // Target name data/fltk1.1-1.1.10/FL/Fl_Help_View.H:101: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 title_[1024]; // Title string data/fltk1.1-1.1.10/FL/Fl_Help_View.H:127: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 directory_[1024]; // Directory for current file data/fltk1.1-1.1.10/FL/Fl_Help_View.H:128: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 filename_[1024]; // Current filename data/fltk1.1-1.1.10/FL/Fl_Preferences.H:111:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char nameBuffer[128]; data/fltk1.1-1.1.10/FL/Fl_Spinner.H:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[255]; // Value string data/fltk1.1-1.1.10/FL/Fl_Spinner.H:102: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 temp[64], *sp = temp; data/fltk1.1-1.1.10/FL/Fl_Spinner.H:103:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp, "%.12f", step_); data/fltk1.1-1.1.10/FL/filename.H:58:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct dirent {char d_name[1];}; data/fltk1.1-1.1.10/fluid/CodeEditor.cxx:137:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255], data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:49: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 buffer[128]; // for error messages data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:55:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer,"missing %c",type); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:71:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "missing %c", type); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:111:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "unexpected %c", *(c-1)); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:167:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void Fl_Function_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:282: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 s[1024], *sptr = s; data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:332: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 s[1024], *sptr; data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:408:20: [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). void Fl_Code_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:475:25: [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). void Fl_CodeBlock_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:561:20: [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). void Fl_Decl_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:705:25: [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). void Fl_DeclBlock_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:809:23: [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). void Fl_Comment_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:833: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 itempath[256]; itempath[0] = 0; data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1003: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 s[256]; data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1074:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void Fl_Class_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1076: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 fullname[1024]=""; data/fltk1.1-1.1.10/fluid/Fl_Menu_Type.cxx:553:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:288:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; char* p = buf; data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:294:16: [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. if (*c) {strcpy(p,"..."); p+=3;} data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:301:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[60]; char* p = buf; data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:306: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. if (*c) {strcpy(p,"..."); p+=3;} data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:331:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; char* p = buf; data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:337:16: [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. if (*c) {strcpy(p,"..."); p+=3;} data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:344:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[60]; char* p = buf; data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:349: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. if (*c) {strcpy(p,"..."); p+=3;} data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:401:5: [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). l->open(); data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:611:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void Fl_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Type.h:111:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual void open(); // what happens when you double-click data/fltk1.1-1.1.10/fluid/Fl_Type.h:161: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:181: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:194: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:211: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:226: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:238: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 title_buf[64]; data/fltk1.1-1.1.10/fluid/Fl_Type.h:243: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:264: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:289: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. const char *extra_code_[NUM_EXTRA_CODE]; data/fltk1.1-1.1.10/fluid/Fl_Type.h:321: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Type.h:508: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). void open(); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:299: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/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:625:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[20]; data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:626:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%d", i); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:637:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(i); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:1802:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void Fl_Widget_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:1869:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int num = atoi(d+1); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:1880:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int n1 = atoi(e+(d-c)+1); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:1883:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[128]; data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:1912:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; snprintf(buf, 1023, "%s(*)", callback()); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:2464:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ((Fl_Button*)o)->value(atoi(value)); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:2530:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int n = atoi(c+4); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:2588:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; sprintf(buf,"o->shortcut(\"%s\");",value); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:2613:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int v1 = atoi(value); if (v1 <= 0 && strcmp(value,"0")) return 0; data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:88:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int n = atoi(i->value()); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:220:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:221:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"%d",gridx); horizontal_input->value(buf); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:222:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"%d",gridy); vertical_input->value(buf); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:223:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"%d",snap); snap_input->value(buf); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:406:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void Fl_Window_Type::open() { data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:410:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Fl_Widget_Type::open(); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:628:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:630:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", h); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:663:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:665:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", w); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:1183:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (t->is_menu_item()) t->open(); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:1206:23: [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). Fl_Widget_Type::open(); data/fltk1.1-1.1.10/fluid/Fl_Window_Type.cxx:1352:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (Fl::first_window()) open(); // only if we are using user interface data/fltk1.1-1.1.10/fluid/Fluid_Image.cxx:151:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(iname,"rb"); data/fltk1.1-1.1.10/fluid/alignment_panel.cxx:334:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/fluid/code.cxx:73:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/fltk1.1-1.1.10/fluid/code.cxx:92:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(q,"%x",++which); data/fltk1.1-1.1.10/fluid/code.cxx:138:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/fluid/code.cxx:346:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(s, filemode); data/fltk1.1-1.1.10/fluid/code.cxx:352:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(t, filemode); data/fltk1.1-1.1.10/fluid/code.cxx:378: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 define_name[102]; data/fltk1.1-1.1.10/fluid/code.cxx:460:14: [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 *fp = fopen(sfile, "w"); data/fltk1.1-1.1.10/fluid/factory.cxx:231:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[20]; data/fltk1.1-1.1.10/fluid/factory.cxx:233:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer,"Browser Line %d",i); data/fltk1.1-1.1.10/fluid/factory.cxx:278:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[20]; data/fltk1.1-1.1.10/fluid/factory.cxx:280:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer,"Browser Line %d",i); data/fltk1.1-1.1.10/fluid/factory.cxx:939: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). t->open(); data/fltk1.1-1.1.10/fluid/factory.cxx:1024:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(t1, "..."); data/fltk1.1-1.1.10/fluid/factory.cxx:1204:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (numberok && ((v = atoi(name)) || !strcmp(name,"0"))) return 1; data/fltk1.1-1.1.10/fluid/file.cxx:46:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(s,"w"); data/fltk1.1-1.1.10/fluid/file.cxx:138:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(s,"r"); data/fltk1.1-1.1.10/fluid/file.cxx:160:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[1024]; data/fltk1.1-1.1.10/fluid/file.cxx:414:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i18n_type = atoi(read_word()); data/fltk1.1-1.1.10/fluid/file.cxx:435:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i18n_type = atoi(read_word()); data/fltk1.1-1.1.10/fluid/file.cxx:440:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i18n_type = atoi(read_word()); data/fltk1.1-1.1.10/fluid/file.cxx:594:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fdesign_magic = atoi(read_word()); data/fltk1.1-1.1.10/fluid/fluid.cxx:102:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char absolute_history[10][1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:103:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char relative_history[10][1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:125:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:174:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char name[2][1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:255: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 safename[1024], *safeptr; data/fltk1.1-1.1.10/fluid/fluid.cxx:262: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 filename[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:282:3: [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(ext, ".fl"); data/fltk1.1-1.1.10/fluid/fluid.cxx:314:3: [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(ext, ".png"); data/fltk1.1-1.1.10/fluid/fluid.cxx:318:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename, "wb")) == NULL) { data/fltk1.1-1.1.10/fluid/fluid.cxx:345:3: [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(ext, ".ppm"); data/fltk1.1-1.1.10/fluid/fluid.cxx:346: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). fp = fopen(filename, "wb"); data/fltk1.1-1.1.10/fluid/fluid.cxx:584: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 line[1024], *ptr, *next; data/fltk1.1-1.1.10/fluid/fluid.cxx:587: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 ((infile = fopen(tname, "r")) == NULL) { data/fltk1.1-1.1.10/fluid/fluid.cxx:595:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((outfile = fopen(cutfname(1), "w")) == NULL) { data/fltk1.1-1.1.10/fluid/fluid.cxx:644: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 i18n_program[1024] = ""; data/fltk1.1-1.1.10/fluid/fluid.cxx:651: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 cname[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:652: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 hname[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:689: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 sname[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:711:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Fl_Type::current->open(); data/fltk1.1-1.1.10/fluid/fluid.cxx:839: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 helpname[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:846: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 fltk_docdir[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:968:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:989: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 date[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:1005:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%d/%d", winpage + 1, num_windows); data/fltk1.1-1.1.10/fluid/fluid.cxx:1143:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[2048]; data/fltk1.1-1.1.10/fluid/fluid.cxx:1163: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 command[1024]; // Print command data/fltk1.1-1.1.10/fluid/fluid.cxx:1183:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((first = atoi(print_from->value())) < 1) first = 1; data/fltk1.1-1.1.10/fluid/fluid.cxx:1184:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((last = atoi(print_to->value())) < 1) last = 1000; data/fltk1.1-1.1.10/fluid/fluid.cxx:1243:28: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (outname) outfile = fopen(outname, "w"); data/fltk1.1-1.1.10/fluid/fluid.cxx:1285:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:1332:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char progress[255]; // Progress text data/fltk1.1-1.1.10/fluid/fluid.cxx:1339:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(progress, "Printing page %d/%d...", page, num_pages); data/fltk1.1-1.1.10/fluid/fluid.cxx:1810: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 absolute[1024]; data/fltk1.1-1.1.10/fluid/fluid.cxx:1865: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 line[1024]; // Line from command output... data/fltk1.1-1.1.10/fluid/fluid.cxx:2107:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char title[1024]; data/fltk1.1-1.1.10/fluid/function_panel.cxx:553: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). t->open(); data/fltk1.1-1.1.10/fluid/print_panel.cxx:223:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[1024]; data/fltk1.1-1.1.10/fluid/print_panel.cxx:513: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 line[1024], name[1024], *nptr, qname[2048], *qptr, defname[1024]; data/fltk1.1-1.1.10/fluid/print_panel.cxx:560:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[1024]; data/fltk1.1-1.1.10/fluid/print_panel.cxx:561: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 status[1024]; data/fltk1.1-1.1.10/fluid/print_panel.cxx:569:10: [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. } else strcpy(status, "printer status unavailable"); data/fltk1.1-1.1.10/fluid/print_panel.cxx:574:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[1024]; data/fltk1.1-1.1.10/fluid/template_panel.cxx:94:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pngfile[1024], *ext; data/fltk1.1-1.1.10/fluid/template_panel.cxx:98:1: [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(ext, ".png"); data/fltk1.1-1.1.10/fluid/template_panel.cxx:225:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[1024], filename[1024], path[1024], *ptr; data/fltk1.1-1.1.10/fluid/undo.cxx:71:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char undo_path[1024] = ""; // Undo path data/fltk1.1-1.1.10/fluid/undo.cxx:83:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[1024]; // Undo checkpoint file data/fltk1.1-1.1.10/fluid/undo.cxx:106: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 filename[1024]; // Undo checkpoint file data/fltk1.1-1.1.10/fluid/undo.cxx:134: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 filename[1024]; // Undo checkpoint filename data/fltk1.1-1.1.10/fluid/undo.cxx:165: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 filename[1024]; // Undo checkpoint filename data/fltk1.1-1.1.10/jpeg/jchuff.c:185: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 huffsize[257]; data/fltk1.1-1.1.10/jpeg/jchuff.h:29: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 ehufsi[256]; /* length of code for each symbol */ data/fltk1.1-1.1.10/jpeg/jcmarker.c:228: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 dc_in_use[NUM_ARITH_TBLS]; data/fltk1.1-1.1.10/jpeg/jcmarker.c:229: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 ac_in_use[NUM_ARITH_TBLS]; data/fltk1.1-1.1.10/jpeg/jdhuff.c:156: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 huffsize[257]; data/fltk1.1-1.1.10/jpeg/jerror.c:101:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[JMSG_LENGTH_MAX]; data/fltk1.1-1.1.10/jpeg/jinclude.h:62:32: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size)) data/fltk1.1-1.1.10/jpeg/jinclude.h:68:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size)) data/fltk1.1-1.1.10/jpeg/jmemsys.h:156: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 temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */ data/fltk1.1-1.1.10/jpeg/jmemsys.h:162: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 temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */ data/fltk1.1-1.1.10/jpeg/jmemsys.h:166: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 temp_name[TEMP_NAME_LENGTH]; /* name of temp file */ data/fltk1.1-1.1.10/jpeg/jpeglib.h:663:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[JMSG_STR_PARM_MAX]; data/fltk1.1-1.1.10/png/png.c:26: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. PNG_CONST char png_libpng_ver[18] = PNG_LIBPNG_VER_STRING; data/fltk1.1-1.1.10/png/png.c:658: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. static PNG_CONST char short_months[12][4] = data/fltk1.1-1.1.10/png/png.c:672:7: [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 time_buf[29]; data/fltk1.1-1.1.10/png/png.c:683: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 near_time_buf[29]; data/fltk1.1-1.1.10/png/png.h:2633: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. char format[256]; \ data/fltk1.1-1.1.10/png/png.h:2644: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. char format[256]; \ data/fltk1.1-1.1.10/png/png.h:2655: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. char format[256]; \ data/fltk1.1-1.1.10/png/pngconf.h:1492:23: [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 png_memcpy memcpy data/fltk1.1-1.1.10/png/pngerror.c:42: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 msg[16]; data/fltk1.1-1.1.10/png/pngerror.c:138: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. static PNG_CONST char png_digit[16] = { data/fltk1.1-1.1.10/png/pngerror.c:183: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 msg[18+PNG_MAX_ERROR_TEXT]; data/fltk1.1-1.1.10/png/pngerror.c:199: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 msg[18+PNG_MAX_ERROR_TEXT]; data/fltk1.1-1.1.10/png/pngerror.c:225: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 error_number[16]; data/fltk1.1-1.1.10/png/pngerror.c:289: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 warning_number[16]; data/fltk1.1-1.1.10/png/pngread.c:122:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[80]; data/fltk1.1-1.1.10/png/pngread.c:204: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 msg[80]; data/fltk1.1-1.1.10/png/pngrtran.c:1307: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 msg[50]; data/fltk1.1-1.1.10/png/pngrutil.c:34:10: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). len = MultiByteToWideChar(CP_ACP, 0, nptr, -1, NULL, 0); data/fltk1.1-1.1.10/png/pngrutil.c:38:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, nptr, -1, str, len); data/fltk1.1-1.1.10/png/pngrutil.c:335:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char umsg[52]; data/fltk1.1-1.1.10/png/pngrutil.c:382: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 umsg[50]; data/fltk1.1-1.1.10/png/pngwrite.c:537:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[80]; data/fltk1.1-1.1.10/png/pngwrite.c:608: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 msg[80]; data/fltk1.1-1.1.10/png/pngwutil.c:196: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 msg[50]; data/fltk1.1-1.1.10/png/pngwutil.c:1257:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; data/fltk1.1-1.1.10/png/pngwutil.c:1394: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 buf[1]; data/fltk1.1-1.1.10/png/pngwutil.c:1628: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 buf[64]; data/fltk1.1-1.1.10/png/pngwutil.c:1637:7: [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 wc_buf[32]; data/fltk1.1-1.1.10/src/Fl.cxx:1238: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(temp, dwidgets, alloc_dwidgets * sizeof(Fl_Widget *)); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:95:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(bmp, "rb")) == NULL) return; data/fltk1.1-1.1.10/src/Fl_Bitmap.cxx:445: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_array, array, H * ((W + 7) / 8)); data/fltk1.1-1.1.10/src/Fl_Browser.cxx:54: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 txt[1]; // start of allocated array data/fltk1.1-1.1.10/src/Fl_Browser_load.cxx:34:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char newtext[MAXFL_BLINE]; data/fltk1.1-1.1.10/src/Fl_Browser_load.cxx:39: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). FILE *fl = fopen(filename,"r"); data/fltk1.1-1.1.10/src/Fl_Color_Chooser.cxx:97:34: [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. if (c->mode() == M_HEX) return sprintf(buf,"0x%02X", int(value())); data/fltk1.1-1.1.10/src/Fl_Counter.cxx:65: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 str[128]; format(str); data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:90:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char txt[1]; // start of allocated array data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx: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 filename[4096]; // Current file data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:471:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "%c:/", i); data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:495:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "%c:/", i); data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:535:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; // Input line data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:541:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). mtab = fopen("/etc/mnttab", "r"); // Fairly standard data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:543:14: [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). mtab = fopen("/etc/mtab", "r"); // More standard data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:545:14: [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). mtab = fopen("/etc/fstab", "r"); // Otherwise fallback to full list data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:547:14: [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). mtab = fopen("/etc/vfstab", "r"); // Alternate full list file data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:171:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fixpath[1024]; // Path with slashes converted data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:235: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 pathname[1024], // Pathname data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:246:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(menuname, "favorite%02d", v); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:279:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32], // Preference name data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:290:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "favorite%02d", i); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:369:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "favorite%02d", i); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:377:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "favorite%02d", i); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:600: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 tempname[1024]; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:711: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 temp[1024]; // Temporary pattern string data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:756: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 pathname[1024]; // Full path of directory data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:840: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 pathname[1024]; // New pathname for filename field data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:879: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 pathname[1024]; // New pathname for filename field data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:925: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 temp[1024]; // Temporary string for pattern data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:962: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 pathname[1024], // Pathname data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:980:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(menuname, "favorite%02d", i); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:1034:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (filename) fp = fopen(filename, "rb"); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:1112:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char pathname[1024]; // Filename + directory data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:1159: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 pathname[1024]; // Local copy of filename data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:1175: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 fixpath[1024]; // Path with slashes converted data/fltk1.1-1.1.10/src/Fl_File_Icon.cxx:102:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data_, d, nd * sizeof(short)); data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:135: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 command[255], // Command string ("vertex", etc.) data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:142:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(fti, "rb")) == NULL) data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:251:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int c = atoi(params); // Color value data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:290:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int c = atoi(params); // Color value data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:427:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[16]; // Color value data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:596: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 filename[1024]; // Filename data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:597: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 icondir[1024]; // Icon directory data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:807: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 full[1024]; // Full name of file data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:836: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 tmp[1024]; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:837: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 iconfilename[1024]; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:838: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 pattern[1024]; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:839: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 mimetype[1024]; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:841: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 full_iconfilename[1024]; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:849:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename, "rb")) != NULL) { data/fltk1.1-1.1.10/src/Fl_File_Input.cxx:234: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 newvalue[1024]; // New value data/fltk1.1-1.1.10/src/Fl_Font.H:91:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fontname[128]; // "Pretty" font name data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:85: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 ((GifFile = fopen(infname, "rb")) == NULL) { data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:90: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 b[6]; data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:348:16: [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. int length = sprintf((char*)(Suffix), data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:369: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_data[i + 2], (char*)(Image + i*Width), Width); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:862: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 wattr[8], hattr[8]; data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:878:10: [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(attr, "IMG"); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:1125:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(title_, "Untitled"); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:1353: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). border = (uchar)atoi(attr); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:1595:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). colspan = atoi(attr); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:1648:43: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fsize = (int)(textsize_ * pow(1.2, atoi(attr) - 3.0)); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:1651:39: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fsize = (int)(fsize * pow(1.2, atoi(attr))); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2094:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). colspan = atoi(attr); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2420:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255]; // Alignment value data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2445:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[255], // Name from string data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2621: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 dir[1024]; // Current directory data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2622: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 temp[1024], // Temporary filename data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2684:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). val = atoi(l); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2710: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 target[32]; // Current target data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2720:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[1024]; // Current directory data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2721:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[1024], // Temporary filename data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:3133: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 error[1024]; // Error buffer data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:3134: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 newname[1024]; // New filename buffer data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:3183:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(localname, "rb")) != NULL) data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:3473:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). else return atoi(p+1); data/fltk1.1-1.1.10/src/Fl_Image.cxx:166:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, wd); data/fltk1.1-1.1.10/src/Fl_Image.cxx:171: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(new_array, array, w() * h() * d()); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:197:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXBUF]; data/fltk1.1-1.1.10/src/Fl_Input_.cxx:378:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXBUF]; data/fltk1.1-1.1.10/src/Fl_Input_.cxx:397:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXBUF]; data/fltk1.1-1.1.10/src/Fl_Input_.cxx:411:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXBUF]; data/fltk1.1-1.1.10/src/Fl_Input_.cxx:503:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXBUF]; data/fltk1.1-1.1.10/src/Fl_Input_.cxx:574: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(undobuffer+undocut, value_+b, e-b); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:579: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(undobuffer, value_+b, e-b); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:585: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(undobuffer, value_+b, e-b); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:604:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer+b, text, ilen); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:652:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer+b, undobuffer, ilen); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:659: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(undobuffer, buffer+b, xlen); data/fltk1.1-1.1.10/src/Fl_JPEG_Image.cxx:113:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(jpeg, "rb")) == NULL) return; data/fltk1.1-1.1.10/src/Fl_Menu_.cxx:86:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char menupath[1024] = ""; // File/Export data/fltk1.1-1.1.10/src/Fl_Menu_.cxx:107: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 itempath[1024]; // eg. Edit/Copy data/fltk1.1-1.1.10/src/Fl_Menu_.cxx:198: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(newMenu, m, n*sizeof(Fl_Menu_Item)); data/fltk1.1-1.1.10/src/Fl_Menu_add.cxx:113:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/src/Fl_Menu_add.cxx:187: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(newMenu, local_array, n*sizeof(Fl_Menu_Item)); data/fltk1.1-1.1.10/src/Fl_Menu_add.cxx:224:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/src/Fl_PNG_Image.cxx:74:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(png, "rb")) == NULL) return; data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:51: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 line[1024], // Input line data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:61:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(name, "rb")) == NULL) return; data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:85:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). format = atoi(lineptr); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:213:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (ncolors < 0) new_data = new char *[h() + 2]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:214: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. else new_data = new char *[h() + ncolors + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:225: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_row, data()[1], ncolors * 4); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:239: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_row, data()[i + ncolors + 1], chars_per_line); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:280:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(new_info, "%d %d %d %d", W, H, ncolors, chars_per_pixel); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:289:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (ncolors < 0) new_data = new char *[H + 2]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:290: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. else new_data = new char *[H + ncolors + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:300: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_row, data()[1], ncolors * 4); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:366: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 line[255]; // New colormap line data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:405:34: [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. if (chars_per_pixel > 1) sprintf(line, "%c%c c #%02X%02X%02X", data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:408:14: [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. else sprintf(line, "%c c #%02X%02X%02X", data()[color + 1][0], r, g, b); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:410:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. delete[] (char *)data()[color + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:411: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 **)data())[color + 1] = new char[strlen(line) + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:412:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. strcpy((char *)data()[color + 1], line); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:420:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (int i = 0; i < count(); i ++) delete[] (char *)data()[i]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:445: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 line[255]; // New colormap line data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:481:34: [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. if (chars_per_pixel > 1) sprintf(line, "%c%c c #%02X%02X%02X", data()[i + 1][0], data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:483:14: [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. else sprintf(line, "%c c #%02X%02X%02X", data()[i + 1][0], g, g, g); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:485:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. delete[] (char *)data()[i + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:486: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 **)data())[i + 1] = new char[strlen(line) + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:487:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. strcpy((char *)data()[i + 1], line); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:220:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). value = v ? atoi( v ) : defaultValue; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:230:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( nameBuffer, "%d", value ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:252:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( nameBuffer, "%g", value ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:263:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( nameBuffer, "%.*g", precision, value ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:285:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( nameBuffer, "%g", value ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:296:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( nameBuffer, "%.*g", precision, value ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:555:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(data_, "%u", n); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:599: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, path, len ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:619: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( p, path, len ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:629: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 filename[ FL_PATH_MAX ]; filename[0] = 0; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:665:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(filename, "C:\\FLTK"); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:705:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(filename, "/etc/fltk/"); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:731:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[ FL_PATH_MAX ]; filename[0] = 0; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:766:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:767:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen( filename_, "rb" ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:809:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen( filename_, "wb" ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:1014: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( dst+a, line, b+1 ); data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:134: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(temp, images_, alloc_images_ * sizeof(Fl_Shared_Image *)); data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:226:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(name_, "rb")) != NULL) { data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:425: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(temp, handlers_, alloc_handlers_ * sizeof(Fl_Shared_Handler)); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:99:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( dst, "<B" ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:101:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( dst, "<I" ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:106:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( dst, "<U" ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:108:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( dst, "<O" ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:110:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( dst, "<S" ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:162:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( dst, "/%c", toupper( c ) ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:192:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255]; data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:206:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf+1+strlen(buf+1), "/\033!%c", cnt ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:209:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( buf+1, ";-" ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:247:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255]; data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:41:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void histogramCharacters( const char *string, int length, char hist[ 256 ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:41:66: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void histogramCharacters( const char *string, int length, char hist[ 256 ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:44:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char chooseNullSubsChar( char hist[ 256 ] ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:44:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 chooseNullSubsChar( char hist[ 256 ] ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:69:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *ControlCodeTable[ 32 ] = { data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:153: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( t, mBuf, mGapStart ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:154: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( &t[ mGapStart ], &mBuf[ mGapEnd ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:180: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( mBuf, t, mGapStart ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:181: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( &mBuf[ mGapEnd ], &t[ mGapStart ], insertedLength - mGapStart ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx: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( s, &mBuf[ start ], copiedLength ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:224: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( s, &mBuf[ start + ( mGapEnd - mGapStart ) ], copiedLength ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:227: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( s, &mBuf[ start ], part1Length ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:228: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( &s[ part1Length ], &mBuf[ mGapEnd ], copiedLength - part1Length ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:330: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( &mBuf[ toPos ], &fromBuf->mBuf[ fromStart ], copiedLength ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:332: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( &mBuf[ toPos ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:337: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( &mBuf[ toPos ], &fromBuf->mBuf[ fromStart ], part1Length ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:338: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( &mBuf[ toPos + part1Length ], &fromBuf->mBuf[ fromBuf->mGapEnd ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:566: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( outPtr, textIn, len ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:960:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( outStr, "<del>" ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:963:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( outStr, "<nul>" ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1000: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 expandedChar[ FL_TEXT_MAX_EXP_CHAR_LEN ]; data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1251: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 histogram[ 256 ]; data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1304:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void histogramCharacters( const char *string, int length, char hist[ 256 ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1304:66: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void histogramCharacters( const char *string, int length, char hist[ 256 ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1332: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 chooseNullSubsChar( char hist[ 256 ] ) { data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1332:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 chooseNullSubsChar( char hist[ 256 ] ) { data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1334:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char replacements[ N_REPLACEMENTS ] = {1, 2, 3, 4, 5, 6, 14, 15, 16, 17, 18, 19, data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1364: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( &mBuf[ pos ], s, insertedLength ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1411: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( undobuffer, mBuf+(mGapEnd-mGapStart)+start, end-start ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1416: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( undobuffer, mBuf+start, end-start ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1422: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( undobuffer, mBuf+start, prelen ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1423: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( undobuffer+prelen, mBuf+mGapEnd, end-start-prelen); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2143: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( newBuf, mBuf, newGapStart ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2144: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( &newBuf[ newGapEnd ], &mBuf[ newGapStart ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2146: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( &newBuf[ newGapEnd + mGapStart - newGapStart ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2149: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( newBuf, mBuf, mGapStart ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2150: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( &newBuf[ mGapStart ], &mBuf[ mGapEnd ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2152: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( &newBuf[ newGapEnd ], data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2460: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 * outStr, *outPtr, *c, expandedChar[ FL_TEXT_MAX_EXP_CHAR_LEN ]; data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2502:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(fp = fopen(file, "r"))) return 1; data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2518:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(fp = fopen(file, "w"))) return 1; data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:767: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 expandedChar[ FL_TEXT_MAX_EXP_CHAR_LEN ]; data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:1444: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 expandedChar[ FL_TEXT_MAX_EXP_CHAR_LEN ], outStr[ MAX_DISP_LINE_LEN ]; data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:1892: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 expandedChar[ FL_TEXT_MAX_EXP_CHAR_LEN ]; data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:2268:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lineNumString[12]; data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:2300:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(lineNumString, "%*d", nCols, line); data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:2345: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 expandedChar[ FL_TEXT_MAX_EXP_CHAR_LEN ]; data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:2794:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expChar[ FL_TEXT_MAX_EXP_CHAR_LEN ]; data/fltk1.1-1.1.10/src/Fl_Text_Editor.cxx:185: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 s[2] = "\0"; data/fltk1.1-1.1.10/src/Fl_Valuator.cxx:129: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 temp[32]; data/fltk1.1-1.1.10/src/Fl_Value_Input.cxx:65:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/fltk1.1-1.1.10/src/Fl_Value_Output.cxx:48:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/fltk1.1-1.1.10/src/Fl_Value_Slider.cxx:55:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/fltk1.1-1.1.10/src/Fl_XBM_Image.cxx:50:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen(name, "rb")) == NULL) return; data/fltk1.1-1.1.10/src/Fl_XBM_Image.cxx:52:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/fltk1.1-1.1.10/src/Fl_XBM_Image.cxx:53: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 junk[1024]; data/fltk1.1-1.1.10/src/Fl_XPM_Image.cxx:59:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen(name, "rb")) == NULL) return; data/fltk1.1-1.1.10/src/Fl_XPM_Image.cxx:62:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char** new_data = new char *[INITIALLINES]; data/fltk1.1-1.1.10/src/Fl_XPM_Image.cxx:65:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAXSIZE+20]; data/fltk1.1-1.1.10/src/Fl_XPM_Image.cxx:108: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. temp_data = new char *[malloc_size + INITIALLINES]; data/fltk1.1-1.1.10/src/Fl_XPM_Image.cxx:109: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(temp_data, new_data, sizeof(char *) * malloc_size); data/fltk1.1-1.1.10/src/Fl_XPM_Image.cxx:115: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_data[i], buffer,myp-buffer); data/fltk1.1-1.1.10/src/Fl_abort.cxx:47:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/src/Fl_abort.cxx:56:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/src/Fl_display.cxx:39:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char e[1024]; data/fltk1.1-1.1.10/src/Fl_display.cxx:40:3: [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(e,"DISPLAY="); data/fltk1.1-1.1.10/src/Fl_get_key.cxx:41:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char fl_key_vector[32]; // in Fl_x.cxx data/fltk1.1-1.1.10/src/Fl_get_system_colors.cxx:270:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char e[1024]; data/fltk1.1-1.1.10/src/Fl_get_system_colors.cxx:271:3: [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(e,"FLTK_SCHEME="); data/fltk1.1-1.1.10/src/Fl_get_system_colors.cxx:305:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tile_cmap[i], "%c c #%02x%02x%02x", "Oo."[i], nr, ng, nb); data/fltk1.1-1.1.10/src/Fl_mac.cxx:94:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fl_key_vector[32]; // used by Fl::get_key() data/fltk1.1-1.1.10/src/Fl_mac.cxx:633: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_timers, mac_timers, sizeof(MacTimeout) * mac_timer_used); data/fltk1.1-1.1.10/src/Fl_mac.cxx:1092:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[5]; data/fltk1.1-1.1.10/src/Fl_mac.cxx:1232: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 filename[1024]; data/fltk1.1-1.1.10/src/Fl_mac.cxx:1912: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(pTitle+1, name, pTitle[0]); data/fltk1.1-1.1.10/src/Fl_mac.cxx:2065:41: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (name) { pTitle[0] = strlen(name); memcpy(pTitle+1, name, pTitle[0]); } data/fltk1.1-1.1.10/src/Fl_mac.cxx:2268: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 *fl_selection_buffer[2]; data/fltk1.1-1.1.10/src/Fl_mac.cxx:2286: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(fl_selection_buffer[clipboard], stuff, len); data/fltk1.1-1.1.10/src/Fl_win32.cxx:405: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 *fl_selection_buffer[2]; data/fltk1.1-1.1.10/src/Fl_win32.cxx:408: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 fl_i_own_selection[2]; data/fltk1.1-1.1.10/src/Fl_win32.cxx:463: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(fl_selection_buffer[clipboard], stuff, len); data/fltk1.1-1.1.10/src/Fl_win32.cxx:684: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_timers, win32_timers, sizeof(Win32Timer) * win32_timer_used); data/fltk1.1-1.1.10/src/Fl_win32.cxx:881: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 buffer[2]; data/fltk1.1-1.1.10/src/Fl_win32.cxx:1023: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(p, fl_selection_buffer[1], fl_selection_length[1]); data/fltk1.1-1.1.10/src/Fl_x.cxx:312:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[128], buf2[128]; data/fltk1.1-1.1.10/src/Fl_x.cxx:313:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf1, "XRequest.%d", e->request_code); data/fltk1.1-1.1.10/src/Fl_x.cxx:446: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 *fl_selection_buffer[2]; data/fltk1.1-1.1.10/src/Fl_x.cxx:449:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fl_i_own_selection[2]; data/fltk1.1-1.1.10/src/Fl_x.cxx:506: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(fl_selection_buffer[clipboard], stuff, len); data/fltk1.1-1.1.10/src/Fl_x.cxx:519: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 fl_key_vector[32]; // used by Fl::get_key() data/fltk1.1-1.1.10/src/Fl_x.cxx:584: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(fl_key_vector, xevent.xkeymap.key_vector, 32); data/fltk1.1-1.1.10/src/Fl_x.cxx:610: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(buffer+bytesread, portion, count*format/8); data/fltk1.1-1.1.10/src/Fl_x.cxx:656:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (unsigned char *)fl_selection_buffer[clipboard], data/fltk1.1-1.1.10/src/Fl_x.cxx:835: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 buffer[21]; data/fltk1.1-1.1.10/src/Fl_x.cxx:1204:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/fltk1.1-1.1.10/src/filename_absolute.cxx:119: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 cwd_buf[1024]; // Current directory data/fltk1.1-1.1.10/src/filename_expand.cxx:90: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(a, value, t); data/fltk1.1-1.1.10/src/filename_isdir.cxx:51: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 fn[1024]; data/fltk1.1-1.1.10/src/filename_isdir.cxx:64:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fn + 1, ":/"); data/fltk1.1-1.1.10/src/filename_isdir.cxx:69: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(fn, n, length); data/fltk1.1-1.1.10/src/filename_isdir.cxx:80: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(fn, n, length); data/fltk1.1-1.1.10/src/filename_list.cxx:84: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(fullname, d, dirlen+1); data/fltk1.1-1.1.10/src/filename_list.cxx:92: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(name, de->d_name, len+1); data/fltk1.1-1.1.10/src/fl_ask.cxx:186:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/fltk1.1-1.1.10/src/fl_dnd_win32.cxx:44:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *fl_selection_buffer[2]; data/fltk1.1-1.1.10/src/fl_dnd_win32.cxx:47: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. extern char fl_i_own_selection[2]; data/fltk1.1-1.1.10/src/fl_dnd_x.cxx:47: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. extern char fl_i_own_selection[2]; data/fltk1.1-1.1.10/src/fl_dnd_x.cxx:48: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. extern char *fl_selection_buffer[2]; data/fltk1.1-1.1.10/src/fl_draw.cxx:127:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXBUF]; data/fltk1.1-1.1.10/src/fl_draw.cxx:129: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 symbol[2][255], *symptr; data/fltk1.1-1.1.10/src/fl_draw.cxx:281:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXBUF]; data/fltk1.1-1.1.10/src/fl_draw.cxx:286: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 symbol[2][255], *symptr; data/fltk1.1-1.1.10/src/fl_file_dir.cxx:68:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char retname[1024]; // Returned filename data/fltk1.1-1.1.10/src/fl_file_dir.cxx:147:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char retname[1024]; // Returned directory name data/fltk1.1-1.1.10/src/fl_font_mac.cxx:43:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fn[80]; data/fltk1.1-1.1.10/src/fl_font_mac.cxx:307:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2]; data/fltk1.1-1.1.10/src/fl_font_x.cxx:135: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 namebuffer[1024]; // holds scalable font name data/fltk1.1-1.1.10/src/fl_font_x.cxx:148:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int thissize = c ? atoi(c) : MAXSIZE; data/fltk1.1-1.1.10/src/fl_font_x.cxx:158: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(namebuffer,thisname,l); data/fltk1.1-1.1.10/src/fl_font_x.cxx:159:12: [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. l += sprintf(namebuffer+l,"%d",size); data/fltk1.1-1.1.10/src/fl_font_xft.cxx:298: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 xlfd[128]; // we will put our synthetic XLFD in here data/fltk1.1-1.1.10/src/fl_line_style.cxx:131:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[7]; data/fltk1.1-1.1.10/src/fl_open_uri.cxx:103: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 scheme[255]; data/fltk1.1-1.1.10/src/fl_open_uri.cxx:120: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 *argv[3]; // Command-line arguments data/fltk1.1-1.1.10/src/fl_open_uri.cxx:143:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[1024], // Command to run... data/fltk1.1-1.1.10/src/fl_open_uri.cxx:196:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. argv[0] = (char *)commands[i]; data/fltk1.1-1.1.10/src/fl_open_uri.cxx:295:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open("/dev/null", O_RDONLY); data/fltk1.1-1.1.10/src/fl_open_uri.cxx:298:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open("/dev/null", O_WRONLY); data/fltk1.1-1.1.10/src/fl_open_uri.cxx:301:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open("/dev/null", O_WRONLY); data/fltk1.1-1.1.10/src/fl_open_uri.cxx:352: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 msg[1024]; data/fltk1.1-1.1.10/src/fl_read_image.cxx:105:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char cvals[4096][3]; // Color values from the colormap... data/fltk1.1-1.1.10/src/fl_set_font.cxx:47: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(t, fl_fonts, FL_FREE_FONT*sizeof(Fl_Fontdesc)); data/fltk1.1-1.1.10/src/fl_set_fonts_mac.cxx:139:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/fltk1.1-1.1.10/src/fl_set_fonts_mac.cxx:161: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*)name)+1, s->name+1, len ); data/fltk1.1-1.1.10/src/fl_set_fonts_win32.cxx:72:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[LF_FACESIZE + 1]; data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:216:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int asize = atoi(a); data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:217:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int bsize = atoi(b); data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:267:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:269:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf,"-*-"); strcpy(buf+3,fl_encoding); data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:279:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char canon[1024]; data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:285: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 this_canon[1024]; data/fltk1.1-1.1.10/src/fl_set_fonts_xft.cxx:303:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xft_name[LOCAL_RAW_NAME_MAX]; data/fltk1.1-1.1.10/src/fl_shortcut.cxx:130:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[20]; data/fltk1.1-1.1.10/src/fl_shortcut.cxx:146:29: [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. if (shortcut & FL_SHIFT) {strcpy(p,"Shift+"); p += 6;} //: Mac hollow up arrow data/fltk1.1-1.1.10/src/fl_shortcut.cxx:147:29: [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. if (shortcut & FL_META) {strcpy(p,"Cmd+"); p += 4;} //: Mac 'Apple' key data/fltk1.1-1.1.10/src/fl_shortcut.cxx:148:29: [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. if (shortcut & FL_ALT) {strcpy(p,"Option+"); p += 7;} //: Mac 'Alt/Option' or fancy switch symbol data/fltk1.1-1.1.10/src/fl_shortcut.cxx:149:29: [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. if (shortcut & FL_CTRL) {strcpy(p,"Ctrl+"); p += 5;} //: Mac ctrl key data/fltk1.1-1.1.10/src/fl_shortcut.cxx:151:28: [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. if (shortcut & FL_META) {strcpy(p,"Meta+"); p += 5;} data/fltk1.1-1.1.10/src/fl_shortcut.cxx:152:27: [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. if (shortcut & FL_ALT) {strcpy(p,"Alt+"); p += 4;} data/fltk1.1-1.1.10/src/fl_shortcut.cxx:153:29: [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. if (shortcut & FL_SHIFT) {strcpy(p,"Shift+"); p += 6;} data/fltk1.1-1.1.10/src/fl_shortcut.cxx:154:28: [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. if (shortcut & FL_CTRL) {strcpy(p,"Ctrl+"); p += 5;} data/fltk1.1-1.1.10/src/fl_shortcut.cxx:177:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p,"KP_"); p += 3; data/fltk1.1-1.1.10/src/flstring.c:64: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(dst + dstlen, src, srclen); data/fltk1.1-1.1.10/src/flstring.c:96: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(dst, src, srclen); data/fltk1.1-1.1.10/src/forms_fselect.cxx:33: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 fl_directory[1024]; data/fltk1.1-1.1.10/src/forms_fselect.cxx:35: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 fl_filename[1024]; data/fltk1.1-1.1.10/src/forms_timer.cxx:75: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 str[32]; data/fltk1.1-1.1.10/src/forms_timer.cxx:86:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%.1f", d); data/fltk1.1-1.1.10/src/forms_timer.cxx:89:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%d:%04.1f", tt, d - 60.0 * tt); data/fltk1.1-1.1.10/src/glut_compatability.cxx:446: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 symbol[1024]; data/fltk1.1-1.1.10/src/glut_font.cxx:50: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 a[1]; a[0] = character; data/fltk1.1-1.1.10/src/scandir.c:96: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 (v[i++], d, dsize); data/fltk1.1-1.1.10/src/scandir_win32.c:54:19: [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. if ((len==0)) { strcpy(findIn, ".\\*"); } data/fltk1.1-1.1.10/src/scandir_win32.c:56:34: [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. if ((len==1)&& (d[-1]=='.')) { strcpy(findIn, ".\\*"); is_dir = 1; } data/fltk1.1-1.1.10/src/scandir_win32.c:62:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(d, "\\*"); data/fltk1.1-1.1.10/src/scandir_win32.c:83: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. if (NDir) memcpy(tempDir, dir, sizeof(struct dirent*)*NDir); data/fltk1.1-1.1.10/src/vsnprintf.c:47: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 tformat[100], /* Temporary format string for sprintf() */ data/fltk1.1-1.1.10/src/vsnprintf.c:213: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(bufptr, va_arg(ap, char *), (size_t)width); data/fltk1.1-1.1.10/test/adjuster.cxx:44: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 buf1[100]; data/fltk1.1-1.1.10/test/adjuster.cxx:51: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 buf2[100]; data/fltk1.1-1.1.10/test/ask.cxx:61:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128] = "test text"; data/fltk1.1-1.1.10/test/blocks.cxx:401:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data_ptr, sample_ptr, samples * 4); data/fltk1.1-1.1.10/test/blocks.cxx:458: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 title_[255]; data/fltk1.1-1.1.10/test/blocks.cxx:699: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 s[255]; data/fltk1.1-1.1.10/test/blocks.cxx:701:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, " Score: %d", score_); data/fltk1.1-1.1.10/test/blocks.cxx:706:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "High Score: %d ", high_score_); data/fltk1.1-1.1.10/test/blocks.cxx:711:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "Level: %d ", level_); data/fltk1.1-1.1.10/test/blocks.cxx:831:3: [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(title_, "Level: 1"); data/fltk1.1-1.1.10/test/blocks.cxx:856:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(title_, "Level: %d", level_); data/fltk1.1-1.1.10/test/browser.cxx:89:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int line = atoi(field->value()); data/fltk1.1-1.1.10/test/button.cxx:45:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1000]; data/fltk1.1-1.1.10/test/checkers.cxx:172: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 centralsquares[45]; data/fltk1.1-1.1.10/test/checkers.cxx:173:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char is_protected[45]; data/fltk1.1-1.1.10/test/checkers.cxx:726: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 line[100],*m1,*m2; data/fltk1.1-1.1.10/test/checkers.cxx:999:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; sprintf(buf,"%d",num); data/fltk1.1-1.1.10/test/checkers.cxx:999:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. char buf[20]; sprintf(buf,"%d",num); data/fltk1.1-1.1.10/test/colbrowser.cxx:42: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 dbname[FL_PATH_MAX]; data/fltk1.1-1.1.10/test/colbrowser.cxx:57:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dbname, "rgb.txt"); data/fltk1.1-1.1.10/test/colbrowser.cxx:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512], *p; data/fltk1.1-1.1.10/test/colbrowser.cxx: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 name[256], buf[256]; data/fltk1.1-1.1.10/test/colbrowser.cxx:142: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). if (!(fp = fopen(__XOS2RedirRoot(fname), "r"))) data/fltk1.1-1.1.10/test/colbrowser.cxx:144: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). if (!(fp = fopen(fname, "r"))) data/fltk1.1-1.1.10/test/colbrowser.cxx:249:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/fltk1.1-1.1.10/test/color_chooser.cxx:133:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int visid = atoi(argv[i]); data/fltk1.1-1.1.10/test/cursor.cxx:143:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; char *p = buf; data/fltk1.1-1.1.10/test/demo.cxx:105:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/fltk1.1-1.1.10/test/demo.cxx:107:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iname[9][64]; data/fltk1.1-1.1.10/test/demo.cxx:108: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 icommand[9][64]; data/fltk1.1-1.1.10/test/demo.cxx:182: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 stack[64][32]; data/fltk1.1-1.1.10/test/demo.cxx:299: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 line[256], mname[64],iname[64],cname[64]; data/fltk1.1-1.1.10/test/demo.cxx:301:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fin = fopen(fname,"r"); data/fltk1.1-1.1.10/test/demo.cxx:348:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/fltk1.1-1.1.10/test/editor.cxx:58:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[256] = ""; data/fltk1.1-1.1.10/test/editor.cxx:59:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char title[256]; data/fltk1.1-1.1.10/test/editor.cxx:174:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255], data/fltk1.1-1.1.10/test/editor.cxx:442:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char search[256]; data/fltk1.1-1.1.10/test/editor.cxx:558:28: [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. if (filename[0] == '\0') strcpy(title, "Untitled"); data/fltk1.1-1.1.10/test/editor.cxx:569:16: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. if (changed) strcat(title, " (modified)"); data/fltk1.1-1.1.10/test/file_chooser.cxx:217: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 preview[1024], // Preview filename data/fltk1.1-1.1.10/test/file_chooser.cxx:248: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 preview[1024], // Preview filename data/fltk1.1-1.1.10/test/file_chooser.cxx:254: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 line[256]; // Line from file data/fltk1.1-1.1.10/test/file_chooser.cxx:268:14: [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). in = fopen(name, "rb"); data/fltk1.1-1.1.10/test/file_chooser.cxx:269:14: [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). out = fopen(outname, "wb"); data/fltk1.1-1.1.10/test/file_chooser.cxx:310: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 relative[1024]; // Relative filename data/fltk1.1-1.1.10/test/fl_jpeg_image.cxx:88:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). visid = atoi(argv[i+1]); data/fltk1.1-1.1.10/test/fl_jpeg_image.cxx:141:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * infile = fopen(name, "rb"); data/fltk1.1-1.1.10/test/fonts.cxx:75:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/fltk1.1-1.1.10/test/fonts.cxx:76:30: [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. if (j < n && i==s[j]) {sprintf(buf,"@b%d",i); j++;} data/fltk1.1-1.1.10/test/fonts.cxx:77:12: [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. else sprintf(buf,"%d",i); data/fltk1.1-1.1.10/test/fonts.cxx:86:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/fltk1.1-1.1.10/test/fonts.cxx:87:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"@b%d",s[i]); data/fltk1.1-1.1.10/test/fonts.cxx:100:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pickedsize = atoi(c); data/fltk1.1-1.1.10/test/fonts.cxx:105:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[400]; data/fltk1.1-1.1.10/test/fonts.cxx:110:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(label, "Hello, world!\n"); data/fltk1.1-1.1.10/test/fonts.cxx:154:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/fltk1.1-1.1.10/test/fractals.cxx:625:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255]; data/fltk1.1-1.1.10/test/fractals.cxx:654:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "FPS=%d", fps); data/fltk1.1-1.1.10/test/fromdos.c:30:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempname[1024]; data/fltk1.1-1.1.10/test/fromdos.c:31: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). FILE* in = fopen(fname,"rb"); data/fltk1.1-1.1.10/test/fromdos.c:39:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(tempname, ".temp"); data/fltk1.1-1.1.10/test/fromdos.c:40: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). out = fopen(tempname, "wb"); data/fltk1.1-1.1.10/test/glpuzzle.cxx:60: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. typedef char Config[HEIGHT][WIDTH]; data/fltk1.1-1.1.10/test/glpuzzle.cxx:77: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 convert[PIECES + 1] = data/fltk1.1-1.1.10/test/glpuzzle.cxx:80: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 colors[PIECES + 1][3] = data/fltk1.1-1.1.10/test/glpuzzle.cxx:111: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 xsize[PIECES + 1] = data/fltk1.1-1.1.10/test/glpuzzle.cxx:113: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 ysize[PIECES + 1] = data/fltk1.1-1.1.10/test/glpuzzle.cxx:437: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 done[PIECES + 1]; data/fltk1.1-1.1.10/test/glpuzzle.cxx:494:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/fltk1.1-1.1.10/test/glpuzzle.cxx:502:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d moves to complete!", i); data/fltk1.1-1.1.10/test/glpuzzle.cxx:536: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(newpiece->pieces, config, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:579: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(newpieces, pieces, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:634: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(pieces, puzzle->pieces, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:745: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(thePuzzle, startPuzzle->pieces, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:754:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/fltk1.1-1.1.10/test/glpuzzle.cxx:774:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "I can't solve it! (%d positions examined)", i); data/fltk1.1-1.1.10/test/glpuzzle.cxx:1086: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(thePuzzle, newpieces, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:1090: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(thePuzzle, newpieces, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:1094: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(thePuzzle, newpieces, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:1098: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(thePuzzle, newpieces, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/glpuzzle.cxx:1174: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(thePuzzle, startConfig, HEIGHT * WIDTH); data/fltk1.1-1.1.10/test/image.cxx:93:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). visid = atoi(argv[i+1]); data/fltk1.1-1.1.10/test/keyboard.cxx:128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[100]; data/fltk1.1-1.1.10/test/keyboard.cxx:134:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "'%c'", k); data/fltk1.1-1.1.10/test/keyboard.cxx:136:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "FL_F+%d", k - FL_F); data/fltk1.1-1.1.10/test/keyboard.cxx:138:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "FL_KP+'%c'", k-FL_KP); data/fltk1.1-1.1.10/test/keyboard.cxx:140:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "FL_Button+%d", k-FL_Button); data/fltk1.1-1.1.10/test/keyboard.cxx:142:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "0x%04x", k); data/fltk1.1-1.1.10/test/line_style.cxx:50:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5]; data/fltk1.1-1.1.10/test/list_visuals.cxx:100:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/fltk1.1-1.1.10/test/list_visuals.cxx:111:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. q += sprintf(q,"%d%c", n, what); data/fltk1.1-1.1.10/test/mandelbrot.cxx:61:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/fltk1.1-1.1.10/test/mandelbrot.cxx:62:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%+.10f", d->X); x_input->value(buffer); data/fltk1.1-1.1.10/test/mandelbrot.cxx:63:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%+.10f", d->Y); y_input->value(buffer); data/fltk1.1-1.1.10/test/mandelbrot.cxx:64:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%.2g", d->scale); w_input->value(buffer); data/fltk1.1-1.1.10/test/mandelbrot.cxx:176:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char s[128]; data/fltk1.1-1.1.10/test/mandelbrot.cxx:177:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "Julia %.7f %.7f",jbrot.d->jX,jbrot.d->jY); data/fltk1.1-1.1.10/test/menubar.cxx:212:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/fltk1.1-1.1.10/test/menubar.cxx:213:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"item %d",i); data/fltk1.1-1.1.10/test/navigation.cxx:42:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (argc > 1) srand(atoi(argv[1])); data/fltk1.1-1.1.10/test/overlay.cxx:56:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Fl_Color n = (Fl_Color)atoi(argv[i]); data/fltk1.1-1.1.10/test/pixmap_browser.cxx:43: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 name[1024]; data/fltk1.1-1.1.10/test/scroll.cxx:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[20]; sprintf(buf,"%d",n++); data/fltk1.1-1.1.10/test/scroll.cxx:109:19: [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. char buf[20]; sprintf(buf,"%d",n++); data/fltk1.1-1.1.10/test/sudoku.cxx:169: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 grid_values_[9][9]; data/fltk1.1-1.1.10/test/sudoku.cxx:431:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data_ptr, sample_data[note - 'A'], sample_size * 4); data/fltk1.1-1.1.10/test/sudoku.cxx:516: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 s[2]; data/fltk1.1-1.1.10/test/sudoku.cxx:844:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int diff = atoi((char *)d); data/fltk1.1-1.1.10/test/sudoku.cxx:895:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char taken[10] = { 0 }; data/fltk1.1-1.1.10/test/sudoku.cxx:1000: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 name[255]; data/fltk1.1-1.1.10/test/sudoku.cxx:1005:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "value%d.%d", j, k); data/fltk1.1-1.1.10/test/sudoku.cxx:1014:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "state%d.%d", j, k); data/fltk1.1-1.1.10/test/sudoku.cxx:1018:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "readonly%d.%d", j, k); data/fltk1.1-1.1.10/test/sudoku.cxx:1029:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "test%d%d.%d", m, j, k); data/fltk1.1-1.1.10/test/sudoku.cxx:1257: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 name[255]; data/fltk1.1-1.1.10/test/sudoku.cxx:1260:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "value%d.%d", j, k); data/fltk1.1-1.1.10/test/sudoku.cxx:1263:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "state%d.%d", j, k); data/fltk1.1-1.1.10/test/sudoku.cxx:1266:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "readonly%d.%d", j, k); data/fltk1.1-1.1.10/test/sudoku.cxx:1270:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "test%d%d.%d", m, j, k); data/fltk1.1-1.1.10/test/symbols.cxx:49:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[80]; data/fltk1.1-1.1.10/test/symbols.cxx:77:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[255]; data/fltk1.1-1.1.10/test/threads.cxx:86: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 s[128]; data/fltk1.1-1.1.10/test/threads.cxx:87:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%d", n); data/fltk1.1-1.1.10/test/tiled_image.cxx:55:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). visid = atoi(argv[i+1]); data/fltk1.1-1.1.10/zlib/crc32.c:161:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out = fopen("crc32.h", "w"); data/fltk1.1-1.1.10/zlib/gzio.c:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmode[80]; /* copy of mode, without the compression level */ data/fltk1.1-1.1.10/zlib/gzio.c:223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[46]; /* allow for up to 128-bit integers */ data/fltk1.1-1.1.10/zlib/gzio.c:226:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "<fd:%d>", fd); /* for debugging */ data/fltk1.1-1.1.10/zlib/gzio.c:605:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[Z_PRINTF_BUFSIZE]; data/fltk1.1-1.1.10/zlib/gzio.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 buf[Z_PRINTF_BUFSIZE]; data/fltk1.1-1.1.10/zlib/gzio.c:1009:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(s->msg, ": "); data/fltk1.1-1.1.10/zlib/inflate.c:572: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 hbuf[4]; /* buffer for gzip header crc calculation */ data/fltk1.1-1.1.10/zlib/inflate.c:1267: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[4]; /* to restore bit buffer to byte string */ data/fltk1.1-1.1.10/zlib/trees.c:332:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *header = fopen("trees.h", "w"); data/fltk1.1-1.1.10/zlib/zutil.c:14:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * const z_errmsg[10] = { data/fltk1.1-1.1.10/zlib/zutil.h:53: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. extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ data/fltk1.1-1.1.10/zlib/zutil.h:111:6: [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). fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512") data/fltk1.1-1.1.10/zlib/zutil.h:173:30: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define F_OPEN(name, mode) fopen((name), (mode)) data/fltk1.1-1.1.10/zlib/zutil.h:230: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. # define zmemcpy memcpy data/fltk1.1-1.1.10/FL/Fl_Preferences.H:155:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(); data/fltk1.1-1.1.10/fluid/CodeEditor.cxx:353:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = strlen(text); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:270: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). size_t n = strlen(k); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:641: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). const char* e = c+strlen(c), *csc = c; data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1077:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prefix() && strlen(prefix())) data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1099:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/fltk1.1-1.1.10/fluid/Fl_Function_Type.cxx:1154:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prefix() && strlen(prefix())) data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:566:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *e = n + strlen(n); data/fltk1.1-1.1.10/fluid/Fl_Type.cxx:789: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 (p && strlen(p)) data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:371: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(i->value()) >= oldlabellen) { data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:372: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). oldlabellen = strlen(i->value())+128; data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:1230: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 (c && *c && c[strlen(c)-1] != '*' && strcmp(c,"long")) data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:1885:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,c,d-c+1); data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:2601: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 (!strcmp(value+strlen(value)-5,"FRAME")) goto TRY_BOXTYPE; data/fltk1.1-1.1.10/fluid/Fl_Widget_Type.cxx:2602: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 (!strcmp(value+strlen(value)-3,"BOX")) goto TRY_BOXTYPE; data/fltk1.1-1.1.10/fluid/Fluid_Image.cxx:64: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). write_cstring(img->data()[0], strlen(img->data()[0])); data/fltk1.1-1.1.10/fluid/Fluid_Image.cxx:77:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). write_cstring(img->data()[i], strlen(img->data()[i])); data/fltk1.1-1.1.10/fluid/code.cxx:230:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). void write_cstring(const char *w) {write_cstring(w,strlen(w));} data/fltk1.1-1.1.10/fluid/factory.cxx:1021:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *t1 = new char[strlen(txt)+6]; data/fltk1.1-1.1.10/fluid/factory.cxx:1022: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( t1, " " ); data/fltk1.1-1.1.10/fluid/file.cxx:104: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). needspace = !isspace(format[strlen(format)-1] & 255); data/fltk1.1-1.1.10/fluid/file.cxx:181:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). switch(c = fgetc(fin)) { data/fltk1.1-1.1.10/fluid/file.cxx:192:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = fgetc(fin); data/fltk1.1-1.1.10/fluid/file.cxx:202:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = fgetc(fin); data/fltk1.1-1.1.10/fluid/file.cxx:240:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). x = getc(fin); data/fltk1.1-1.1.10/fluid/file.cxx:244:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do x = getc(fin); while (x >= 0 && x != '\n'); data/fltk1.1-1.1.10/fluid/file.cxx:262:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). x = getc(fin); data/fltk1.1-1.1.10/fluid/file.cxx:265:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do x = getc(fin); while (x >= 0 && x != '\n'); data/fltk1.1-1.1.10/fluid/file.cxx:293:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). x = getc(fin); data/fltk1.1-1.1.10/fluid/file.cxx:526:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). x = getc(fin); data/fltk1.1-1.1.10/fluid/file.cxx:540:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). x = getc(fin); data/fltk1.1-1.1.10/fluid/file.cxx:550:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). x = getc(fin); data/fltk1.1-1.1.10/fluid/fluid.cxx:275: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). char *ext = filename + strlen(filename); data/fltk1.1-1.1.10/fluid/template_panel.cxx:113: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(template_name->value())) { data/fltk1.1-1.1.10/jpeg/jerror.h:232:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ data/fltk1.1-1.1.10/jpeg/jerror.h:288:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ data/fltk1.1-1.1.10/png/pngconf.h:1490: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). # define png_strlen strlen data/fltk1.1-1.1.10/png/pngrio.c:102:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). png_size_t read, remaining, err; data/fltk1.1-1.1.10/png/pngrio.c:109:48: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) ) data/fltk1.1-1.1.10/png/pngrio.c:112:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). err = fread(buf, (png_size_t)1, read, io_ptr); data/fltk1.1-1.1.10/png/pngrio.c:114:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). png_memcpy(data, buf, read); /* copy far buffer to near buffer */ data/fltk1.1-1.1.10/png/pngrio.c:115:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (err != read) data/fltk1.1-1.1.10/png/pngrio.c:119:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). data += read; data/fltk1.1-1.1.10/png/pngrio.c:120:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). remaining -= read; data/fltk1.1-1.1.10/png/pngwutil.c:1640:16: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wc_len = wcslen(wc_buf); data/fltk1.1-1.1.10/png/pngwutil.c:1644:16: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wc_len = wcslen(wc_buf); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:98:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). byte = (uchar)getc(fp); // Check "BM" sync chars data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:99:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bit = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:163:5: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:182:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (info_size > 12) getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:222:36: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (bit == 128) byte = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:242:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:256:5: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:259:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((repcount = getc(fp)) == 0) { data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:260:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((repcount = getc(fp)) == 0) { data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:269:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). repcount = getc(fp) * getc(fp) * w(); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:269:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). repcount = getc(fp) * getc(fp) * w(); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:277:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). color = getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:288:37: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (color < 0) temp = getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:311:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:327:3: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:330:24: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((repcount = getc(fp)) == 0) { data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:331:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((repcount = getc(fp)) == 0) { data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:340:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). repcount = getc(fp) * getc(fp) * w(); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:340:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). repcount = getc(fp) * getc(fp) * w(); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:348:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). color = getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:353:35: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (color < 0) temp = getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:368:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:375:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uchar b = getc(fp), a = getc(fp) ; data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:375:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uchar b = getc(fp), a = getc(fp) ; data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:389:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:395:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ptr[2] = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:396:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ptr[1] = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:397:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ptr[0] = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:402:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:408:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ptr[2] = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:409:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ptr[1] = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:410:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ptr[0] = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:411:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ptr[3] = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:421:32: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (bit == 128) byte = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:433:2: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:450:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b0 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:451:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b1 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:465:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b0 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:466:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b1 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:467:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b2 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:468:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b3 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:482:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b0 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:483:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b1 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:484:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b2 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_BMP_Image.cxx:485:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b3 = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_Browser.cxx:167: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). int l = strlen(newtext); data/fltk1.1-1.1.10/src/Fl_Browser.cxx:184: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). int l = strlen(newtext); data/fltk1.1-1.1.10/src/Fl_Browser_load.cxx:43:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(fl); data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:175:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (line->txt[strlen(line->txt) - 1] == '/') data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:281:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (line->txt[strlen(line->txt) - 1] == '/') data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:555:13: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (sscanf(line, "%*s%4095s", filename) != 1) data/fltk1.1-1.1.10/src/Fl_File_Browser.cxx:580: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). i = strlen(filename) - 1; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:196: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). dirptr = directory_ + strlen(directory_) - 1; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:201: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). dirptr = directory_ + strlen(directory_) - 3; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:419:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(pathname) == 2 && pathname[1] == ':') || data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:444: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). filename = pathname + strlen(pathname) - 1; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:459: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). temp += strlen(temp) - 1; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:612: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). min_match = strlen(filename); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:628: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). max_match = strlen(matchname); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:659: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). max_match == (int)strlen(fileList->text(first_line))) { data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:845:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pathname[0] && pathname[strlen(pathname) - 1] != '/') { data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:873: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 (!fn || !*fn || fn[strlen(fn) - 1]=='/') { data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:1205: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). fileName->position(0, strlen(pathname)); data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:1237: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). alen = strlen(a) - 1; data/fltk1.1-1.1.10/src/Fl_File_Chooser2.cxx:1238: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). blen = strlen(b) - 1; data/fltk1.1-1.1.10/src/Fl_File_Icon.cxx:199: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 (filename[strlen(filename) - 1] == '/') data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:152:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = getc(fp)) != EOF) data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:161:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = getc(fp)) != EOF) data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:183:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = getc(fp)) != EOF) data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:204:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = getc(fp)) != EOF) data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:223:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ch = getc(fp)) != ';') data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:975: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). pattern = (char *)malloc(strlen(kdepattern) + 3); data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:976:3: [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(pattern, "{"); data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:979:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pattern[strlen(pattern) - 1] == ';') pattern[strlen(pattern) - 1] = '\0'; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:979:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pattern[strlen(pattern) - 1] == ';') pattern[strlen(pattern) - 1] = '\0'; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:981:3: [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(pattern, "}"); data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:1004:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (str[strlen(str) - 1] == '\n') str[strlen(str) - 1] = '\0'; data/fltk1.1-1.1.10/src/Fl_File_Icon2.cxx:1004: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). if (str[strlen(str) - 1] == '\n') str[strlen(str) - 1] = '\0'; data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:78:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define NEXTBYTE (uchar)getc(GifFile) data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:156:2: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(GifFile); getc(GifFile); // GETSHORT(delay); data/fltk1.1-1.1.10/src/Fl_GIF_Image.cxx:156:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(GifFile); getc(GifFile); // GETSHORT(delay); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:254: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 (current_pos+(int)strlen(t)<selection_last) data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:268: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 l = f+strlen(t); // use 'quote_char' to calculate the true length of the HTML string data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:1020: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 (p < 0 || p >= (int)strlen(value_)) p = 0; data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2552: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(n) > 4) { data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2685: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 (l[strlen(l) - 1] == '%') { data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2753: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). snprintf(temp + strlen(temp), sizeof(temp) - strlen(temp), "#%s", data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2753:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(temp + strlen(temp), sizeof(temp) - strlen(temp), "#%s", data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2777:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). selection_drag_last = selection_last = strlen(value_); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2883:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(value_); data/fltk1.1-1.1.10/src/Fl_Help_View.cxx:2952: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). Fl::copy(txt, strlen(txt), clipboard); data/fltk1.1-1.1.10/src/Fl_Input.cxx:100: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 = strlen(standard_fp_chars); data/fltk1.1-1.1.10/src/Fl_Input.cxx:103:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (lc->decimal_point) len += strlen(lc->decimal_point); data/fltk1.1-1.1.10/src/Fl_Input.cxx:104: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 (lc->mon_decimal_point) len += strlen(lc->mon_decimal_point); data/fltk1.1-1.1.10/src/Fl_Input.cxx:105:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (lc->positive_sign) len += strlen(lc->positive_sign); data/fltk1.1-1.1.10/src/Fl_Input.cxx:106:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (lc->negative_sign) len += strlen(lc->negative_sign); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:298:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else offset2 = strlen(buf); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:305: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). fl_draw(buf+offset2, strlen(buf+offset2), x2, (float)(Y+ypos+desc)); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:310: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). fl_draw(buf, strlen(buf), xpos, (float)(Y+ypos+desc)); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:562:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (text && !ilen) ilen = strlen(text); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:881: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). return static_value(str, str ? strlen(str) : 0); data/fltk1.1-1.1.10/src/Fl_Input_.cxx:891: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). return value(str, str ? strlen(str) : 0); data/fltk1.1-1.1.10/src/Fl_Menu_.cxx:49: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(s); if ( len >= namelen ) { *name='\0'; return(-2); } else strcat(name,(s)); } data/fltk1.1-1.1.10/src/Fl_Menu_.cxx:68:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( ss ) { *ss = 0; len = strlen(name); } // "File/Edit" -> "File" data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:147:39: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (x = w(), byte = (uchar)getc(fp), bit = 128; x > 0; x --) { data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:154:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). byte = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:165:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:166:35: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (val<<8)|(uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_PNM_Image.cxx:174:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). byte = (uchar)getc(fp); data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:216: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). new_data[0] = new char[strlen(data()[0]) + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:231: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). *new_row = new char[strlen(data()[i + 1]) + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:291: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). new_data[0] = new char[strlen(new_info) + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:306: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). *new_row = new char[strlen(data()[i + 1]) + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:411:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ((char **)data())[color + 1] = new char[strlen(line) + 1]; data/fltk1.1-1.1.10/src/Fl_Pixmap.cxx:486:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ((char **)data())[i + 1] = new char[strlen(line) + 1]; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:409: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). size = strlen( src )/2; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:503: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). return v ? strlen( v ) : 0 ; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:632: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). int appDataLen = strlen(vendor) + strlen(application) + 8; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:632: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). int appDataLen = strlen(vendor) + strlen(application) + 8; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:668: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). snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename), data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:668: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). snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename), data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:687: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). snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename), data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:687: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). snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename), data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:696:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (filename[strlen(filename)-1] != '/') { data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:709: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). snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename), data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:709: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). snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename), data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:718:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:739:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:764:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int Fl_Preferences::RootNode::read() data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:830:3: [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( s, "/" ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:1011: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). int a = strlen( dst ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:1012: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). int b = strlen( line ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:1054:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen( path_ ); data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:1107: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). offset = strlen( path_ ) + 1; data/fltk1.1-1.1.10/src/Fl_Preferences.cxx:1110:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen( path_ ); data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:108: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_ = new char[strlen(n) + 1]; data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:282: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). temp_shared->name_ = new char[strlen(name_) + 1]; data/fltk1.1-1.1.10/src/Fl_Shared_Image.cxx:355: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). key->name_ = new char[strlen(n) + 1]; data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:184:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( dst, "(" ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:206: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). sprintf( buf+1+strlen(buf+1), "/\033!%c", cnt ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:210:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf[0] = strlen( buf+1 ); data/fltk1.1-1.1.10/src/Fl_Sys_Menu_Bar.cxx:258: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). buf[0] = strlen( buf+1 ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:175: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). insertedLength = strlen( t ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:481: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). insLen = strlen( s ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:958: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). return strlen( outStr ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:984: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). return strlen( ControlCodeTable[ ( unsigned char ) c ] ) + 2; data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1149: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). sp = searchString+strlen(searchString)-1; data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1351:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int insertedLength = strlen( s ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:1894: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). *outLen = ( outPtr - outStr ) + strlen( linePtr ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2385: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( text ); data/fltk1.1-1.1.10/src/Fl_Text_Buffer.cxx:2463: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). outStr = (char *)malloc( strlen( text ) + 1 ); data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:697: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). mCursorToHint = pos + strlen( text ); data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:710: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). int textLen = strlen( text ); data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:2303: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). lineNumString, strlen(lineNumString)); data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:3215: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 (*copy) Fl::copy(copy, strlen(copy), 0); data/fltk1.1-1.1.10/src/Fl_Text_Display.cxx:3249:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*copy) Fl::copy(copy, strlen(copy), 1); data/fltk1.1-1.1.10/src/Fl_Text_Editor.cxx:358:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*copy) Fl::copy(copy, strlen(copy), 1); data/fltk1.1-1.1.10/src/Fl_Valuator.cxx:134: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). for (i=strlen(temp)-1; i>0; i--) { data/fltk1.1-1.1.10/src/Fl_arg.cxx:248: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). int n=0; for (j=0; j<argc; j++) n += strlen(argv[j])+1; data/fltk1.1-1.1.10/src/Fl_get_system_colors.cxx:102: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). int n = strlen(p); data/fltk1.1-1.1.10/src/Fl_lock.cxx:277:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fd, &thread_message_, sizeof(void*)); data/fltk1.1-1.1.10/src/Fl_mac.cxx:1604: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). return strlen(dst); data/fltk1.1-1.1.10/src/Fl_mac.cxx:1909:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name) > 255) pTitle[0] = 255; data/fltk1.1-1.1.10/src/Fl_mac.cxx:1910: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). else pTitle[0] = strlen(name); data/fltk1.1-1.1.10/src/Fl_mac.cxx:2065:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name) { pTitle[0] = strlen(name); memcpy(pTitle+1, name, pTitle[0]); } data/fltk1.1-1.1.10/src/Fl_x.cxx:1363: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). XA_STRING, 8, 0, (uchar*)name, strlen(name)); data/fltk1.1-1.1.10/src/Fl_x.cxx:1366:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). XA_STRING, 8, 0, (uchar*)iname, strlen(iname)); data/fltk1.1-1.1.10/src/filename_absolute.cxx:79: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). a = temp+strlen(temp); data/fltk1.1-1.1.10/src/filename_expand.cxx:53: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). char *end = temp+strlen(temp); data/fltk1.1-1.1.10/src/filename_expand.cxx:85:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int t = strlen(value); if (isdirsep(value[t-1])) t--; data/fltk1.1-1.1.10/src/filename_isdir.cxx:45: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 (*n && isdirsep(n[strlen(n) - 1])) return 1; data/fltk1.1-1.1.10/src/filename_isdir.cxx:54: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(n); data/fltk1.1-1.1.10/src/filename_list.cxx:81: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 i, dirlen = strlen(d); data/fltk1.1-1.1.10/src/filename_list.cxx:89:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(de->d_name); data/fltk1.1-1.1.10/src/fl_dnd_win32.cxx:217: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). Fl::e_length = strlen((char*)stuff); data/fltk1.1-1.1.10/src/fl_encoding_latin1.cxx:81: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 (n==-1) n = strlen(t)+1; data/fltk1.1-1.1.10/src/fl_encoding_latin1.cxx:102: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 (n==-1) n = strlen(t)+1; data/fltk1.1-1.1.10/src/fl_encoding_mac_roman.cxx:90: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 (n==-1) n = strlen(t)+1; data/fltk1.1-1.1.10/src/fl_encoding_mac_roman.cxx:111: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 (n==-1) n = strlen(t)+1; data/fltk1.1-1.1.10/src/fl_font.cxx:50:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (c) return fl_width(c, strlen(c)); data/fltk1.1-1.1.10/src/fl_font.cxx:55: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). fl_draw(str, strlen(str), x, y); data/fltk1.1-1.1.10/src/fl_font_mac.cxx:44: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). fn[0] = strlen(name); strcpy((char*)(fn+1), name); data/fltk1.1-1.1.10/src/fl_font_x.cxx:149: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 thislength = strlen(thisname); data/fltk1.1-1.1.10/src/fl_font_xft.cxx:134: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). unsigned len = strlen(name); data/fltk1.1-1.1.10/src/fl_line_style.cxx:129: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). int ndashes = dashes ? strlen(dashes) : 0; data/fltk1.1-1.1.10/src/fl_open_uri.cxx:98: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 (!strncmp(uri, schemes[i], strlen(schemes[i]))) data/fltk1.1-1.1.10/src/fl_plastic.cxx:84: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). int b = strlen(c) / 4 + 1; data/fltk1.1-1.1.10/src/fl_plastic.cxx:104: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). int b = strlen(c) / 4 + 1; data/fltk1.1-1.1.10/src/fl_plastic.cxx:159:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int clen = strlen(c) - 1; data/fltk1.1-1.1.10/src/fl_plastic.cxx:231:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int clen = strlen(c) - 1; data/fltk1.1-1.1.10/src/fl_set_fonts_mac.cxx:160:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen( s->name ); data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:126:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(o,x,e-x); data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:142:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(o,x,e-x); data/fltk1.1-1.1.10/src/fl_set_fonts_x.cxx:254:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(to,from,n); data/fltk1.1-1.1.10/src/fl_set_fonts_xft.cxx:94: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). char *last = style + strlen(style) - 2; data/fltk1.1-1.1.10/src/fl_shortcut.cxx:75:7: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (mismatch&(FL_META|FL_ALT|FL_CTRL)) return 0; data/fltk1.1-1.1.10/src/fl_shortcut.cxx:80:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!(mismatch&(FL_SHIFT)) && key == Fl::event_key()) return 1; data/fltk1.1-1.1.10/src/flstring.c:47: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). dstlen = strlen(dst); data/fltk1.1-1.1.10/src/flstring.c:56: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). srclen = strlen(src); data/fltk1.1-1.1.10/src/flstring.c:88: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). srclen = strlen(src); data/fltk1.1-1.1.10/src/forms_fselect.cxx:42: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). char *p = fl_directory+strlen(fl_directory); data/fltk1.1-1.1.10/src/gl_draw.cxx:69: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). fn[0]=strlen(fl_fontsize->q_name); data/fltk1.1-1.1.10/src/gl_draw.cxx:145: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). gl_draw(str, strlen(str)); data/fltk1.1-1.1.10/src/gl_draw.cxx:149: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). gl_draw(str, strlen(str), x, y); data/fltk1.1-1.1.10/src/gl_draw.cxx:153: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). gl_draw(str, strlen(str), x, y); data/fltk1.1-1.1.10/src/glut_compatability.cxx:483: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). const int len = strlen( extension ); data/fltk1.1-1.1.10/src/scandir.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 NAMLEN(dirent) strlen((dirent)->d_name) data/fltk1.1-1.1.10/src/scandir.c:87: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). # define _D_EXACT_NAMLEN(d) (strlen ((d)->d_name)) data/fltk1.1-1.1.10/src/scandir_win32.c:47: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). len = strlen(dirname); data/fltk1.1-1.1.10/src/scandir_win32.c:74: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). selectDir=(struct dirent*)malloc(sizeof(struct dirent)+strlen(find.cFileName)+2); data/fltk1.1-1.1.10/src/scandir_win32.c:78:7: [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(selectDir->d_name, "/"); data/fltk1.1-1.1.10/src/vsnprintf.c:83: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). tptr += strlen(tptr); data/fltk1.1-1.1.10/src/vsnprintf.c:101: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). tptr += strlen(tptr); data/fltk1.1-1.1.10/src/vsnprintf.c:141: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). bytes += strlen(temp); data/fltk1.1-1.1.10/src/vsnprintf.c:144:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((bufptr + strlen(temp)) > bufend) { data/fltk1.1-1.1.10/src/vsnprintf.c:145:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(bufptr, temp, (size_t)(bufend - bufptr)); data/fltk1.1-1.1.10/src/vsnprintf.c:149: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). bufptr += strlen(temp); data/fltk1.1-1.1.10/src/vsnprintf.c:174: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). bytes += strlen(temp); data/fltk1.1-1.1.10/src/vsnprintf.c:177:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((bufptr + strlen(temp)) > bufend) { data/fltk1.1-1.1.10/src/vsnprintf.c:178:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(bufptr, temp, (size_t)(bufend - bufptr)); data/fltk1.1-1.1.10/src/vsnprintf.c:182: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). bufptr += strlen(temp); data/fltk1.1-1.1.10/src/vsnprintf.c:192: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). bytes += strlen(temp); data/fltk1.1-1.1.10/src/vsnprintf.c:195:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((bufptr + strlen(temp)) > bufend) { data/fltk1.1-1.1.10/src/vsnprintf.c:196:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(bufptr, temp, (size_t)(bufend - bufptr)); data/fltk1.1-1.1.10/src/vsnprintf.c:200: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). bufptr += strlen(temp); data/fltk1.1-1.1.10/src/vsnprintf.c:222: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). slen = strlen(s); data/fltk1.1-1.1.10/src/vsnprintf.c:233:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(bufptr, s, (size_t)slen); data/fltk1.1-1.1.10/src/vsnprintf.c:237:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(bufptr + width - slen, s, (size_t)slen); data/fltk1.1-1.1.10/test/demo.cxx:233: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 icommand_length = strlen(menus[men].icommand[bn]); data/fltk1.1-1.1.10/test/demo.cxx:280: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 icommand_length = strlen(menus[men].icommand[bn]); data/fltk1.1-1.1.10/test/demo.cxx:353: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). buf[ strlen(buf)-1 ] = 0; data/fltk1.1-1.1.10/test/editor.cxx:491:16: [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. if (!insert) strcpy(filename, ""); data/fltk1.1-1.1.10/test/editor.cxx:550: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). textbuf->select(pos, pos+strlen(e->search)); data/fltk1.1-1.1.10/test/editor.cxx:551: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). e->editor->insert_position(pos+strlen(e->search)); data/fltk1.1-1.1.10/test/editor.cxx:654: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). textbuf->select(pos, pos+strlen(find)); data/fltk1.1-1.1.10/test/editor.cxx:657: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). textbuf->select(pos, pos+strlen(replace)); data/fltk1.1-1.1.10/test/editor.cxx:658: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). e->editor->insert_position(pos+strlen(replace)); data/fltk1.1-1.1.10/test/editor.cxx:688:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). textbuf->select(pos, pos+strlen(find)); data/fltk1.1-1.1.10/test/editor.cxx:691: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). e->editor->insert_position(pos+strlen(replace)); data/fltk1.1-1.1.10/test/file_chooser.cxx:286:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(outname, name, sizeof(outname) - 1); data/fltk1.1-1.1.10/test/fonts.cxx:111: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). int i = strlen(label); data/fltk1.1-1.1.10/test/fromdos.c:18:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/fltk1.1-1.1.10/test/fromdos.c:20:6: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/fltk1.1-1.1.10/test/fromdos.c:46:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(in); data/fltk1.1-1.1.10/test/fromdos.c:48:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(in); data/fltk1.1-1.1.10/test/sudoku.cxx:427:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(50000); data/fltk1.1-1.1.10/test/sudoku.cxx:446:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(50000); data/fltk1.1-1.1.10/zlib/gzio.c:127: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). s->path = (char*)ALLOC(strlen(path)+1); data/fltk1.1-1.1.10/zlib/gzio.c:625: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(buf); data/fltk1.1-1.1.10/zlib/gzio.c:662: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(buf); data/fltk1.1-1.1.10/zlib/gzio.c:697: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). return gzwrite(file, (char*)s, (unsigned)strlen(s)); data/fltk1.1-1.1.10/zlib/gzio.c:1006: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). s->msg = (char*)ALLOC(strlen(s->path) + strlen(m) + 3); data/fltk1.1-1.1.10/zlib/gzio.c:1006: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). s->msg = (char*)ALLOC(strlen(s->path) + strlen(m) + 3); ANALYSIS SUMMARY: Hits = 1206 Lines analyzed = 174333 in approximately 4.52 seconds (38597 lines/second) Physical Source Lines of Code (SLOC) = 118156 Hits@level = [0] 422 [1] 299 [2] 657 [3] 47 [4] 200 [5] 3 Hits@level+ = [0+] 1628 [1+] 1206 [2+] 907 [3+] 250 [4+] 203 [5+] 3 Hits/KSLOC@level+ = [0+] 13.7784 [1+] 10.2068 [2+] 7.67629 [3+] 2.11585 [4+] 1.71807 [5+] 0.0253902 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.