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/megaglest-3.13.0/source/tests/shared_lib/streflop/streflop_test.cpp
Examining data/megaglest-3.13.0/source/tests/shared_lib/xml/xml_parser_test.cpp
Examining data/megaglest-3.13.0/source/tests/shared_lib/util/util_test.cpp
Examining data/megaglest-3.13.0/source/tests/shared_lib/graphics/math_util_test.cpp
Examining data/megaglest-3.13.0/source/tests/shared_lib/graphics/font_test.cpp
Examining data/megaglest-3.13.0/source/tests/shared_lib/graphics/model_test.cpp
Examining data/megaglest-3.13.0/source/tests/test_runner.cpp
Examining data/megaglest-3.13.0/source/g3d_viewer/main.h
Examining data/megaglest-3.13.0/source/g3d_viewer/renderer.cpp
Examining data/megaglest-3.13.0/source/g3d_viewer/main.cpp
Examining data/megaglest-3.13.0/source/g3d_viewer/renderer.h
Examining data/megaglest-3.13.0/source/tools/glexemel/g2xml.c
Examining data/megaglest-3.13.0/source/tools/glexemel/g3dv4.h
Examining data/megaglest-3.13.0/source/tools/glexemel/xml2g.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/macosx/NSFont_OpenGL.h
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/miniftpclient.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/miniftpserver.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/unix/gl_wrap.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/common/byte_order.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/common/cache_manager.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/factory_repository.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/platform_util.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/gl_wrap_billy.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/factory_repository.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/gl_wrap.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/window.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/window_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/compression/compression_utils.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_expf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_lroundf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_roundf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_frexpf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_signbitf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_coshf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_sinf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_ilogbf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_nextafterf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_lgammaf_r.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_jnf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_j1f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_asinhf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_rem_pio2f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/k_sinf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_acosf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_modff.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_remquof.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_isnanf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_tanhf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_nearbyintf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_floorf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_llroundf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/k_cosf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_truncf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_log10f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_hypotf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_sqrtf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_fabsf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_llrintf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_ldexpf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_asinf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_ceilf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_expm1f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_sinhf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_erff.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_remainderf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_scalblnf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_atanf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_logf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_logbf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_lrintf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_log2f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_atanhf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_j0f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_scalbnf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_acoshf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_gammaf_r.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_copysignf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_rintf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_tanf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/k_tanf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/k_rem_pio2f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_fmodf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_fpclassifyf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_sincosf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_finitef.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_cbrtf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_isinff.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/w_expf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_atan2f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_powf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_log1pf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/e_exp2f.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/flt-32/s_cosf.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/w_expf.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/libm/e_expf.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/streflopC.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/SMath.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/Random.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpServer.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpRuntime.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpMessages.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpLib.c
Examining data/megaglest-3.13.0/source/shared_lib/sources/sound/sound.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_player.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_interface.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/profiler.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/randomgen.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/string_utils.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/checksum.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/conversion.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/util/leak_dumper.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/lua/lua_script.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/JPGReader.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/shader_manager.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/BMPReader.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/shader.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/font_text.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/model_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/opengl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/particle_renderer_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/context_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/shader_gl.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/base_renderer.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/texture_manager.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/texture.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/context.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/camera.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/interpolation.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/font_manager.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/quaternion.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/model_manager.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/buffer.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/FileReader.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/ImageReaders.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/graphics_interface.cpp
Examining data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/posix/ircclient.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/posix/miniftpclient.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/posix/miniftpserver.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/posix/socket.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/simple_threads.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/platform_common.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/math_wrapper.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/common_scoped_ptr.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/streflop_cond.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/base_thread.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/cache_manager.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/common/byte_order.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/win32/platform_definitions.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/win32/glob.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/factory_repository.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_util.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/noimpl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/thread.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/window_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/sdl_private.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/window.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_main.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/gl_wrap.h
Examining data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/data_types.h
Examining data/megaglest-3.13.0/source/shared_lib/include/compression/compression_utils.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/flt-32/t_exp2f.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/headers/ieee754.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/headers/math_private.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/headers/wchar.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/headers/features.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/headers/math.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/headers/SMath.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/headers/endian.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/libm/streflop_libm_bridge.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/streflop.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/System.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/IntegerTypes.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/Random.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/softfloat/milieu.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/softfloat/softfloat.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/FPUSettings.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/SMath.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/SoftFloatWrapper.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/streflopC.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/FPUCheck.h
Examining data/megaglest-3.13.0/source/shared_lib/include/streflop/X87DenormalSquasher.h
Examining data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftpConfig.h
Examining data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftpTypes.h
Examining data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftp.h
Examining data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftpIfc.h
Examining data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftpMessages.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/sound_factory.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/sound_file_loader.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/sound_factory_none.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/sound.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/sound_interface.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/sound_player.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/openal/sound_factory_openal.h
Examining data/megaglest-3.13.0/source/shared_lib/include/sound/openal/sound_player_openal.h
Examining data/megaglest-3.13.0/source/shared_lib/include/xml/xml_parser.h
Examining data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml_utils.hpp
Examining data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml_print.hpp
Examining data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp
Examining data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml_iterators.hpp
Examining data/megaglest-3.13.0/source/shared_lib/include/util/string_utils.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/conversion.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/factory.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/checksum.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/properties.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/utf8.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/profiler.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/randomgen.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/utf8/checked.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/utf8/core.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/utf8/unchecked.h
Examining data/megaglest-3.13.0/source/shared_lib/include/util/util.h
Examining data/megaglest-3.13.0/source/shared_lib/include/map/map_preview.h
Examining data/megaglest-3.13.0/source/shared_lib/include/lua/lua_script.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/vec.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/shader.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/interpolation.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/font.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/graphics_factory_basic_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/base_renderer.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/text_renderer_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/opengl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/font_textFTGL.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/context_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/model_renderer_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/graphics_factory_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/font_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/model_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/texture_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/shader_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/particle_renderer_gl.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/context.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/particle.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/JPGReader.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/PNGReader.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/graphics_factory.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/camera.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/model_renderer.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/BMPReader.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/shader_manager.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/math_util.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/text_renderer.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/texture.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/quaternion.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/graphics_interface.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/TGAReader.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/font_text.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/model_header.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/matrix.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/texture_manager.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/model_manager.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/particle_renderer.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/buffer.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/ImageReaders.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/model.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/font_manager.h
Examining data/megaglest-3.13.0/source/shared_lib/include/graphics/video_player.h
Examining data/megaglest-3.13.0/source/glest_map_editor/icons.h
Examining data/megaglest-3.13.0/source/glest_map_editor/main.h
Examining data/megaglest-3.13.0/source/glest_map_editor/program.h
Examining data/megaglest-3.13.0/source/glest_map_editor/main.cpp
Examining data/megaglest-3.13.0/source/glest_map_editor/program.cpp
Examining data/megaglest-3.13.0/source/glest_game/gui/gui.h
Examining data/megaglest-3.13.0/source/glest_game/gui/selection.h
Examining data/megaglest-3.13.0/source/glest_game/gui/selection.cpp
Examining data/megaglest-3.13.0/source/glest_game/gui/gui.cpp
Examining data/megaglest-3.13.0/source/glest_game/gui/display.h
Examining data/megaglest-3.13.0/source/glest_game/gui/display.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_new_game.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.h
Examining data/megaglest-3.13.0/source/glest_game/menu/server_line.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_about.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_background.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_graphics.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/server_line.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_graphics.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_sound.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/main_menu.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_keysetup.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_sound.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_join_game.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_network.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_graphic_info.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_about.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_keysetup.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_network.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_masterserver.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_masterserver.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_join_game.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_new_game.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/main_menu.h
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_background.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_graphic_info.cpp
Examining data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp
Examining data/megaglest-3.13.0/source/glest_game/facilities/logger.cpp
Examining data/megaglest-3.13.0/source/glest_game/facilities/components.h
Examining data/megaglest-3.13.0/source/glest_game/facilities/auto_test.cpp
Examining data/megaglest-3.13.0/source/glest_game/facilities/components.cpp
Examining data/megaglest-3.13.0/source/glest_game/facilities/auto_test.h
Examining data/megaglest-3.13.0/source/glest_game/facilities/game_util.cpp
Examining data/megaglest-3.13.0/source/glest_game/facilities/game_util.h
Examining data/megaglest-3.13.0/source/glest_game/facilities/logger.h
Examining data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/map.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/world.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/tileset.h
Examining data/megaglest-3.13.0/source/glest_game/world/surface_atlas.h
Examining data/megaglest-3.13.0/source/glest_game/world/scenario.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/minimap.h
Examining data/megaglest-3.13.0/source/glest_game/world/time_flow.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/tileset.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/water_effects.h
Examining data/megaglest-3.13.0/source/glest_game/world/time_flow.h
Examining data/megaglest-3.13.0/source/glest_game/world/world.h
Examining data/megaglest-3.13.0/source/glest_game/world/water_effects.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/unit_updater.h
Examining data/megaglest-3.13.0/source/glest_game/world/map.h
Examining data/megaglest-3.13.0/source/glest_game/world/minimap.cpp
Examining data/megaglest-3.13.0/source/glest_game/world/scenario.h
Examining data/megaglest-3.13.0/source/glest_game/world/surface_atlas.cpp
Examining data/megaglest-3.13.0/source/glest_game/sound/sound_renderer.h
Examining data/megaglest-3.13.0/source/glest_game/sound/sound_container.cpp
Examining data/megaglest-3.13.0/source/glest_game/sound/sound_container.h
Examining data/megaglest-3.13.0/source/glest_game/sound/sound_renderer.cpp
Examining data/megaglest-3.13.0/source/glest_game/type_instances/object.h
Examining data/megaglest-3.13.0/source/glest_game/type_instances/upgrade.cpp
Examining data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp
Examining data/megaglest-3.13.0/source/glest_game/type_instances/unit.h
Examining data/megaglest-3.13.0/source/glest_game/type_instances/object.cpp
Examining data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp
Examining data/megaglest-3.13.0/source/glest_game/type_instances/command.cpp
Examining data/megaglest-3.13.0/source/glest_game/type_instances/resource.h
Examining data/megaglest-3.13.0/source/glest_game/type_instances/faction.h
Examining data/megaglest-3.13.0/source/glest_game/type_instances/command.h
Examining data/megaglest-3.13.0/source/glest_game/type_instances/resource.cpp
Examining data/megaglest-3.13.0/source/glest_game/type_instances/upgrade.h
Examining data/megaglest-3.13.0/source/glest_game/game/stats.h
Examining data/megaglest-3.13.0/source/glest_game/game/commander.h
Examining data/megaglest-3.13.0/source/glest_game/game/game_camera.cpp
Examining data/megaglest-3.13.0/source/glest_game/game/game.cpp
Examining data/megaglest-3.13.0/source/glest_game/game/script_manager.h
Examining data/megaglest-3.13.0/source/glest_game/game/game.h
Examining data/megaglest-3.13.0/source/glest_game/game/commander.cpp
Examining data/megaglest-3.13.0/source/glest_game/game/game_settings.h
Examining data/megaglest-3.13.0/source/glest_game/game/console.h
Examining data/megaglest-3.13.0/source/glest_game/game/chat_manager.h
Examining data/megaglest-3.13.0/source/glest_game/game/game_constants.h
Examining data/megaglest-3.13.0/source/glest_game/game/chat_manager.cpp
Examining data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp
Examining data/megaglest-3.13.0/source/glest_game/game/game_camera.h
Examining data/megaglest-3.13.0/source/glest_game/game/console.cpp
Examining data/megaglest-3.13.0/source/glest_game/game/stats.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/damage_multiplier.h
Examining data/megaglest-3.13.0/source/glest_game/types/upgrade_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/unit_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/tech_tree.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/skill_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/tech_tree.h
Examining data/megaglest-3.13.0/source/glest_game/types/damage_multiplier.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/skill_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/element_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/object_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/element_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/upgrade_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/object_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/resource_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/command_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/tileset_model_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/command_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/resource_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/projectile_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/tileset_model_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/projectile_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/types/faction_type.h
Examining data/megaglest-3.13.0/source/glest_game/types/unit_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/global/metrics.cpp
Examining data/megaglest-3.13.0/source/glest_game/global/core_data.h
Examining data/megaglest-3.13.0/source/glest_game/global/lang.cpp
Examining data/megaglest-3.13.0/source/glest_game/global/config.cpp
Examining data/megaglest-3.13.0/source/glest_game/global/core_data.cpp
Examining data/megaglest-3.13.0/source/glest_game/global/config.h
Examining data/megaglest-3.13.0/source/glest_game/global/metrics.h
Examining data/megaglest-3.13.0/source/glest_game/global/lang.h
Examining data/megaglest-3.13.0/source/glest_game/main/battle_end.h
Examining data/megaglest-3.13.0/source/glest_game/main/intro.cpp
Examining data/megaglest-3.13.0/source/glest_game/main/intro.h
Examining data/megaglest-3.13.0/source/glest_game/main/main.h
Examining data/megaglest-3.13.0/source/glest_game/main/program.h
Examining data/megaglest-3.13.0/source/glest_game/main/main.cpp
Examining data/megaglest-3.13.0/source/glest_game/main/program.cpp
Examining data/megaglest-3.13.0/source/glest_game/main/battle_end.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/network_message.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/network_types.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/network_types.h
Examining data/megaglest-3.13.0/source/glest_game/network/connection_slot.h
Examining data/megaglest-3.13.0/source/glest_game/network/connection_slot.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/server_interface.h
Examining data/megaglest-3.13.0/source/glest_game/network/network_message.h
Examining data/megaglest-3.13.0/source/glest_game/network/client_interface.h
Examining data/megaglest-3.13.0/source/glest_game/network/network_interface.h
Examining data/megaglest-3.13.0/source/glest_game/network/network_protocol.h
Examining data/megaglest-3.13.0/source/glest_game/network/masterserver_info.h
Examining data/megaglest-3.13.0/source/glest_game/network/network_protocol.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/network_interface.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp
Examining data/megaglest-3.13.0/source/glest_game/network/network_manager.h
Examining data/megaglest-3.13.0/source/glest_game/network/network_manager.cpp
Examining data/megaglest-3.13.0/source/glest_game/graphics/unit_particle_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/graphics/particle_type.cpp
Examining data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp
Examining data/megaglest-3.13.0/source/glest_game/graphics/unit_particle_type.h
Examining data/megaglest-3.13.0/source/glest_game/graphics/particle_type.h
Examining data/megaglest-3.13.0/source/glest_game/graphics/renderer.h
Examining data/megaglest-3.13.0/source/glest_game/ai/ai_interface.h
Examining data/megaglest-3.13.0/source/glest_game/ai/ai_rule.h
Examining data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp
Examining data/megaglest-3.13.0/source/glest_game/ai/ai.h
Examining data/megaglest-3.13.0/source/glest_game/ai/ai.cpp
Examining data/megaglest-3.13.0/source/glest_game/ai/path_finder.h
Examining data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp
Examining data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp

FINAL RESULTS:

data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2062:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	int length = readlink("/proc/self/exe", exe_link_path, sizeof(exe_link_path));
data/megaglest-3.13.0/source/glest_game/facilities/logger.cpp:279:3:  [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(szBuf,8096,hintText.c_str(),gameHintToShow.c_str());
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:614:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
								snprintf(szMsg,8096,lang.getString("PlayerSwitchedTeam",languageList[i]).c_str(),settings->getNetworkPlayerName(factionIndex).c_str(),oldTeam,newTeam);
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:708:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
								snprintf(szMsg,8096,lang.getString("PlayerSwitchedTeam",languageList[i]).c_str(),settings->getNetworkPlayerName(factionIndex).c_str(),oldTeam,vote->newTeam);
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:734:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
								snprintf(szMsg,8096,lang.getString("PlayerSwitchedTeamDenied",languageList[i]).c_str(),settings->getNetworkPlayerName(factionIndex).c_str(),oldTeam,vote->newTeam);
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1006:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1075:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1099:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1113:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1130:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1150:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1168:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1225:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1301:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1330:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1346:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1389: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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingCreatingAIFaction","",true).c_str(),i);
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1403:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1444:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1457:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1469:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1535:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1558:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1789:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"=============== FRAME: %d In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",world.getFrameCount(),extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1831:6:  [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(szBuf,8096,lang.getString("AllowPlayerJoinTeam").c_str(),settings->getNetworkPlayerName(vote->factionIndex).c_str(),vote->oldTeam,vote->newTeam);
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1977:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1983:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2001:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2025:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2064:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
								sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2103:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2152:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2170:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2196:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2210:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2228:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2241:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2257:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2281:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2293:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2302:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2317:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2543:7:  [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(szBuf,8096,lang.getString("GameSaved","",true).c_str(),file.c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2603:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2765:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3138:7:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingCreatingAIFaction","",true).c_str(),i);
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3157:8:  [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(szBuf,8096,msg.c_str(),i+1,this->gameSettings.getNetworkPlayerName(i).c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3164:8:  [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(szBuf,8096,msg.c_str(),i+1,this->gameSettings.getNetworkPlayerName(i).c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3737:8:  [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(szBuf,8096,("  " + lang.getString("JoinPlayerTeam") + "  ").c_str(),faction->getIndex(),this->gameSettings.getNetworkPlayerName(i).c_str(),faction->getTeam());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3800:8:  [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(szBuf,8096,("  " + lang.getString("DisconnectNetorkPlayerIndex") + "  ").c_str(),faction->getIndex()+1,this->gameSettings.getNetworkPlayerName(i).c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3941:7:  [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(szBuf,8096,("  " + lang.getString("DisconnectNetorkPlayerIndexConfirm") + "  ").c_str(),factionIndex+1,settings->getNetworkPlayerName(factionIndex).c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3960:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
								snprintf(szMsg,8096,lang.getString("DisconnectNetorkPlayerIndexConfirmed",languageList[i]).c_str(),factionIndex+1,settings->getNetworkPlayerName(factionIndex).c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6121:8:  [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(szMsg,8096,lang.getString("JoinPlayerToCurrentGameLaunch",languageList[i]).c_str(), slot->getName().c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6447:2:  [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(szBuf,8096,lang.getString("GameSaved","",true).c_str(),file.c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6466:3:  [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(szBuf,8096,name.c_str(),szBuf2);
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6477:3:  [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(szBuf,8096,name.c_str(),szBuf2);
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6726:4:  [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(szBuf,8096,lang.getString("SavedGameBadVersion").c_str(),gameVer.c_str(),glestVersionString.c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6790:3:  [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(szBuf,8096,lang.getString("SavedGameBadVersion").c_str(),gameVer.c_str(),glestVersionString.c_str());
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6809:4:  [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(szBuf,8096,lang.getString("SavedGameBadVersion").c_str(),gameVer.c_str(),glestVersionString.c_str());
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:991: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(szBuf,max_debug_buffer_size-1,fmt, argList);
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:1006: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(szBuf,max_debug_buffer_size-1,fmt, argList);
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:1020: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(szBuf,max_debug_buffer_size-1,fmt, argList);
data/megaglest-3.13.0/source/glest_game/main/main.cpp:1262:8:  [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(szBuf,8096,lang.getString("ScreenshotSavedTo").c_str(),path.c_str());
data/megaglest-3.13.0/source/glest_game/main/program.cpp:443:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/main/program.cpp:456:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/main/program.cpp:475:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/main/program.cpp:489:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " updateCount: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis(),updateCount);
data/megaglest-3.13.0/source/glest_game/main/program.cpp:500:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " updateCount: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis(),updateCount);
data/megaglest-3.13.0/source/glest_game/main/program.cpp:520:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " updateCount: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis(),updateCount);
data/megaglest-3.13.0/source/glest_game/main/program.cpp:534:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " updateCount: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis(),updateCount);
data/megaglest-3.13.0/source/glest_game/main/program.cpp:547:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/main/program.cpp:563:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:657: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(szMsg,8096,lang.getString("JoinPlayerToCurrentGameWelcome",languageList[i]).c_str(),getHumanPlayerName().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1048:4:  [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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1067: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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1082: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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1092: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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1296:8:  [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(szMsg,8096,lang.getString("DataMissingMapNowDownloading",languageList[i]).c_str(),getHumanPlayerName().c_str(),getMissingMapFromFTPServer.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1334:8:  [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(szMsg,8096,lang.getString("DataMissingTilesetNowDownloading",languageList[i]).c_str(),getHumanPlayerName().c_str(),getMissingTilesetFromFTPServer.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1372:8:  [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(szMsg,8096,lang.getString("DataMissingTechtreeNowDownloading",languageList[i]).c_str(),getHumanPlayerName().c_str(),getMissingTechtreeFromFTPServer.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1523:15:  [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(szMsg,8096,lang.getString("CancelDownloadsMsg",languageList[i]).c_str(),getHumanPlayerName().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2021:6:  [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(szMsg,8096,lang.getString("JoinPlayerToCurrentGameLaunch",languageList[i]).c_str(),getHumanPlayerName().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2192: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(szMsg,8096,lang.getString("DataMissingMap=Player",languageList[i]).c_str(),getHumanPlayerName().c_str(),listBoxMap.getSelectedItem().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2215: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(szMsg,8096,lang.getString("DataMissingTileset=Player",languageList[i]).c_str(),getHumanPlayerName().c_str(),listBoxTileset.getSelectedItem().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2235: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(szMsg,8096,lang.getString("DataMissingTechtree=Player",languageList[i]).c_str(),getHumanPlayerName().c_str(),listBoxTechTree.getSelectedItem().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:3901:7:  [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(szMsg,8096,lang.getString("DataMissingTechtree",languageList[i]).c_str(),getHumanPlayerName().c_str(),gameSettings->getTech().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4196:7:  [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(szMsg,8096,lang.getString("DataMissingMap",languageList[i]).c_str(),getHumanPlayerName().c_str(),gameSettings->getMap().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4320:16:  [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(szMsg,8096,lang.getString("FileDownloadProgress",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str(),fileProgress);
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4344:6:  [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(szMsg,8096,lang.getString("DataMissingExtractDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4395:15:  [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(szMsg,8096,lang.getString("DataMissingMapSuccessDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4415:15:  [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(szMsg,8096,lang.getString("DataMissingMapFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str(),curlVersion->version);
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4455:15:  [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(szMsg,8096,lang.getString("DataMissingTilesetSuccessDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4508:15:  [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(szMsg,8096,lang.getString("DataMissingTilesetFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),(itemName+"(.7z)").c_str(),curlVersion->version);
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4548:15:  [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(szMsg,8096,lang.getString("DataMissingTechtreeSuccessDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4602:15:  [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(szMsg,8096,lang.getString("DataMissingTechtreeFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),(itemName+"(.7z)").c_str(),curlVersion->version);
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4653:15:  [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(szMsg,8096,lang.getString("JoinPlayerToCurrentGameSuccessDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4695:15:  [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(szMsg,8096,lang.getString("JoinPlayerToCurrentGameFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str(),curlVersion->version);
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4835:7:  [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(szMsg,8096,lang.getString("DataMissingTileset",languageList[i]).c_str(),getHumanPlayerName().c_str(),gameSettings->getTileset().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4908:7:  [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(szMsg,8096,lang.getString("DataMissingTechtree",languageList[i]).c_str(),getHumanPlayerName().c_str(),gameSettings->getTech().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1548:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
											snprintf(szMsg,8096,lang.getString("BlockPlayerServerMsg",languageList[j]).c_str(),serverInterface->getSlot(i,true)->getIpAddress().c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:224:4:  [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(szBuf,8096,lang.getString("LoadGameDeletingFile","",true).c_str(),filename.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:256:4:  [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(szBuf,8096,lang.getString("LoadGameLoadingFile","",true).c_str(),filename.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:345:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
								snprintf(szBuf,8096,lang.getString("SavedGameBadVersion").c_str(),gameVer.c_str(),glestVersionString.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:356:8:  [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(szBuf,8096,lang.getString("LoadSavedGameInfo").c_str(),
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:457:4:  [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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:476: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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:491: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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:501: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(szBuf,8096,lang.getString("ModErrorGettingServerData").c_str(),curlError.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1255:4:  [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(szBuf,8096,lang.getString("ModDownloadInProgressCancelQuestion").c_str(),fileFTPProgressList.size());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1545:7:  [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(szBuf,8096,lang.getString("ModLocalRemoteMismatch").c_str(),selectedTechName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1552:7:  [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(szBuf,8096,lang.getString("ModTechAlreadyInstalled").c_str(),selectedTechName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1585: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(szBuf,8096,lang.getString("ModRemoveTechConfirm").c_str(),selectedTechName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1593: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(szBuf,8096,lang.getString("ModCannotRemoveTechNotInstalled").c_str(),selectedTechName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1626:7:  [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(szBuf,8096,lang.getString("ModLocalRemoteMismatch").c_str(),selectedTilesetName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1633:7:  [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(szBuf,8096,lang.getString("ModTilesetAlreadyInstalled").c_str(),selectedTilesetName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1665: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(szBuf,8096,lang.getString("ModRemoveTilesetConfirm").c_str(),selectedTilesetName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1673: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(szBuf,8096,lang.getString("ModCannotRemoveTilesetNotInstalled").c_str(),selectedTilesetName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1696:7:  [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(szBuf,8096,lang.getString("ModLocalRemoteMismatch").c_str(),selectedMapName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1703:7:  [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(szBuf,8096,lang.getString("ModMapAlreadyInstalled").c_str(),selectedMapName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1735: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(szBuf,8096,lang.getString("ModRemoveMapConfirm").c_str(),selectedMapName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1743: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(szBuf,8096,lang.getString("ModCannotRemoveMapNotInstalled").c_str(),selectedMapName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1775:7:  [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(szBuf,8096,lang.getString("ModLocalRemoteMismatch").c_str(),selectedScenarioName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1782:7:  [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(szBuf,8096,lang.getString("ModScenarioAlreadyInstalled").c_str(),selectedScenarioName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1816: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(szBuf,8096,lang.getString("ModRemoveScenarioConfirm").c_str(),selectedScenarioName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1824: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(szBuf,8096,lang.getString("ModCannotRemoveScenarioNotInstalled").c_str(),selectedScenarioName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2581:4:  [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(szBuf,8096,lang.getString("DataMissingExtractDownloadMod").c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2621:4:  [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(szBuf,8096,lang.getString("ModDownloadMapSuccess").c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2628:4:  [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(szBuf,8096,lang.getString("ModDownloadMapFail").c_str(),itemName.c_str(),curlVersion->version,result.second.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2648:4:  [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(szBuf,8096,lang.getString("ModDownloadTilesetSuccess").c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2656:4:  [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(szBuf,8096,lang.getString("ModDownloadTilesetFail").c_str(),itemName.c_str(),curlVersion->version,result.second.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2675:4:  [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(szBuf,8096,lang.getString("ModDownloadTechSuccess").c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2701:4:  [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(szBuf,8096,lang.getString("ModDownloadTechFail").c_str(),itemName.c_str(),curlVersion->version,result.second.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2719:4:  [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(szBuf,8096,lang.getString("ModDownloadScenarioSuccess").c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2747:4:  [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(szBuf,8096,lang.getString("ModDownloadScenarioFail").c_str(),itemName.c_str(),curlVersion->version,result.second.c_str());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:426:4:  [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(szBuf,8096,lang.getString("DataMissingExtractDownloadMod").c_str(),itemName.c_str());
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:34:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:34:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:435:3:  [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(szBuf1,8096,statusTextFormat.c_str(),playerNameStr.c_str());
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1735:7:  [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(szBuf,8096,updateTextFormat.c_str(),(long long int)lastMillisCheck,int(readyWaitTimeout / 1000));
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1742:7:  [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(szBuf1,8096,statusTextFormat.c_str(),waitForHosts.c_str());
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1858: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(szBuf,8096,sText.c_str(),playerNameStr.c_str());
data/megaglest-3.13.0/source/glest_game/network/connection_slot.cpp:1026:12:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
											_snprintf(szBuf,4095,msgTemplate.c_str(),minHeadLessPlayersRequired);
data/megaglest-3.13.0/source/glest_game/network/connection_slot.cpp:1028:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
											snprintf(szBuf,4095,msgTemplate.c_str(),minHeadLessPlayersRequired);
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:522: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(szBuf,4095,msgTemplate.c_str(),slot->getName().c_str());
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:524: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(szBuf,4095,msgTemplate.c_str(),slot->getName().c_str());
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:781:7:  [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(szBuf,4095,msgTemplate.c_str(),connectionSlot->getName().c_str() ,maxFrameCountLagAllowed,maxClientLagTimeAllowed,clientLagCount,clientLagTime);
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:783:7:  [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(szBuf,4095,msgTemplate.c_str(),connectionSlot->getName().c_str(),maxFrameCountLagAllowed,maxClientLagTimeAllowed,clientLagCount,clientLagTime);
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:826: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.
				    		_snprintf(szBuf,4095,msgTemplate.c_str(),connectionSlot->getName().c_str(),maxFrameCountLagAllowed,maxClientLagTimeAllowed,clientLagCount,clientLagTime);
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:828: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.
				    		snprintf(szBuf,4095,msgTemplate.c_str(),connectionSlot->getName().c_str(),maxFrameCountLagAllowed,maxClientLagTimeAllowed,clientLagCount,clientLagTime);
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:2027:6:  [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(szBuf,8096,updateTextFormat.c_str(),(long long int)(chrono.getMillis() / 1000),int(readyWaitTimeout / 1000));
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:2036:6:  [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(szBuf1,8096,statusTextFormat.c_str(),waitForHosts.c_str());
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:131:2:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingFactionType","",true).c_str(),formatString(this->getName()).c_str());
data/megaglest-3.13.0/source/glest_game/types/resource_type.cpp:74:3:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingResourceType","",true).c_str(),formatString(getName(true)).c_str());
data/megaglest-3.13.0/source/glest_game/types/tech_tree.cpp:225:2:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingTechtree","",true).c_str(),formatString(getName(true)).c_str());
data/megaglest-3.13.0/source/glest_game/types/unit_type.cpp:202:3:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingUnitType","",true).c_str(),formatString(this->getName(true)).c_str());
data/megaglest-3.13.0/source/glest_game/types/unit_type.cpp:835:3:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingUnitTypeSkills","",true).c_str(),formatString(this->getName(true)).c_str(),skillTypes.size());
data/megaglest-3.13.0/source/glest_game/types/upgrade_type.cpp:912:2:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingUpgradeType","",true).c_str(),formatString(this->getName(true)).c_str());
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:55:3:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingScenario","",true).c_str(),formatString(name).c_str());
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:167:3:  [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(szBuf,8096,Lang::getInstance().getString("LogScreenGameLoadingTileset","",true).c_str(),formatString(name).c_str());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:612:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:627:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:640:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:667:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:675:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:731:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " stuck: %d for unit:\n%sBEFORE unitBlockCount = %d, AFTER = %d, BEFORE , AFTER: %u\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerfUnit.getMillis(),isStuck,unit->toString().c_str(),unitBlockCount,unit->getPath()->getBlockCount(),unit->getLastStuckFrame());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:739:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " faction: %d / %d unitCount = %d unitCountUpdated = %d unitCountStuck = %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis(),i+1,factionCount,unitCount,unitCountUpdated,unitCountStuck);
data/megaglest-3.13.0/source/glest_game/world/world.cpp:759:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " totalUnitsProcessed = %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis(),totalUnitsProcessed);
data/megaglest-3.13.0/source/glest_game/world/world.cpp:844:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:854:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:867:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:880:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:892:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:906:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:922:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:931:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:947:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:974:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:986:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER " fogOfWar: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis(),fogOfWar);
data/megaglest-3.13.0/source/glest_game/world/world.cpp:999:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:1023:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:1075:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(perfBuf,"In [%s::%s] Line: %d took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chronoPerf.getMillis());
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftpTypes.h:63:34:  [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.
#if (defined WIN32) && !(defined snprintf)
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftpTypes.h:64:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftpTypes.h:64:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/megaglest-3.13.0/source/shared_lib/include/platform/common/platform_common.h:31:34:  [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.
#if (defined WIN32) && !(defined snprintf)
data/megaglest-3.13.0/source/shared_lib/include/platform/common/platform_common.h:32:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/megaglest-3.13.0/source/shared_lib/include/platform/common/platform_common.h:32:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/megaglest-3.13.0/source/shared_lib/include/streflop/FPUCheck.h:74:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(szBuf,"In [%s::%s Line: %d]",file=NULL, classname, line);
data/megaglest-3.13.0/source/shared_lib/include/streflop/FPUSettings.h:62:102:  [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.
#warning STREFLOP: FE_XXX flags were already defined and will be redefined! Check you do not use the system libm.
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:97: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.
				FILE* f = popen (buf, "r");
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:135: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 (file , buf);
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:163:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy (file , buf);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:123:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p->path, findData.cFileName);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:132:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p->path, findData.cFileName);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp:412:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ip, str_.c_str());
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:1957: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.
	FILE *file = popen(cmd.c_str(),"r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:55:2:  [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), fmt, va_alist);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:390:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (buf, "%s", event);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:1016:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(nick,newNick);
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:49:9:  [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.
	file = popen("which zenity","r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:61:9:  [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.
	file = popen("which kdialog","r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:73:9:  [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.
	file = popen("which yad","r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:85:9:  [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.
	file = popen("which gdialog","r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:130:14:  [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.
		FILE *fp = popen(command.c_str(),"r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:171:14:  [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.
			FILE* f = popen (buf, "r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:212:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy (file , buf);
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:239:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy (file , buf);
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:141:19:  [4] (buffer) lstrcpyA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            (void)lstrcpyA(&szPattern2[0], "%HOMEDRIVE%%HOMEPATH%");
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:147:23:  [4] (buffer) lstrcpynA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                (void)lstrcpynA(&szPattern3[0] + dw - 1, &pattern[1], (int)(NUM_ELEMENTS(szPattern3) - dw));
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:161:15:  [4] (buffer) lstrcpyA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        (void)lstrcpyA(szRelative, effectivePattern);
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:252:27:  [4] (buffer) lstrcatW:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
                    (void)lstrcatW(find_data.cFileName, L"/");
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:303:19:  [4] (buffer) lstrcpynA:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            (void)lstrcpynA(buffer + cbCurr, szRelative, 1 + (int)(file_part - effectivePattern));
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:304:19:  [4] (buffer) lstrcatA:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
            (void)lstrcatA(buffer + cbCurr, sFileName.c_str());
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:434:45:  [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).
                pp[0 + pglob->gl_offs]  =   strcpy(dest, effectivePattern);
data/megaglest-3.13.0/source/shared_lib/sources/util/string_utils.cpp:286:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(szBuf,p.c_str());
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:426: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(szBuf,max_debug_buffer_size-1,fmt, argList);
data/megaglest-3.13.0/source/g3d_viewer/main.cpp:68:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if(path == "" && getenv("GLESTHOME") != NULL) {
data/megaglest-3.13.0/source/g3d_viewer/main.cpp:69:32:  [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.
        path = safeCharPtrCopy(getenv("GLESTHOME"),8096);
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:293:14:  [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.
		startLoc = random.randRange(0, aiInterface->getMapMaxPlayers()-1);
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:337:10:  [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.
	return &random;
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:357: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((unsigned int)seed.getCurTicks() + aiInterface->getMyFaction()->getIndex());
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:554:21:  [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.
		*unitIndex= units[random.randRange(0, (int)units.size()-1)];
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:655:21:  [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.
		*unitIndex= units[random.randRange(0, (int)units.size()-1)];
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:744:35:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if(expansionPositions.empty() || random.randRange(0, 1) == 0){
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:748:28:  [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.
	return expansionPositions[random.randRange(0, (int)expansionPositions.size()-1)];
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:760:13:  [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.
	        && random.randRange(0, 2) == 1;
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:762:7:  [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.
			&& random.randRange(0, 1) == 1;
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:789:15:  [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.
			pos= Vec2i(random.randRange(2, width - 2), random.randRange(2, height - 2));
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:789:47:  [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.
			pos= Vec2i(random.randRange(2, width - 2), random.randRange(2, height - 2));
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:811:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (random.randRange(0, 1) == 1 ) {
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:841:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int maxProducerWarriors=random.randRange(1,11);
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:977:16:  [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.
			minWarriors=random.randRange(maxMinWarriors-10, maxMinWarriors*2);
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:997:3:  [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.
		random.randRange(-villageRadius, villageRadius),
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:998:3:  [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.
		random.randRange(-villageRadius, villageRadius)) +
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:1015:25:  [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.
			resPos= resPos+Vec2i(random.randRange(-2, 2), random.randRange(-2, 2));
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:1015:50:  [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.
			resPos= resPos+Vec2i(random.randRange(-2, 2), random.randRange(-2, 2));
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:1176:8:  [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.
							random.randRange(-villageRadius*2, villageRadius*2),
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:1177:8:  [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.
							random.randRange(-villageRadius*2, villageRadius*2)) +
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:1226:41:  [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.
	aiNode->addAttribute("random",intToStr(random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:1293:2:  [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.
	random.setLastNumber(aiNode->getAttribute("random")->getIntValue());
data/megaglest-3.13.0/source/glest_game/ai/ai.h:167:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:338:30:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					int tryRadius = faction.random.randRange(1,2);
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:1201:61:  [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.
		factionsNode->addAttribute("random",intToStr(factionState.random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:1240:16:  [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.
		factionState.random.setLastNumber(factionsNode->getAttribute("random")->getIntValue());
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:124:13:  [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.
		RandomGen random;
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:407:32:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int tryDirection 	= faction.random.randRange(1, 4);
data/megaglest-3.13.0/source/glest_game/facilities/auto_test.cpp:44:2:  [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.
	random.init(time(NULL));
data/megaglest-3.13.0/source/glest_game/facilities/auto_test.cpp:81:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int scenarioIndex = random.randRange(0, menuStateScenario->getScenarioCount()-1);
data/megaglest-3.13.0/source/glest_game/facilities/auto_test.h:45:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/facilities/game_util.cpp:351:32:  [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.
        path = safeCharPtrCopy(getenv("GLESTHOME"),8095);
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:1602:2:  [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.
	random.init(seed);
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:1607: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.
	return random.randRange(minVal,maxVal);
data/megaglest-3.13.0/source/glest_game/game/script_manager.h:221:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/gui/gui.cpp:320:36:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if(selection.isCommandable() && random.randRange(0, 1)==0){
data/megaglest-3.13.0/source/glest_game/gui/gui.cpp:505:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if(random.randRange(0, 1)==0){
data/megaglest-3.13.0/source/glest_game/gui/gui.cpp:560:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if(random.randRange(0, 1) == 0) {
data/megaglest-3.13.0/source/glest_game/gui/gui.cpp:1351:42:  [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.
	guiNode->addAttribute("random",intToStr(random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/glest_game/gui/gui.cpp:1381:2:  [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.
	random.setLastNumber(guiNode->getAttribute("random")->getIntValue());
data/megaglest-3.13.0/source/glest_game/gui/gui.h:110:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/main/intro.cpp:237:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srand((unsigned int)seed.getCurTicks());
data/megaglest-3.13.0/source/glest_game/main/intro.cpp:244:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					srand((unsigned int)seed.getCurTicks() / failedLookups);
data/megaglest-3.13.0/source/glest_game/main/intro.cpp:250:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				srand((unsigned int)seed.getCurTicks() / (unsigned int)modelList.size());
data/megaglest-3.13.0/source/glest_game/main/intro.cpp:427:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srand((unsigned int)seed.getCurTicks());
data/megaglest-3.13.0/source/glest_game/main/intro.cpp:434:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					srand((unsigned int)seed.getCurTicks() / failedLookups);
data/megaglest-3.13.0/source/glest_game/main/intro.cpp:452:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				srand((unsigned int)seed.getCurTicks() / (unsigned int)intoTexList.size());
data/megaglest-3.13.0/source/glest_game/main/intro.cpp:608:54:  [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.
	anim += (maxSpeed / GameConstants::updateFps) / 5 + random.randRange(minSpeed, max(minSpeed + 0.0001f, (maxSpeed / GameConstants::updateFps) / 5.f));
data/megaglest-3.13.0/source/glest_game/main/intro.h:102:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/menu/menu_background.cpp:165:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			raindropStates[i]= random.randRange(0.f, 1.f);
data/megaglest-3.13.0/source/glest_game/menu/menu_background.cpp:225:42:  [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.
	anim+=(0.6f/GameConstants::updateFps)/5+random.randRange(0.f, (0.6f/GameConstants::updateFps)/5.f);
data/megaglest-3.13.0/source/glest_game/menu/menu_background.cpp:233:15:  [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.
	return Vec2f(random.randRange(-f, f), random.randRange(-f, f));
data/megaglest-3.13.0/source/glest_game/menu/menu_background.cpp:233:40:  [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.
	return Vec2f(random.randRange(-f, f), random.randRange(-f, f));
data/megaglest-3.13.0/source/glest_game/menu/menu_background.h:76:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:298:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)seed.getCurTicks());
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1807:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					srand((unsigned int)seed.getCurTicks() + findRandomFaction);
data/megaglest-3.13.0/source/glest_game/menu/menu_state_graphic_info.cpp:63:5:  [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("MEGAGLEST_FONT") != NULL) {
data/megaglest-3.13.0/source/glest_game/menu/menu_state_graphic_info.cpp:64: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.
		char *tryFont = getenv("MEGAGLEST_FONT");
data/megaglest-3.13.0/source/glest_game/menu/menu_state_graphic_info.cpp:101:5:  [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("MEGAGLEST_FONT") != NULL) {
data/megaglest-3.13.0/source/glest_game/menu/menu_state_graphic_info.cpp:102: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.
		char *tryFont = getenv("MEGAGLEST_FONT");
data/megaglest-3.13.0/source/glest_game/menu/menu_state_masterserver.cpp:254:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)seed.getCurTicks());
data/megaglest-3.13.0/source/glest_game/network/connection_slot.cpp:609:7:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
						srand((unsigned int)seed.getCurTicks() / (this->playerIndex + 1));
data/megaglest-3.13.0/source/glest_game/sound/sound_container.cpp:36:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int soundIndex= random.randRange(0, (int)sounds.size()-1);
data/megaglest-3.13.0/source/glest_game/sound/sound_container.h:43:20:  [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.
	mutable RandomGen random;
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1549:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int tryRadius = random.randRange(0,1);
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1678:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int tryRadius = random.randRange(0,1);
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:2306:46:  [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.
	factionNode->addAttribute("random",intToStr(random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:2407:3:  [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.
		random.setLastNumber(factionNode->getAttribute("random")->getIntValue());
data/megaglest-3.13.0/source/glest_game/type_instances/faction.h:164:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/type_instances/object.cpp:38:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/type_instances/object.cpp:40:2:  [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.
	random.init(static_cast<int>(pos.x * pos.z));
data/megaglest-3.13.0/source/glest_game/type_instances/object.cpp:47:25:  [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.
	this->pos= pos + Vec3f(random.randRange(-0.6f, 0.6f), 0.0f, random.randRange(-0.6f, 0.6f));
data/megaglest-3.13.0/source/glest_game/type_instances/object.cpp:47:62:  [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.
	this->pos= pos + Vec3f(random.randRange(-0.6f, 0.6f), 0.0f, random.randRange(-0.6f, 0.6f));
data/megaglest-3.13.0/source/glest_game/type_instances/object.cpp:48:12:  [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.
	rotation= random.randRange(0.f, 360.f);
data/megaglest-3.13.0/source/glest_game/type_instances/object.cpp:50:15:  [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.
		variation = random.randRange(0, objectType->getModelCount()-1);
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:565:5:  [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.
    random.init(id);
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:566:5:  [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.
    random.setDisableLastCallerTracking(isNetworkCRCEnabled() == false);
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:567:29:  [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.
	pathFindRefreshCellCount = random.randRange(10,20,intToStr(__LINE__));
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:628:3:  [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.
		random.init(id);
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:629:10:  [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.
		rot += random.randRange(-5, 5,intToStr(__LINE__));
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1389:10:  [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.
	return &random;
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4519:5:  [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.
				random.getLastNumber(),
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4671:30:  [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.
			MIN_FRAME_ELAPSED_RETRY = random.randRange(2,6,intToStr(__LINE__));
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4679:30:  [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.
			MIN_FRAME_ELAPSED_RETRY = random.randRange(6,8,intToStr(__LINE__));
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4854:38:  [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.
    result += "random = " + intToStr(random.getLastNumber()) + "\n";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4855:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(this->random.getLastCaller() != "") {
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4856:40:  [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.
    	result += "randomlastCaller = " + random.getLastCaller() + "\n";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:5179:43:  [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.
	unitNode->addAttribute("random",intToStr(random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:5648:11:  [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.
		result->random.setLastNumber(unitNode->getAttribute("random")->getIntValue());
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:5870:20:  [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.
	crcForUnit.addInt(random.getLastNumber());
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:5871:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if(this->random.getLastCaller() != "") {
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:5872:30:  [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.
		crcForUnit.addString(this->random.getLastCaller());
data/megaglest-3.13.0/source/glest_game/type_instances/unit.h:485:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/types/skill_type.cpp:683:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					srand((unsigned int)seed.getCurTicks() + (unit != NULL ? unit->getId() : 0));
data/megaglest-3.13.0/source/glest_game/types/skill_type.cpp:692:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					srand((unsigned int)seed.getCurTicks() + unit->getId());
data/megaglest-3.13.0/source/glest_game/types/skill_type.cpp:787:48:  [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.
	skillTypeNode->addAttribute("random",intToStr(random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/glest_game/types/skill_type.h:195:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:150:2:  [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.
	random.init(time(NULL));
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:459:59:  [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.
		float rnd= streflop::fabs(static_cast<streflop::Simple>(random.randRange(-1.f, 1.f)));
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:461:19:  [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.
		float rnd= fabs(random.randRange(-1.f, 1.f));
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:529:12:  [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.
		float r= random.randRange(0.f, 1.f);
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:557:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int var= random.randRange(0, transitionVars);
data/megaglest-3.13.0/source/glest_game/world/tileset.h:140:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_game/world/world.cpp:1195:54:  [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.
					Vec2f(unit->getLastPos().x+(float)unitSize/2.0f+random.randRange(-0.9f, -0.1f), unit->getLastPos().y+random.randRange(-0.9f, -0.1f)+(float)unitSize/2.0f), unit->getType()->getSize());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:1195:107:  [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.
					Vec2f(unit->getLastPos().x+(float)unitSize/2.0f+random.randRange(-0.9f, -0.1f), unit->getLastPos().y+random.randRange(-0.9f, -0.1f)+(float)unitSize/2.0f), unit->getType()->getSize());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2095:3:  [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.
		random.setLastNumber(loadWorldNode->getAttribute("random")->getIntValue());
data/megaglest-3.13.0/source/glest_game/world/world.cpp:3067:44:  [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.
	worldNode->addAttribute("random",intToStr(random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/glest_game/world/world.h:100:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/glest_map_editor/main.cpp:35:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if(path == "" && getenv("GLESTHOME") != NULL) {
data/megaglest-3.13.0/source/glest_map_editor/main.cpp:36: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.
        path = getenv("GLESTHOME");
data/megaglest-3.13.0/source/shared_lib/include/graphics/particle.h:143:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/shared_lib/include/map/map_preview.h:133:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:191:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned int) (((time_now >> 32) ^ time_now) & 0xffffffff));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp:624:42:  [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.
	string megaglest_font = safeCharPtrCopy(getenv("MEGAGLEST_FONT"),8095);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp:625:49:  [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.
	string megaglest_font_family = safeCharPtrCopy(getenv("MEGAGLEST_FONT_FAMILY"),8095);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:165:30:  [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.
	crcForParticleSystem.addInt(random.getLastNumber());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:345:37:  [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.
	result += "\nrandom = " + intToStr(random.getLastNumber());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:390:53:  [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.
	particleSystemNode->addAttribute("random",intToStr(random.getLastNumber()), mapTagReplacements);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:488:2:  [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.
	random.setLastNumber(particleSystemNode->getAttribute("random")->getIntValue());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:615:33:  [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.
	p->energy= maxParticleEnergy + random.randRange(-varParticleEnergy, varParticleEnergy);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:666:13:  [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.
	float ang= random.randRange(-2.0f * pi, 2.0f * pi);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:668:59:  [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.
	float mod= streflop::fabsf(static_cast<streflop::Simple>(random.randRange(-radius, radius)));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:675:19:  [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.
	float mod= fabsf(random.randRange(-radius, radius));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:685:12:  [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.
	        + random.randRange(-varParticleEnergy, varParticleEnergy);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:686:35:  [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.
	p->pos= Vec3f(pos.x + x, pos.y + random.randRange(-radius / 2, radius / 2), pos.z + y);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:693:37:  [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.
	p->speed= Vec3f(0, speed + speed * random.randRange(-0.5f, 0.5f), 0) + windSpeed;
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1114:19:  [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.
	const float ang= random.randRange(-2.0f * pi, 2.0f * pi);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1116:65:  [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.
	const float mod= streflop::fabsf(static_cast<streflop::Simple>(random.randRange(-radius, radius)));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1119:25:  [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.
	const float mod= fabsf(random.randRange(-radius, radius));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1131:5:  [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.
				random.randRange(-varParticleEnergy,varParticleEnergy);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1135:5:  [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.
				random.randRange(-varParticleEnergy, varParticleEnergy);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1150:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		angle = (float)random.randRange(0,360);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1161:19:  [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.
		start = start * random.randRange(minRadius,radius);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1179:6:  [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.
					random.randRange(-radius / 2, radius / 2) + offset.y,
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1198:169:  [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.
			p->pos= Vec3f(pos.x+x+combinedOffset.z*streflop::sinf(static_cast<streflop::Simple>(rad))+combinedOffset.x*streflop::cosf(static_cast<streflop::Simple>(rad)), pos.y+random.randRange(-radius/2, radius/2)+combinedOffset.y, pos.z+y+(combinedOffset.z*streflop::cosf(static_cast<streflop::Simple>(rad))-combinedOffset.x*streflop::sinf(static_cast<streflop::Simple>(rad))));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1200:99:  [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.
			p->pos= Vec3f(pos.x + x + combinedOffset.z * sinf(rad) + combinedOffset.x * cosf(rad), pos.y + random.randRange(-radius / 2,
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1209:47:  [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.
		p->speed= Vec3f(direction.x + direction.x * random.randRange(-0.5f, 0.5f), direction.y + direction.y
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1210:6:  [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.
			* random.randRange(-0.5f, 0.5f), direction.z + direction.z * random.randRange(-0.5f, 0.5f));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1210:65:  [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.
			* random.randRange(-0.5f, 0.5f), direction.z + direction.z * random.randRange(-0.5f, 0.5f));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1573:11:  [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.
	float x= random.randRange(-radius, radius);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1574:11:  [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.
	float y= random.randRange(-radius, radius);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1584:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	p->speed= Vec3f(random.randRange(-speed / 10, speed / 10), -speed,
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1585:4:  [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.
			random.randRange(-speed / 10, speed / 10)) + windSpeed;
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1650:11:  [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.
	float x= random.randRange(-radius, radius);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1651:11:  [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.
	float y= random.randRange(-radius, radius);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1662:15:  [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.
	p->speed.x+= random.randRange(-0.005f, 0.005f);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1663:15:  [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.
	p->speed.y+= random.randRange(-0.005f, 0.005f);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1939:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	p->speed= Vec3f(random.randRange(-0.1f, 0.1f), random.randRange(-0.1f, 0.1f),
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1939:49:  [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.
	p->speed= Vec3f(random.randRange(-0.1f, 0.1f), random.randRange(-0.1f, 0.1f),
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1940:4:  [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.
			random.randRange(-0.1f, 0.1f)) * speed;
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:2248:38:  [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.
	p->speed= Vec3f(horizontalSpreadA * random.randRange(-1.0f, 1.0f) + horizontalSpreadB, verticalSpreadA
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:2249:12:  [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.
	        * random.randRange(-1.0f, 1.0f) + verticalSpreadB, horizontalSpreadA * random.randRange(-1.0f, 1.0f)
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:2249:81:  [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.
	        * random.randRange(-1.0f, 1.0f) + verticalSpreadB, horizontalSpreadA * random.randRange(-1.0f, 1.0f)
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1303:12:  [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.
	RandomGen random;
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1334:44:  [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.
			float lu= distLu>avg? 0: ((avg-distLu))*random.randRange(0.5f, 1.0f);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1335:44:  [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.
			float ru= distRu>avg? 0: ((avg-distRu))*random.randRange(0.5f, 1.0f);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1336:44:  [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.
			float ld= distLd>avg? 0: ((avg-distLd))*random.randRange(0.5f, 1.0f);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1337:44:  [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.
			float rd= distRd>avg? 0: ((avg-distRd))*random.randRange(0.5f, 1.0f);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:591:44:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(verboseEnabled) printf("Trying [%s]\n",getenv("VLC_PLUGIN_PATH"));
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:708:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if(withReset) resetHeights(random.randRange(8, 10));
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:714:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int slPlaceFactorX = random.randRange(0, 1);
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:715:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int slPlaceFactorY = random.randRange(0, 1) * 2;
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:719:25:  [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.
		float slNoiseFactor = random.randRange(0.5f, 0.8f);
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:873:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    srand((unsigned int)time(NULL) + (unsigned long)crcCacheFile.length());
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2064:22:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		char *argv0_path = realpath(exeName.c_str(),NULL);
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2076:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			const char *shell_path = getenv("_");
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2343:32:  [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_folder = safeCharPtrCopy(getenv("HOME"),8095);
data/megaglest-3.13.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp:394:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *deviceName = getenv("MEGAGLEST_SOUND_DEVICE");
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:208:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *homeDirX = getenv("USERPROFILE");
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:247:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   char *username = getenv("USERNAME");
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:344:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *homeDirX = getenv("USERPROFILE");
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:382:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   char *username = getenv("USERNAME");
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:538: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((unsigned int)seed.getCurTicks());
data/megaglest-3.13.0/source/g3d_viewer/main.cpp:1041: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(saveAsFilename.c_str(), "rb");
data/megaglest-3.13.0/source/g3d_viewer/main.cpp:1076: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(path.c_str(), "rb");
data/megaglest-3.13.0/source/g3d_viewer/renderer.cpp:225: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:387: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:478: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:505:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:522: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai.cpp:529: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:225: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(aiLogFile.c_str(), "wt");
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:381: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:387: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:392: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:398: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:436: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:442: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:448: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:484: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:490: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:496: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:532: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:538: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:544: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_interface.cpp:626: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:586: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:632: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:692: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:759: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:789: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:807: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:822: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:947: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:955:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:981: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:995: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1003: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1142: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1195: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1203:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1264: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1296: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1302: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1362: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1368: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1408: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1431: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1454: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1474: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1501: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1557: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1575: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1597: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1643: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1657: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1676: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1692: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1708: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1725: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1738: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1748: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1759:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/ai_rule.cpp:1876: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:155: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:164: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:189: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:208: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:217: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:249: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:264: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:297: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:343:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
						char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:362: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:373:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
										char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:390: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:400:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
										char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:455: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:504: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:527: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:626: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:660: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:722: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:750:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:760: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:778: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:801: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:815: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:826: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:863: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:935: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:973: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:998: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:1012: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:1050: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:1098: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.cpp:1168: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:267: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:299: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:336: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:355: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:374:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:412:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/ai/path_finder.h:467: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/facilities/components.cpp:75: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  uuid_str[38];
data/megaglest-3.13.0/source/glest_game/facilities/components.cpp:525: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/facilities/components.cpp:601: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/facilities/logger.cpp:78: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).
	FILE *f = fopen(fileName.c_str(), "at+");
data/megaglest-3.13.0/source/glest_game/facilities/logger.cpp:98: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).
	FILE *f= fopen(fileName.c_str(), "wt+");
data/megaglest-3.13.0/source/glest_game/facilities/logger.cpp:278: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/chat_manager.cpp:90:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/chat_manager.cpp:357: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/chat_manager.cpp:513:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:459: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:463:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:612: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:706: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:732: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:927: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:938: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:945:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:957: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:968:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:976:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:1008: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:1020:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/commander.cpp:1035:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/console.cpp:53: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  uuid_str[38];
data/megaglest-3.13.0/source/glest_game/game/console.cpp:182: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/console.cpp:216: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1002: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 perfBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1142: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1221: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 perfBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1274: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1289: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1388:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1784: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 perfBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:1829:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2117: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2541: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2689: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:2778: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3006: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3033: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3068: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3134: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3321: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3344: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3368: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3390: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3412: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3735: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3798: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3939: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:3958: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:4198: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:4255: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:4312: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:4362: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:4515: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:4555: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:4922: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:5007: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:5141:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			logFile.open(debugCRCWorldLogFile.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6119: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6445: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6462: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 szBuf2[100]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6465: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6473: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 szBuf2[100]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6476: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6508: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 szBuf[4096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6538:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[4096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6725: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6789: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game.cpp:6808: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_camera.cpp:98: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:206: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:214: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:227: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:238: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:247: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:257: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:303: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:312:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:322: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:344: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:354: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:363: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:409: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:418: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:427: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:437: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:447: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:456: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:466: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:475: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:489: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:503: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/game_settings.h:512: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:472: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:990:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[max_debug_buffer_size]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:1005:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[max_debug_buffer_size]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:1019:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[max_debug_buffer_size]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:2208: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:2209: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 szErrBuf2[8096]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:3387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:3502:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/game/script_manager.cpp:3589:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/global/config.cpp:288:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			userFile.open(fileName.second.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/glest_game/global/core_data.cpp:780: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).
			introMusic.open(
data/megaglest-3.13.0/source/glest_game/global/core_data.cpp:784:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			menuMusic.open(
data/megaglest-3.13.0/source/glest_game/global/core_data.cpp:1379:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    saveGameFile.open(fileName.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:429: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:771: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:1752: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:1757: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:1762: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:1771: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:2295: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 szBuf[200]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:2343: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 szBuf[501]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:2360: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 szBuf2[100]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:2364: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 szBuf[200]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:2373: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 szBuf[200]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:2867: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 szBuf[8096] = "";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:3322: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:3476: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:3986: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:5263: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:7172: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:7233: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:8286: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/gui/gui.cpp:901:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/battle_end.cpp:290:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			battleEndMusic.open(music);
data/megaglest-3.13.0/source/glest_game/main/main.cpp:335: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 path_name[MAX_PATH] = {};
data/megaglest-3.13.0/source/glest_game/main/main.cpp:592:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logFile.open(errorLogFile.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/glest_game/main/main.cpp:599: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 szBuf2[100]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:1256: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(path.c_str(), "rb");
data/megaglest-3.13.0/source/glest_game/main/main.cpp:1260: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:1891: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:1993: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2005:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
										char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2017: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2054: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.
											char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2092:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
										char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2322: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2352: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2452:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
												char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2465: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.
													char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2477:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
												char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2532: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.
															char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2587: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.
															char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:2681:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					txFile.open(translationFile.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/glest_game/main/main.cpp:3320: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:3355: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:3406: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:3468: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:4530: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  uuid_str[38];
data/megaglest-3.13.0/source/glest_game/main/main.cpp:4682:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        		char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:4979: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 langValue[1024]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:5208: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:5455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szTextBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:5874:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/main.cpp:5897:4:  [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 szBuf[8096];
data/megaglest-3.13.0/source/glest_game/main/main.cpp:5916: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 szBuf[8096];
data/megaglest-3.13.0/source/glest_game/main/program.cpp:414: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 perfBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/program.cpp:696: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/main/program.cpp:725: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:559: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:655: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:851: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1047: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1066:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1081:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1091:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1294: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1332: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1370: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1418:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1521:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:1984: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2019:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2190: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2213: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2233: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2492: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:2896: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:3752: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:3828: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:3899: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:3981: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4194: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4318: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4342:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4393:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4413:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4453:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4506:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4546:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4600:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4651:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4693:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4799: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4833: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4872: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4906: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:4961: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:5335:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:5358: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:5403: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_connected_game.cpp:5434: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:416: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:725: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:957: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:985: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1546:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
										char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1646: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1770: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1771: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(szMsg,"Cannot start game.\nThere are no tech-trees!\n");
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1885:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1895:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(szMsg,"Cannot start game, some player(s) are not in a network game slot!");
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:2323: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:2738: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:2968: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:2979: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:3322: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:3437: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:4252: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:4363: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:4391: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:4427: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:4471: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:4922: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:4980: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:5028:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:5057: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:5103: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:5213: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:5253: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_join_game.cpp:718:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szCharText[26]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_keysetup.cpp:205: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_keysetup.cpp:514: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 szCharText[20]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_keysetup.cpp:518: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 szBuf[8096] = "";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:223: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:255: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:296: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:335: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:344: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:355: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_load_game.cpp:368: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_masterserver.cpp:252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szIRCNick[80]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_masterserver.cpp:433:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_masterserver.cpp:1093: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:456: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:475:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:490:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:500:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1162: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1254: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1544: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1551: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1584:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1592:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1625: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1632: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1664:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1672:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1695: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1702: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1734:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1742:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1774: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1781: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1815:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:1823:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2314: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2437: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2472:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2488:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2505:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2580: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2620: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2627: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2647: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2655: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2674: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2700: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2718: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_mods.cpp:2746: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_graphics.cpp:902: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).
		config.setInt("AnimatedTilesetObjects", atoi(listBoxAnimatedTilesetObjects.getSelectedItem().c_str()));
data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_network.cpp:179: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_options_network.cpp:360: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:161: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:297: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:414: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:425: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:490: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:666: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:697: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_root.cpp:704: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 szMsg[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp:150: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp:259:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp:365:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp:397: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp:456: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/menu/menu_state_scenario.cpp:461: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:170: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:433: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 szBuf1[8096]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:932: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 szBuf[1024]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1320: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 szBuf[1024]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1660: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1737: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 szBuf1[8096]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1857:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:1932: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/connection_slot.cpp:1006:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
										char szBuf[1024]="";
data/megaglest-3.13.0/source/glest_game/network/connection_slot.cpp:1020:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
								    		char szBuf[4096]="";
data/megaglest-3.13.0/source/glest_game/network/network_interface.cpp:439: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 data[513]="";
data/megaglest-3.13.0/source/glest_game/network/network_interface.cpp:464:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data+1,&file,sizeof(file));
data/megaglest-3.13.0/source/glest_game/network/network_interface.cpp:525:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char data[513]="";
data/megaglest-3.13.0/source/glest_game/network/network_interface.cpp:528:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data+1,&file,sizeof(file));
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:100: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(out_buffer,&messageType,msgTypeSize);
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:101: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(&out_buffer[msgTypeSize],(const char *)data,dataSize);
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:131: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(out_buffer,&messageType,msgTypeSize);
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:132: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(&out_buffer[msgTypeSize],&compressedLength,compressedSize);
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:133:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&out_buffer[msgTypeSize+compressedSize],(const char *)data,dataSize);
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:1435: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,decompressed_buffer,decompressedBuffer.second);
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:1499: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,&data,getDataSize());
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:1891: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,&data.header,headerSize);
data/megaglest-3.13.0/source/glest_game/network/network_message.cpp:1892: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[headerSize],&data.commands[0],detailSize);
data/megaglest-3.13.0/source/glest_game/network/network_protocol.cpp:380:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, s, len);
data/megaglest-3.13.0/source/glest_game/network/network_protocol.cpp:560:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, buf, count);
data/megaglest-3.13.0/source/glest_game/network/network_types.cpp:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/network_types.h:46: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 buffer[S];
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:402:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szIP[100] = "";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:491: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:514: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 szBuf[4096] = "";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:569: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:575: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:633: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:645: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:766: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 szBuf[4096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:818:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				    		char szBuf[4096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:2020: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:2029: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 szBuf1[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:2287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:3071:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]	= "";
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:3115:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logFile.open(headlessLogFile .c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:391: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:417: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:460: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1007:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1014:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1453:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1476: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1523:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1639: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1795: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:1800: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 szBuf1[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/faction.cpp:2212: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:269: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:887: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:900: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:911: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1049: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1063: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1082: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1120: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1155: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1202: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1212: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1222: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1256: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1261: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1359: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1370: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1582: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1600: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1652: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1667: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:1682: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2033: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2139: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2151: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2192: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2264: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2270: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2391: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2656: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:2952: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3091: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3201: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3324: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3346: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3368: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3407: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3428: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3567: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3650: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3658: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3831: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3868: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3901: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3928: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3946: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3951: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3971: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3983: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:3988: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4016: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4501: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4530: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 szBufDataText[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/unit.cpp:4597: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/type_instances/upgrade.cpp:118: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:130: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:281:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			music->open(musicNode->getAttribute("path")->getRestrictedValue(currentPath));
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:455: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:466:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:474:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:510: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:537: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:547: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:574: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:600: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:611: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:633: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:718: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:730: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:742: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:751: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:785: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:809: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:841: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/faction_type.cpp:887: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/resource_type.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/skill_type.cpp:374: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 szBuf[8096] = "";
data/megaglest-3.13.0/source/glest_game/types/skill_type.cpp:889: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/tech_tree.cpp:224: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/tech_tree.cpp:346: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/tech_tree.cpp:440: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/tech_tree.cpp:492: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/unit_type.cpp:201: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/unit_type.cpp:1255: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/types/upgrade_type.cpp:911: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:174:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:196: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:385: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:404: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(path.c_str(), "rb");
data/megaglest-3.13.0/source/glest_game/world/map.cpp:465: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:473: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:492: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:509: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:526: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:668: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.cpp:1433: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h:404:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h:472: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h:502: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h:530: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h:556: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h:573: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/map.h:600: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:94: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:218: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:231: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:251:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        		char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:287:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        		char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:301: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:306: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:311: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:316: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:321: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:326: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/scenario.cpp:444: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/surface_atlas.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:50: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).
		day.open(path);
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:64:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		night.open(path);
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:78: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).
		rain.open(path);
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp:90: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).
		snow.open(path);
data/megaglest-3.13.0/source/glest_game/world/tileset.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:225: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:509: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:599: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:623: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:664: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:681: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:696: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:708: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:719: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:736:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:758: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:779:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:810: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:819: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:880: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:904: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:921: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:943: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:963: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:973: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:982: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1065: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1097: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1106: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1250: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1261: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1274: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1310: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1327: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1402: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1414: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1487:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
												char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1507: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1540: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1551: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1562: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1643:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
										char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1698: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:1875: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2009: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2185: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2313: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2332: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2412: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2432: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2473: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2492: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2572: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2598: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2623: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2667: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:2781: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:3147: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:3225: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:3322: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/unit_updater.cpp:3383: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:372: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:384: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:579: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 perfBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:745: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(perfBuf,"Command class = %d, count = %d\n",iterMap->first,iterMap->second);
data/megaglest-3.13.0/source/glest_game/world/world.cpp:752: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(perfBuf,"Skill class = %d, count = %d\n",iterMap->first,iterMap->second);
data/megaglest-3.13.0/source/glest_game/world/world.cpp:831: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 perfBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:969: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 perfBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:1665:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		sound->open(calculatedFilePath);
data/megaglest-3.13.0/source/glest_game/world/world.cpp:1977:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2231: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2294: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2306: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 szErrBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2438: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2883: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2910: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2940: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 szBuf[8096]="";
data/megaglest-3.13.0/source/glest_game/world/world.cpp:2993:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logFile.open(debugWorldLogFile.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftp.h:58:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int      open;						///< TRUE, if the session is open
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftp.h:62: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     rxBuf[LEN_RXBUF];			///< receive buffer for ftp commands
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftp.h:63: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     workingDir[MAX_PATH_LEN];  ///< current working directory (absolute path which is relative to the root-path of the user account)
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftp.h:126: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    		user[20];			///< owner
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftp.h:127: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    		group[20];			///< group
data/megaglest-3.13.0/source/shared_lib/include/feathery_ftp/ftp.h:167: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).
#	define ftpOpenFile   fopen
data/megaglest-3.13.0/source/shared_lib/include/graphics/gl/opengl.h:64: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/include/graphics/model.h:305: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 uniqueColorID[COLOR_COMPONENTS];
data/megaglest-3.13.0/source/shared_lib/include/graphics/model.h:307: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 unsigned char nextColorID[COLOR_COMPONENTS];
data/megaglest-3.13.0/source/shared_lib/include/platform/posix/socket.h:105: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 bytes[4];
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_main.h:524: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_main.h:594: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_main.h:615: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_util.h:119: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 stringType[MAXSTRLEN];
data/megaglest-3.13.0/source/shared_lib/include/sound/sound.h:112: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).
	void open(const string &path);
data/megaglest-3.13.0/source/shared_lib/include/sound/sound_file_loader.h:44: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).
	virtual void open(const string &path, SoundInfo *soundInfo)= 0;
data/megaglest-3.13.0/source/shared_lib/include/sound/sound_file_loader.h:68: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).
	virtual void open(const string &path, SoundInfo *soundInfo);
data/megaglest-3.13.0/source/shared_lib/include/sound/sound_file_loader.h:89: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).
	virtual void open(const string &path, SoundInfo *soundInfo);
data/megaglest-3.13.0/source/shared_lib/include/streflop/FPUCheck.h:72: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 szBuf[256]="";
data/megaglest-3.13.0/source/shared_lib/include/streflop/SoftFloatWrapper.h: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 holder[(Nbits/STREFLOP_INTEGER_TYPES_CHAR_BITS)];
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.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 nodeID[6];
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:127:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
inline static void get_random_info(char seed[16]) {
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:154:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
inline static void get_random_info(char seed[16]) {
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:161: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("/dev/urandom","rb");
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h: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(tmp,
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:230: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(tmp,"%2.2x", u.node[i]);
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:278: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 seed[16];
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:283: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(&saved_node, seed, sizeof saved_node);
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:304: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(&uuid->node, &node, sizeof uuid->node);
data/megaglest-3.13.0/source/shared_lib/include/util/gen_uuid.h:335: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  uuid_str[38];
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[maxbufSize+1]="";
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:139:8:  [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 (file,"unknown");
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:167:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy (file,"unknown");
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:245: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 file[8096]="";
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:248: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 lineBuf[1024]="";
data/megaglest-3.13.0/source/shared_lib/include/util/string_utils.h:59:3:  [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 pBuffer[8096];
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:294: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.
            static const unsigned char lookup_whitespace[256];              // Whitespace table
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:295: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.
            static const unsigned char lookup_node_name[256];               // Node name table
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:296: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.
            static const unsigned char lookup_text[256];                    // Text table
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:297: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.
            static const unsigned char lookup_text_pure_no_ws[256];         // Text table
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:298: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.
            static const unsigned char lookup_text_pure_with_ws[256];       // Text table
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:299: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.
            static const unsigned char lookup_attribute_name[256];          // Attribute name table
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:300: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.
            static const unsigned char lookup_attribute_data_1[256];        // Attribute data table with single quote
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:301: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.
            static const unsigned char lookup_attribute_data_1_pure[256];   // Attribute data table with single quote
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:302: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.
            static const unsigned char lookup_attribute_data_2[256];        // Attribute data table with double quotes
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:303: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.
            static const unsigned char lookup_attribute_data_2_pure[256];   // Attribute data table with double quotes
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:304: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.
            static const unsigned char lookup_digits[256];                  // Digits
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:305: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.
            static const unsigned char lookup_upcase[256];                  // To uppercase conversion table for ASCII characters
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:636: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 m_static_memory[RAPIDXML_STATIC_POOL_SIZE];    // Static raw memory
data/megaglest-3.13.0/source/shared_lib/sources/compression/compression_utils.cpp:73:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        level = atoi(&argv[1][2]);
data/megaglest-3.13.0/source/shared_lib/sources/compression/compression_utils.cpp:110: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).
  pInfile = fopen(pSrc_filename, "rb");
data/megaglest-3.13.0/source/shared_lib/sources/compression/compression_utils.cpp:132: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).
  pOutfile = fopen(pDst_filename, "wb");
data/megaglest-3.13.0/source/shared_lib/sources/compression/compression_utils.cpp:338: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(decompressed_buffer,input,input_len);
data/megaglest-3.13.0/source/shared_lib/sources/compression/compression_utils.cpp:361: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(compressed_buffer,input,input_len);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAXLEN_USERNAME+1];		///< user name
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c:39: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 passw[MAXLEN_PASSWORD+1];	///< password of the account
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c:40: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 ftpRoot[MAX_PATH_LEN+1];		///< root path of the user account on the server
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[6];
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:278:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char monName[12][4] = {
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:712: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 str[50];
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:810:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[12];
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:831:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[15];
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:909: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 cmdToken[5];		///< command-string
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpRuntime.c:213: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).
	        if(pSession->open)
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpRuntime.c:277: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).
		if(ftpGetSession(n)->open)
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:50: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.
LOCAL char pathScratchBuf[MAX_PATH_LEN];
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:70:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if(!sessions[n].open)
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:256: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 ftpRoot[2048]="";
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:90: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 path[MAX_PATH_LEN];
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:116:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(p->path, "/*");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/BMPReader.cpp:126: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 buffer[4];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/JPGReader.cpp:164:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pixels+location,row_pointer[0],cinfo.output_width*cinfo.num_components);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp:151:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pixels+location,row_pointers[y],rowbytes);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp:308:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pixels+location,row_pointers[y],rowbytes);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:93: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:176: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:188: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:205: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:221:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:251: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:268: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:353: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:398: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:415: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp:425: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp:181:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp:277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp:578: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp:694:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp:727:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp:865:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp:934:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp:1044: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp:1185: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/texture_gl.cpp:1238: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:249: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:257: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:265: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:273: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:420: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:427: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:433: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:511: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:520: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:528: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:536: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:544: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:550: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:567: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:574: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:647: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:655: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:665:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:674: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:682: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:690: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:697: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:812:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:818: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 mapPathString[mapPathSize+1]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:820:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&mapPathString[0],reinterpret_cast<char*>(cMapPath),mapPathSize);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:842: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:850: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:859: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:867: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:891: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((float32*)meshHeader.diffuseColor, (float32*)diffuseColor.ptr(), sizeof(float32) * 3);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:892: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((float32*)meshHeader.specularColor, (float32*)specularColor.ptr(), sizeof(float32) * 3);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1016: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(&cMapPath[0],file.c_str(),file.length());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1039: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1199: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).
		FILE *f=fopen(path.c_str(),"rb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1217: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1223: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 fileId[4] = "";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1225: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(&fileId[0],reinterpret_cast<char*>(fileHeader.id),3);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1243:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1262:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1289:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1304:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1317:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1357: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).
	FILE *f= fopen(tempModelFilename.c_str(), "wb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1493: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(&dest->vertices[0],&this->vertices[0],this->frameCount * this->vertexCount * sizeof(Vec3f));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1502: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(&dest->normals[0],&this->normals[0],this->frameCount * this->vertexCount * sizeof(Vec3f));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1511: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(&dest->texCoords[0],&this->texCoords[0],this->vertexCount * sizeof(Vec2f));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1520: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(&dest->tangents[0],&this->tangents[0],this->vertexCount * sizeof(Vec3f));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1529: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(&dest->indices[0],&this->indices[0],this->indexCount * sizeof(uint32));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1686: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(&joined_vertices[join_index],
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1689: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(&joined_normals[join_index],
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1695: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(&joined_vertices[join_index],
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1698: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(&joined_normals[join_index],
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1713: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(&joined_texCoords[0],
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1716: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(&joined_texCoords[originalBaseVertexCount],
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1728: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(&joined_indexes[join_index_index],
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1820:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:1871: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(pixmapScreenShot->getPixels(),src,pixmapScreenShot->getPixelByteCount());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:2132: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 szBuf[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:556: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:1889: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/particle.cpp:2229: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:116: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).
		file= fopen(path.c_str(),"rb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:126: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:167: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:187: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:202: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:212: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:222: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:233: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:272: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:286: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).
    file= fopen(path.c_str(),"wb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:363: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).
    file= fopen(path.c_str(),"rb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:373: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:395: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:432: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:441: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:451: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:487: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).
	file= fopen(path.c_str(),"wb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:594: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).
	file= fopen(path.c_str(),"wb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:666: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).
	file= fopen(path.c_str(),"wb");
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:949: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1066: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1079: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1091: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1102: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1116: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1131: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1144: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1160: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1167: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1179: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1187: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1199: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1211: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1225: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1238: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1250: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 szBuf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1373: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(pixels, sourcePixmap->getPixels(), w*h*sourcePixmap->getComponents());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/texture.cpp:97: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(surfData, pixmap.getPixels(), pixmap.getW() * pixmap.getH() * pixmap.getComponents());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/texture.cpp:197:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	                memcpy(line, pixels + pitch*ybegin, pitch);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/texture.cpp:198:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	                memcpy(pixels + pitch*ybegin, pixels + pitch*yend, pitch);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/texture.cpp:199:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	                memcpy(pixels + pitch*yend, line, pitch);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:518: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 clock[64], cunlock[64], cdata[64];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cwidth[32], cheight[32], cpitch[32];
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:523: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(clock, "%lld", (long long int)(intptr_t)lock);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:524: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(cunlock, "%lld", (long long int)(intptr_t)unlock);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:525: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(cdata, "%lld", (long long int)(intptr_t)ctxPtr);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:526: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(cwidth, "%i", width);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:527: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(cheight, "%i", height);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/video_player.cpp:528: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(cpitch, "%i", colorBits);
data/megaglest-3.13.0/source/shared_lib/sources/lua/lua_script.cpp:358: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:531: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:538: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:544: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:550: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:584: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:591: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:603: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:661: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:820: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 *f1 = fopen(path.c_str(), "rb");
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:828: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:854:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:862:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:875: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:888: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:902: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:939: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 *f1 = fopen(path.c_str(), "wb");
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:1061: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).
		f= fopen(file.c_str(), "rb");
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:1073:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:1087: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 szBuf[4096]="";
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:1098: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 szBuf[4096]="";
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:517: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 m_filename[MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE];
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:518: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 m_comment[MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE];
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:932: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.
typedef unsigned char mz_validate_uint16[sizeof(mz_uint16)==2 ? 1 : -1];
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:933: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.
typedef unsigned char mz_validate_uint32[sizeof(mz_uint32)==4 ? 1 : -1];
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:934: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.
typedef unsigned char mz_validate_uint64[sizeof(mz_uint64)==8 ? 1 : -1];
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:1260: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(pStream->next_out, pState->m_dict + pState->m_dict_ofs, n);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:1280: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(pStream->next_out, pState->m_dict + pState->m_dict_ofs, n);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:1360:31:  [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 TINFL_MEMCPY(d, s, l) memcpy(d, s, l)
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:1949: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(code_sizes_to_pack, &d->m_huff_code_sizes[0][0], num_lit_codes);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:1950: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(code_sizes_to_pack + num_lit_codes, &d->m_huff_code_sizes[1][0], num_dist_codes);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2246: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((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf, bytes_to_copy);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2347: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(d->m_dict + dst_pos, d->m_pSrc, n);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2349:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(d->m_dict + TDEFL_LZ_DICT_SIZE + dst_pos, d->m_pSrc, MZ_MIN(n, (TDEFL_MAX_MATCH_LEN - 1) - dst_pos));
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2625: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((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf + d->m_output_flush_ofs, n);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2753: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((mz_uint8*)p->m_pBuf + p->m_size, pBuf, len); p->m_size = new_size;
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2823: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(out_buf.m_pBuf, pnghdr, 41);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2885: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).
    #define MZ_FOPEN(f, m) fopen(f, m)
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2901: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).
    #define MZ_FOPEN(f, m) fopen(f, m)
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:2933: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).
    #define MZ_FOPEN(f, m) fopen(f, m)
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3026: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((mz_uint8*)pArray->m_p + orig_size * pArray->m_element_size, pElements, n * pArray->m_element_size);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3287: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(pBuf, (const mz_uint8 *)pZip->m_pState->m_pMem + file_ofs, s);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3425: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(pStat->m_filename, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, n); pStat->m_filename[n] = '\0';
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3429: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(pStat->m_comment, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS), n); pStat->m_comment[n] = '\0';
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3443: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(pFilename, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, n);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:4021: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((mz_uint8 *)pState->m_pMem + file_ofs, pBuf, n);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:4069:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    mz_uint64 cur_ofs = 0; char buf[4096]; MZ_CLEAR_OBJ(buf);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:4249: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[4096];
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:4686: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(central_header, pSrc_central_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE);
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp:93: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:480: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* file= fopen(path.c_str(), "rb");
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:761: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(crcCacheFile.c_str(),"r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:772: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 gameVer[500]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:773: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 gitVer[500]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:774: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 actualFilePath[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:823: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.
			        char szBuf1[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:835:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		        char szBuf1[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:839:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		        char szBuf2[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:868: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 *fp = fopen(crcCacheFile.c_str(),"w");
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:883: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 szBuf1[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:944: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 szBuf1[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:1545: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 DirName[256]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:1964: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 szBuf[4096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2024: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 path[MAX_PATH]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2042: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 path[MAXPATHLEN+1]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2061: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 exe_link_path[200]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2111: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 buffer[MAX_LEN_SINGLE_LINE+2];
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2121: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).
	fp1 = fopen(fileName.c_str(),"r");
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2122: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).
	fp2 = fopen(tempfileName.c_str(),"w");
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2367: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(pBuffer,ptr,min((int)strlen(ptr),maxLength));
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2369: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(pBuffer,ptr,std::min((int)strlen(ptr),maxLength));
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp:777: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[8096];
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:186:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char realNick[128]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:268: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[12]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:269:4:  [2] (buffer) sprintf:
  Does not 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, "DCC [%d]: %d", id, count++);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:316:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char realNick[128]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:382: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 ("file", "wb")) == 0 ) {
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:389:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[24]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:396: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 realNick[128]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:419:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[24]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:420: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 (buf, "%u", event);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:480: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.
                                char realNick[128]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/miniftpclient.cpp:94:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        out->stream = fopen(fullFilePath.c_str(), "wb");
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/miniftpclient.cpp:314:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/miniftpclient.cpp:971: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/miniftpclient.cpp:1056: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).
                FILE *fp = fopen(destFileSaveAs.c_str(), "rt");
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/miniftpclient.cpp:1059: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.
                	char szBuf[4096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:88: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 lanaddr[16]         = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:203: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 acErrorBuffer[8096];
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:309:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		bytes[byteIndex]= atoi(ipString.substr(offset, dotPos-offset).c_str());
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:353:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(ipbuf, "%d.%d.%d.%d", (addr>>24)&0xFF, (addr>>16)&0xFF, (addr>>8)&0xFF, (addr>>0)&0xFF);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:368:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         unsigned char quad = (unsigned char) atoi(buf);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:533:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char ifaAddrStr[32];  Ip::Inet_NtoA(ifaAddr,  ifaAddrStr);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:534:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char maskAddrStr[32]; Ip::Inet_NtoA(maskAddr, maskAddrStr);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:535:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char dstAddrStr[32];  Ip::Inet_NtoA(dstAddr,  dstAddrStr);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:637: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 ifaAddrStr[32];
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:639: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 maskAddrStr[32];
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:641: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 dstAddrStr[32];
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:678: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 myhostname[101]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:684: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 myhostaddr[101] = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:739: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 szBuf[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:759: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 myhostaddr[101] = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:1872: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 hostname[strSize]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buff[10024]="";  // Buffers the data to be broadcasted.
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2145: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 szHostFrom[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2365: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2402: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2438: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 client_host[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2449: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2581:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[255]           = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2692:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char externalIP[16]     = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2778: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 externalIP[16] = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2785: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 ext_port_str[16]   = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2786: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 int_port_str[16]   = "";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2787: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(ext_port_str, "%d", ports[0]);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2788: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(int_port_str, "%d", ports[1]);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2826: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 ext_port_str[16]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2827: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(ext_port_str, "%d", ext_port);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2931:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[buffMaxSize]="";            // Buffers the data to be broadcasted.
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:2932:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char myhostname[100]="";       // hostname of local machine
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:47: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 file_string [100];
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:108: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 *fp = fopen(text_file.c_str(),"wt");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:161: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[maxbufSize+1]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:216:21:  [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 (file,"unknown");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:243: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 (file,"unknown");
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:276: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:329:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char file[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:117: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:285: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:306: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:491: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:517: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:527: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:533: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:609: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:617: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:627: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:636: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:662: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:672: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:725: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:737: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:757: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:790: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:795: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                szRelative[1 + _MAX_PATH];
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                szPattern2[1 + _MAX_PATH];
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                szPattern3[1 + _MAX_PATH];
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/platform_util.cpp:51:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		if (::MultiByteToWideChar(CP_ACP, 0, lpaszString, nLen, lpwszString, nLen) == 0) {
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/platform_util.cpp:95:23:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int size_needed = MultiByteToWideChar(CP_UTF8, 0, &friendly_path[0], (int)friendly_path.size(), NULL, 0);
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/platform_util.cpp:97:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, &friendly_path[0], (int)friendly_path.size(), &wstrTo[0], size_needed);
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/platform_util.cpp:246: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp:686: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound.cpp:87:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	soundFileLoader->open(path, &info);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound.cpp:110: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).
void StrSound::open(const string &path) {
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound.cpp:122:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	soundFileLoader->open(path, &info);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:33:26:  [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 WavSoundFileLoader::open(const string &path, SoundInfo *soundInfo){
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:40:4:  [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).
	f.open(path.c_str(), ios_base::in | ios_base::binary);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:209:26:  [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 OggSoundFileLoader::open(const string &path, SoundInfo *soundInfo){
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:215:5:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f= fopen(path.c_str(), "rb");
data/megaglest-3.13.0/source/shared_lib/sources/util/conversion.cpp:137: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 str[strSize]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/conversion.cpp:149: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 str[strSize]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/conversion.cpp:161: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 str[strSize]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/conversion.cpp:169: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 str[strSize]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/conversion.cpp:177: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 str[strSize]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/leak_dumper.cpp:41: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 szBuf2[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/leak_dumper.cpp:47: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).
	FILE *f= fopen(path, "wt");
data/megaglest-3.13.0/source/shared_lib/sources/util/profiler.cpp:89: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).
	FILE *f= fopen(profileLog.c_str(), "w");
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:59: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 lineBuffer[maxLine]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:72:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fileStream.open(path.c_str(), ios_base::in);
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:104: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 lineBuffer[maxLine]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:113:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&lineBuffer[0],&lineText[0],lineText.length());
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:138:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&lineBuffer[0],&utfStr[0],strlen(utfStr));
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:148:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&lineBuffer[0],&asciiStr[0],strlen(asciiStr));
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:226:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR szPath[MAX_PATH];
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:362:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR szPath[MAX_PATH];
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:430:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fileStream.open(path.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/shared_lib/sources/util/randomgen.cpp:74: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/randomgen.cpp:83:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/randomgen.cpp:92: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/randomgen.cpp:102: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:95:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&(mem->memory[mem->size]), ptr, realsize);
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:151: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 errbuf[CURL_ERROR_SIZE]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:425:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf[max_debug_buffer_size]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:454:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char szBuf2[100]="";
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:505: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).
				SystemFlags::lockFile = open(lockfile.c_str(), O_WRONLY | O_CREAT, S_IREAD | S_IWRITE);
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:526:46:  [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).
	                    SystemFlags::lockFile = open(newlockfile.c_str(), O_WRONLY | O_CREAT, S_IREAD | S_IWRITE);
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:558:42:  [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).
            	currentDebugLog.fileStream->open(debugLog.c_str(), ios_base::out | ios_base::trunc);
data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp:69: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 msgStr[strSize], fileStr[strSize];
data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp:214: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp:236: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp:428: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 szBuf[8096]="";
data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp:635: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 str[strSize]="";
data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp:982: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 str[strSize]				= "";
data/megaglest-3.13.0/source/tools/glexemel/g2xml.c:67: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).
	infile  = fopen(infilename, "rb");
data/megaglest-3.13.0/source/tools/glexemel/g2xml.c:77: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).
	outfile = fopen(outfilename, "w");
data/megaglest-3.13.0/source/tools/glexemel/xml2g.c:95: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).
	outfile = fopen(outfilename, "wb");
data/megaglest-3.13.0/source/tools/glexemel/xml2g.c:260:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	mh.frameCount    = (uint32)atoi((char*)xmlGetProp(n, frameCount));
data/megaglest-3.13.0/source/tools/glexemel/xml2g.c:261:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	mh.vertexCount   = (uint32)atoi((char*)xmlGetProp(n, vertexCount));
data/megaglest-3.13.0/source/tools/glexemel/xml2g.c:262:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	mh.indexCount    = (uint32)atoi((char*)xmlGetProp(n, indexCount));
data/megaglest-3.13.0/source/tools/glexemel/xml2g.c:656:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			index = (uint32)atoi((char*)xmlGetProp(v,
data/megaglest-3.13.0/source/g3d_viewer/main.cpp:137:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t compareLen = strlen(argName.c_str());
data/megaglest-3.13.0/source/g3d_viewer/main.cpp:143: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).
			compareLen = strlen(tmp_buf);
data/megaglest-3.13.0/source/glest_game/main/main.cpp:4990:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    		if(lang_locale != NULL && strlen(lang_locale) >= 2) {
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1889:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(szMsg,msg_string.c_str(),min((int)msg_string.length(),8095));
data/megaglest-3.13.0/source/glest_game/menu/menu_state_custom_game.cpp:1891:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(szMsg,msg_string.c_str(),std::min((int)msg_string.length(),8095));
data/megaglest-3.13.0/source/glest_game/network/client_interface.cpp:583:104:  [1] (buffer) strlen:
  Does not handle 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(platformFreeVersion.c_str(),networkMessageIntro.getVersionString().c_str(),strlen(platformFreeVersion.c_str())) != 0) {
data/megaglest-3.13.0/source/glest_game/network/connection_slot.cpp:896:97:  [1] (buffer) strlen:
  Does not handle 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(platformFreeVersion.c_str(),networkMessageIntro.getVersionString().c_str(),strlen(platformFreeVersion.c_str())) != 0) {
data/megaglest-3.13.0/source/glest_game/network/network_interface.cpp:477:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    infile.read(data,512);
data/megaglest-3.13.0/source/glest_game/network/network_interface.cpp:489:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                infile.read(data,remain);
data/megaglest-3.13.0/source/glest_game/network/network_protocol.cpp:372:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = (uint16)strlen(s);
data/megaglest-3.13.0/source/glest_game/network/network_types.h:55:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buffer, str.c_str(), min(S-1,maxBufferSize-1));
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:389:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(username) > 0 &&
data/megaglest-3.13.0/source/glest_game/network/server_interface.cpp:391:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(filename) > 0) {
data/megaglest-3.13.0/source/shared_lib/include/graphics/BMPReader.h:29:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Pixmap2D* read(ifstream& in, const string& path, Pixmap2D* ret) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:105:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual T* read(const string& filepath) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:112:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual T* read(const string& filepath, T* object) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:120:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual T* read(ifstream& file, const string& path) const {
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:122:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		T* ret = read(file,path,obj);
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:135:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual T* read(ifstream& file, const string& path, T* former) const = 0;
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:159:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = reader->read(file, filepath); //It is guaranteed that at least the filepath matches ...
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:211:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = reader->read(file, filepath, object); //It is guaranteed that at least the filepath matches ...
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:335:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		T* wouldRead = read(file,"unknown file");
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:358:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
T* FileReader<T>::read(const string& filepath) const {
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:368:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	T* ret = read(file,filepath);
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:383:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
T* FileReader<T>::read(const string& filepath, T* object) const {
data/megaglest-3.13.0/source/shared_lib/include/graphics/FileReader.h:393:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	T* ret = read(file,filepath,object);
data/megaglest-3.13.0/source/shared_lib/include/graphics/JPGReader.h:29:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Pixmap2D* read(ifstream& in, const string& path, Pixmap2D* ret) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/PNGReader.h:29:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Pixmap2D* read(ifstream& in, const string& path, Pixmap2D* ret) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/PNGReader.h:36:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Pixmap3D* read(ifstream& in, const string& path, Pixmap3D* ret) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/TGAReader.h:29:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Pixmap2D* read(ifstream& in, const string& path, Pixmap2D* ret) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/TGAReader.h:36:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Pixmap3D* read(ifstream& in, const string& path, Pixmap3D* ret) const;
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:97:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels)= 0;
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:98:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels, int components)= 0;
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:117:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels);
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:118:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels, int components);
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:137:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels);
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:138:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels, int components);
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:158:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels);
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:159:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels, int components);
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:175:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels);
data/megaglest-3.13.0/source/shared_lib/include/graphics/pixmap.h:176:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(uint8 *pixels, int components);
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_main.h:501: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 compareLen = (int)strlen(argName.c_str());
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_main.h:505: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).
			compareLen = (int)strlen(argv[idx]);
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_util.h:122:75:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; }
data/megaglest-3.13.0/source/shared_lib/include/platform/sdl/platform_util.h:123:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
inline char *concatstring(char *d, const char *s, size_t len = MAXSTRLEN) { size_t used = strlen(d); return used < len ? copystring(d+used, s, len-used) : d; }
data/megaglest-3.13.0/source/shared_lib/include/sound/sound.h:113:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint32 read(int8 *samples, uint32 size);
data/megaglest-3.13.0/source/shared_lib/include/sound/sound_file_loader.h:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual uint32 read(int8 *samples, uint32 size)= 0;
data/megaglest-3.13.0/source/shared_lib/include/sound/sound_file_loader.h:69:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual uint32 read(int8 *samples, uint32 size);
data/megaglest-3.13.0/source/shared_lib/include/sound/sound_file_loader.h:90:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual uint32 read(int8 *samples, uint32 size);
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:124: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(buf) > 0 && buf[0] != '?') {
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:152:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(strlen(buf) > 0 && buf[0] != '?') {
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:228:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
							strncpy(function, begin, sz);
data/megaglest-3.13.0/source/shared_lib/include/util/leak_dumper.h:229:8:  [1] (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 low because the source is a
  constant string.
							strncat(function, "()", sz);
data/megaglest-3.13.0/source/shared_lib/include/xml/rapidxml/rapidxml_utils.hpp:45:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            stream.read(&m_data.front(), static_cast<streamsize>(size));
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c:99:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ftpUsers[n].name, name, MAXLEN_USERNAME);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c:100:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ftpUsers[n].passw, passw, MAXLEN_PASSWORD);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c:101:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ftpUsers[n].ftpRoot, root, MAX_PATH_LEN);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpAccount.c:102: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).
			ftpUsers[n].ftpRootLen = (int)strlen(root);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:63: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 len = (int)strlen(msg);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpCmds.c:1002:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ret = cmds[n].handler(sessionId, &cmd[i], (int)strlen(&cmd[i]));	// execute command
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpLib.c:39: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).
	size_t len = strlen(path);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:108:2:  [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(sessions[id].workingDir, "/");
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:262: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).
	ftpRootLen = (int)strlen(ftpRoot);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:264: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(ftpRoot,"/");
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:317:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sessions[id].workingDir, &realPath[len], MAX_PATH_LEN-1); // apply path
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpSession.c:319: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(sessions[id].workingDir, "/");
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c:167:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(info->user, pw->pw_name, sizeof(info->user)-1);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c:173:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(info->group, gr->gr_name, sizeof(info->group)-1);
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:100:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p->path, path,strlen(path));
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:100: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).
		strncpy(p->path, path,strlen(path));
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:118:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(p->path, "*");
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:199:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(info->user, "ftp", sizeof(info->user));
data/megaglest-3.13.0/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c:200:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(info->group, "ftp", sizeof(info->group));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/BMPReader.cpp:76:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Pixmap2D* BMPReader::read(ifstream& in, const string& path, Pixmap2D* ret) const {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/BMPReader.cpp:83:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	in.read((char*)&fileHeader, sizeof(BitmapFileHeader));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/BMPReader.cpp:100:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	in.read((char*)&infoHeader, sizeof(BitmapInfoHeader));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/BMPReader.cpp:148:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			in.read((char*)&bgr[0], 3);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/BMPReader.cpp:178:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			in.read(buffer,padSize);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/JPGReader.cpp:72:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Pixmap2D* JPGReader::read(ifstream& is, const string& path, Pixmap2D* ret) const {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/JPGReader.cpp:85:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read((char*)buffer, (std::streamsize)length);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp:33:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read((char*)data,(std::streamsize)length);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp:65:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Pixmap2D* PNGReader::read(ifstream& is, const string& path, Pixmap2D* ret) const {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp:75:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read((char*)buffer, 8);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp:217:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Pixmap3D* PNGReader3D::read(ifstream& is, const string& path, Pixmap3D* ret) const {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/PNGReader.cpp:223:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read((char*)buffer, 8);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:68:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Pixmap3D* TGAReader3D::read(ifstream& in, const string& path, Pixmap3D* ret) const {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:77:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&fileHeader, sizeof(TargaFileHeader));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:129:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				in.read((char*)&l,1);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:140:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				in.read((char*)&b, 1);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:145:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				in.read((char*)&g, 1);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:150:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				in.read((char*)&r, 1);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:156:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					in.read((char*)&a, 1);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:215:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Pixmap2D* TGAReader::read(ifstream& in, const string& path, Pixmap2D* ret) const {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:220:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&fileHeader, sizeof(TargaFileHeader));
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:266:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				in.read((char*)&l,1);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/TGAReader.cpp:278:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				in.read((char*)&bgra[0], fileComponents);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp:415: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).
			len = strlen( ip );
data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp:580:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if( *font == NULL && *path != NULL && strlen(*path) > 0 && fileExists(*path) == true ) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp:585:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if( *font == NULL && fontFamily != NULL && strlen(fontFamily) > 0) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/font.cpp:609:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(firstFontToTry != NULL && strlen(firstFontToTry) > 0) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/gl/opengl.cpp:58: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).
	size_t len= strlen(extensionName);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/model.cpp:885:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char*)meshHeader.name, (char*)name.c_str(), name.length());
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:173:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoTga::read(uint8 *pixels) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:174:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(pixels, components);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:177:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoTga::read(uint8 *pixels, int components) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:421:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoBmp::read(uint8 *pixels) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:422:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(pixels, 3);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:425:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoBmp::read(uint8 *pixels, int components) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:576:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoPng::read(uint8 *pixels) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:580:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoPng::read(uint8 *pixels, int components) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:648:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoJpg::read(uint8 *pixels) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:652:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PixmapIoJpg::read(uint8 *pixels, int components) {
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:857:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	plb.read(pixels, components);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:887:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	plt.read(pixels, components);
data/megaglest-3.13.0/source/shared_lib/sources/graphics/pixmap.cpp:1546:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	plb.read(&pixels[slice*w*h*components], components);
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:953:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(header.title, title.c_str(), MAX_TITLE_LENGTH);
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:955:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(header.author, author.c_str(), MAX_AUTHOR_LENGTH);
data/megaglest-3.13.0/source/shared_lib/sources/map/map_preview.cpp:957:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(header.version2.short_desc, desc.c_str(), MAX_DESCRIPTION_LENGTH_VERSION2);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3483: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).
  const mz_uint filename_len = (mz_uint)strlen(pFilename);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3505: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).
  name_len = strlen(pName); if (name_len > 0xFFFF) return -1;
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:3506: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).
  comment_len = pComment ? strlen(pComment) : 0; if (comment_len > 0xFFFF) return -1;
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:4297: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).
  archive_name_size = strlen(pArchive_name);
data/megaglest-3.13.0/source/shared_lib/sources/miniz/miniz.c:4432: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).
  archive_name_size = strlen(pArchive_name);
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:775:20:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			int readbytes = fscanf(fp,"%20ld,%20u,%20ld\n%499s\n%499s\n%8095s",
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2280:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	xmlFile.read(&buffer.front(), static_cast<streamsize>(size));
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2362:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int ptrLength = (int)strlen(ptr);
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2367: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).
		memcpy(pBuffer,ptr,min((int)strlen(ptr),maxLength));
data/megaglest-3.13.0/source/shared_lib/sources/platform/common/platform_common.cpp:2369: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).
		memcpy(pBuffer,ptr,std::min((int)strlen(ptr),maxLength));
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:76:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat (buf, "|");
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:79:3:  [1] (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.
		strncat (buf, params[cnt],min((int)strlen(params[cnt]),511));
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:79: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).
		strncat (buf, params[cnt],min((int)strlen(params[cnt]),511));
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:81:3:  [1] (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.
		strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:81: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).
		strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:995:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(nick != NULL && strlen(nick) > 0) {
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:996:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *newNick = new char[strlen(nick)+1];
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:997: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).
		memset(newNick,0,strlen(nick)+1);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:1000: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).
		for(unsigned int i = 0; i < strlen(nick); ++i) {
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:1007:5:  [1] (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.
				strncat(newNick,&nick[i],1);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:1010: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(newNick,"-");
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:693: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(myhostaddr) > 0 &&
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:744: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 maxIfNameLength = std::min((int)strlen(szBuf),IFNAMSIZ-1);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:746:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ifr.ifr_name, szBuf, maxIfNameLength);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:748:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ifrA.ifr_name, szBuf, maxIfNameLength);
data/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:766: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(myhostaddr) > 0 &&
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:202: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(strlen(buf) > 0 && buf[0] != '?') {
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:228: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(buf) > 0 && buf[0] != '?') {
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:309:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(function, begin, sz);
data/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/platform_util.cpp:310:21:  [1] (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 low because the source is a
  constant string.
                    strncat(function, "()", sz);
data/megaglest-3.13.0/source/shared_lib/sources/platform/win32/glob.cpp:406: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).
            const size_t    effPattLen  =   strlen(effectivePattern);
data/megaglest-3.13.0/source/shared_lib/sources/sound/openal/sound_player_openal.cpp:308:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytesread += sound->read(bufferdata + bytesread,STREAMFRAGMENTSIZE - bytesread);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound.cpp:89:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	soundFileLoader->read(samples, info.getSize());
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound.cpp:125:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint32 StrSound::read(int8 *samples, uint32 size){
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound.cpp:130:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return soundFileLoader->read(samples, size);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:47:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read(chunkId, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:60:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size32, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:66:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read(chunkId, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:80:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read(chunkId, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:92:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size32, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:98:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size16, 2);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:104:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size16, 2);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:112:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size32, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:120:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size32, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:126:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size16, 2);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read((char*) &size16, 2);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:152:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f.read(chunkId, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:164:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f.read((char*) &size32, 4);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:182:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint32 WavSoundFileLoader::read(int8 *samples, uint32 size){
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:183:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	f.read(reinterpret_cast<char*> (samples), size);
data/megaglest-3.13.0/source/shared_lib/sources/sound/sound_file_loader.cpp:244:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint32 OggSoundFileLoader::read(int8 *samples, uint32 size){
data/megaglest-3.13.0/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp:230:194:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#warning You are using a completely UNTESTED new architecture. Please check that the 8-byte long double containing a 10-byte float is properly aligned in memory so that softfloat may correctly read the bit pattern. If this works for you, remove this warning and please consider sending a patch!
data/megaglest-3.13.0/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp:266:195:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#warning You are using a completely UNTESTED new architecture. Please check that the 12-byte long double containing a 10-byte float is properly aligned in memory so that softfloat may correctly read the bit pattern. If this works for you, remove this warning and please consider sending a patch!
data/megaglest-3.13.0/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp:302:195:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#warning You are using a completely UNTESTED new architecture. Please check that the 16-byte long double containing a 10-byte float is properly aligned in memory so that softfloat may correctly read the bit pattern. If this works for you, remove this warning and please consider sending a patch!
data/megaglest-3.13.0/source/shared_lib/sources/util/checksum.cpp:308:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ifs.read((char*)&buf[0], buf.size());
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:138:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memcpy(&lineBuffer[0],&utfStr[0],strlen(utfStr));
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:148: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).
			memcpy(&lineBuffer[0],&asciiStr[0],strlen(asciiStr));
data/megaglest-3.13.0/source/shared_lib/sources/util/properties.cpp:157: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).
		size_t len= strlen(lineBuffer);
data/megaglest-3.13.0/source/shared_lib/sources/util/string_utils.cpp:91:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			return ConvertToUTF8(s, (Shared::Platform::uint32)strlen(s));
data/megaglest-3.13.0/source/shared_lib/sources/util/string_utils.cpp:102: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 len = (int)strlen(str);
data/megaglest-3.13.0/source/shared_lib/sources/util/string_utils.cpp:168: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).
			fromUtf8(s, strlen(s));
data/megaglest-3.13.0/source/shared_lib/sources/util/util.cpp:747:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer, s.c_str(), bufferSize-1);
data/megaglest-3.13.0/source/shared_lib/sources/xml/xml_parser.cpp:393:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        xmlFile.read(&buffer.front(), static_cast<streamsize>(file_size));
data/megaglest-3.13.0/source/tools/glexemel/xml2g.c:259:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char*)mh.name, (char*)xmlGetProp(n, name), NAMESIZE-1);
data/megaglest-3.13.0/source/tools/glexemel/xml2g.c:308:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char*)texname, 

ANALYSIS SUMMARY:

Hits = 1661
Lines analyzed = 220456 in approximately 5.99 seconds (36787 lines/second)
Physical Source Lines of Code (SLOC) = 156259
Hits@level = [0] 3275 [1] 183 [2] 1086 [3] 175 [4] 216 [5]   1
Hits@level+ = [0+] 4936 [1+] 1661 [2+] 1478 [3+] 392 [4+] 217 [5+]   1
Hits/KSLOC@level+ = [0+] 31.5886 [1+] 10.6298 [2+] 9.45866 [3+] 2.50866 [4+] 1.38872 [5+] 0.00639963
Symlinks skipped = 1 (--allowlink overrides but see doc for security issue)
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.