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/minetest-5.3.0+repack/src/face_position_cache.cpp
Examining data/minetest-5.3.0+repack/src/remoteplayer.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_serialization.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_objdef.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_clientactiveobjectmgr.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_authdatabase.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_compression.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_random.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_keycode.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_address.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_voxelarea.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_areastore.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_settings.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_threading.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_ban.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_socket.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_filepath.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_eventmanager.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_modchannels.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_utilities.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_connection.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_mapnode.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_gameui.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_noderesolver.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_servermodmanager.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_inventory.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_profiler.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_collision.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_voxelalgorithms.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_voxelmanipulator.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_noise.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_map_settings_manager.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_activeobject.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_schematic.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_irrptr.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_player.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test.h
Examining data/minetest-5.3.0+repack/src/unittest/test_serveractiveobjectmgr.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_server_shutdown_state.cpp
Examining data/minetest-5.3.0+repack/src/unittest/test_nodedef.cpp
Examining data/minetest-5.3.0+repack/src/profiler.h
Examining data/minetest-5.3.0+repack/src/skyparams.h
Examining data/minetest-5.3.0+repack/src/irr_ptr.h
Examining data/minetest-5.3.0+repack/src/database/database-redis.cpp
Examining data/minetest-5.3.0+repack/src/database/database-dummy.cpp
Examining data/minetest-5.3.0+repack/src/database/database-redis.h
Examining data/minetest-5.3.0+repack/src/database/database-dummy.h
Examining data/minetest-5.3.0+repack/src/database/database-files.h
Examining data/minetest-5.3.0+repack/src/database/database-postgresql.cpp
Examining data/minetest-5.3.0+repack/src/database/database-sqlite3.h
Examining data/minetest-5.3.0+repack/src/database/database-postgresql.h
Examining data/minetest-5.3.0+repack/src/database/database-leveldb.h
Examining data/minetest-5.3.0+repack/src/database/database-leveldb.cpp
Examining data/minetest-5.3.0+repack/src/database/database.h
Examining data/minetest-5.3.0+repack/src/database/database.cpp
Examining data/minetest-5.3.0+repack/src/database/database-files.cpp
Examining data/minetest-5.3.0+repack/src/database/database-sqlite3.cpp
Examining data/minetest-5.3.0+repack/src/itemdef.h
Examining data/minetest-5.3.0+repack/src/activeobjectmgr.h
Examining data/minetest-5.3.0+repack/src/convert_json.h
Examining data/minetest-5.3.0+repack/src/tool.cpp
Examining data/minetest-5.3.0+repack/src/content_nodemeta.h
Examining data/minetest-5.3.0+repack/src/defaultsettings.cpp
Examining data/minetest-5.3.0+repack/src/content_mapnode.cpp
Examining data/minetest-5.3.0+repack/src/environment.cpp
Examining data/minetest-5.3.0+repack/src/version.cpp
Examining data/minetest-5.3.0+repack/src/nodemetadata.h
Examining data/minetest-5.3.0+repack/src/inventorymanager.h
Examining data/minetest-5.3.0+repack/src/map.h
Examining data/minetest-5.3.0+repack/src/player.h
Examining data/minetest-5.3.0+repack/src/texture_override.h
Examining data/minetest-5.3.0+repack/src/nameidmapping.cpp
Examining data/minetest-5.3.0+repack/src/irrlichttypes_extrabloated.h
Examining data/minetest-5.3.0+repack/src/serialization.cpp
Examining data/minetest-5.3.0+repack/src/porting_android.cpp
Examining data/minetest-5.3.0+repack/src/particles.h
Examining data/minetest-5.3.0+repack/src/object_properties.cpp
Examining data/minetest-5.3.0+repack/src/reflowscan.cpp
Examining data/minetest-5.3.0+repack/src/mapsector.h
Examining data/minetest-5.3.0+repack/src/chat.h
Examining data/minetest-5.3.0+repack/src/metadata.cpp
Examining data/minetest-5.3.0+repack/src/server.h
Examining data/minetest-5.3.0+repack/src/main.cpp
Examining data/minetest-5.3.0+repack/src/objdef.cpp
Examining data/minetest-5.3.0+repack/src/clientiface.cpp
Examining data/minetest-5.3.0+repack/src/mapsector.cpp
Examining data/minetest-5.3.0+repack/src/objdef.h
Examining data/minetest-5.3.0+repack/src/sound.h
Examining data/minetest-5.3.0+repack/src/pathfinder.h
Examining data/minetest-5.3.0+repack/src/itemgroup.h
Examining data/minetest-5.3.0+repack/src/remoteplayer.h
Examining data/minetest-5.3.0+repack/src/modchannels.cpp
Examining data/minetest-5.3.0+repack/src/rollback.h
Examining data/minetest-5.3.0+repack/src/debug.h
Examining data/minetest-5.3.0+repack/src/clientiface.h
Examining data/minetest-5.3.0+repack/src/porting.h
Examining data/minetest-5.3.0+repack/src/chatmessage.h
Examining data/minetest-5.3.0+repack/src/config.h
Examining data/minetest-5.3.0+repack/src/activeobject.h
Examining data/minetest-5.3.0+repack/src/porting.cpp
Examining data/minetest-5.3.0+repack/src/voxel.cpp
Examining data/minetest-5.3.0+repack/src/irr_v3d.h
Examining data/minetest-5.3.0+repack/src/hud.h
Examining data/minetest-5.3.0+repack/src/settings_translation_file.cpp
Examining data/minetest-5.3.0+repack/src/log.cpp
Examining data/minetest-5.3.0+repack/src/player.cpp
Examining data/minetest-5.3.0+repack/src/serverenvironment.cpp
Examining data/minetest-5.3.0+repack/src/particles.cpp
Examining data/minetest-5.3.0+repack/src/mapblock.cpp
Examining data/minetest-5.3.0+repack/src/serverlist.cpp
Examining data/minetest-5.3.0+repack/src/log.h
Examining data/minetest-5.3.0+repack/src/filesys.cpp
Examining data/minetest-5.3.0+repack/src/rollback_interface.h
Examining data/minetest-5.3.0+repack/src/nodetimer.h
Examining data/minetest-5.3.0+repack/src/profiler.cpp
Examining data/minetest-5.3.0+repack/src/gameparams.h
Examining data/minetest-5.3.0+repack/src/defaultsettings.h
Examining data/minetest-5.3.0+repack/src/chat.cpp
Examining data/minetest-5.3.0+repack/src/environment.h
Examining data/minetest-5.3.0+repack/src/itemdef.cpp
Examining data/minetest-5.3.0+repack/src/gettext.h
Examining data/minetest-5.3.0+repack/src/collision.cpp
Examining data/minetest-5.3.0+repack/src/reflowscan.h
Examining data/minetest-5.3.0+repack/src/gui/guiButtonItemImage.h
Examining data/minetest-5.3.0+repack/src/gui/guiBox.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiButton.h
Examining data/minetest-5.3.0+repack/src/gui/guiScrollContainer.cpp
Examining data/minetest-5.3.0+repack/src/gui/intlGUIEditBox.h
Examining data/minetest-5.3.0+repack/src/gui/guiVolumeChange.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiInventoryList.h
Examining data/minetest-5.3.0+repack/src/gui/guiPasswordChange.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiButtonImage.h
Examining data/minetest-5.3.0+repack/src/gui/guiEngine.h
Examining data/minetest-5.3.0+repack/src/gui/modalMenu.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiHyperText.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiScrollBar.h
Examining data/minetest-5.3.0+repack/src/gui/guiButtonItemImage.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiEditBoxWithScrollbar.h
Examining data/minetest-5.3.0+repack/src/gui/guiTable.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiKeyChangeMenu.h
Examining data/minetest-5.3.0+repack/src/gui/guiAnimatedImage.h
Examining data/minetest-5.3.0+repack/src/gui/guiMainMenu.h
Examining data/minetest-5.3.0+repack/src/gui/guiButtonImage.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiItemImage.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiBackgroundImage.h
Examining data/minetest-5.3.0+repack/src/gui/guiTable.h
Examining data/minetest-5.3.0+repack/src/gui/mainmenumanager.h
Examining data/minetest-5.3.0+repack/src/gui/guiPathSelectMenu.h
Examining data/minetest-5.3.0+repack/src/gui/guiScrollBar.cpp
Examining data/minetest-5.3.0+repack/src/gui/profilergraph.h
Examining data/minetest-5.3.0+repack/src/gui/guiFormSpecMenu.h
Examining data/minetest-5.3.0+repack/src/gui/guiSkin.h
Examining data/minetest-5.3.0+repack/src/gui/guiHyperText.h
Examining data/minetest-5.3.0+repack/src/gui/guiButton.cpp
Examining data/minetest-5.3.0+repack/src/gui/modalMenu.h
Examining data/minetest-5.3.0+repack/src/gui/guiEditBoxWithScrollbar.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiItemImage.h
Examining data/minetest-5.3.0+repack/src/gui/guiFormSpecMenu.cpp
Examining data/minetest-5.3.0+repack/src/gui/StyleSpec.h
Examining data/minetest-5.3.0+repack/src/gui/profilergraph.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiSkin.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiScrollContainer.h
Examining data/minetest-5.3.0+repack/src/gui/guiChatConsole.h
Examining data/minetest-5.3.0+repack/src/gui/guiPathSelectMenu.cpp
Examining data/minetest-5.3.0+repack/src/gui/intlGUIEditBox.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiVolumeChange.h
Examining data/minetest-5.3.0+repack/src/gui/guiChatConsole.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiConfirmRegistration.h
Examining data/minetest-5.3.0+repack/src/gui/guiAnimatedImage.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiBackgroundImage.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiBox.h
Examining data/minetest-5.3.0+repack/src/gui/guiKeyChangeMenu.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiPasswordChange.h
Examining data/minetest-5.3.0+repack/src/gui/guiConfirmRegistration.cpp
Examining data/minetest-5.3.0+repack/src/gui/touchscreengui.h
Examining data/minetest-5.3.0+repack/src/gui/touchscreengui.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiInventoryList.cpp
Examining data/minetest-5.3.0+repack/src/gui/guiEngine.cpp
Examining data/minetest-5.3.0+repack/src/raycast.h
Examining data/minetest-5.3.0+repack/src/raycast.cpp
Examining data/minetest-5.3.0+repack/src/exceptions.h
Examining data/minetest-5.3.0+repack/src/debug.cpp
Examining data/minetest-5.3.0+repack/src/nodedef.cpp
Examining data/minetest-5.3.0+repack/src/modchannels.h
Examining data/minetest-5.3.0+repack/src/craftdef.cpp
Examining data/minetest-5.3.0+repack/src/httpfetch.h
Examining data/minetest-5.3.0+repack/src/mapblock.h
Examining data/minetest-5.3.0+repack/src/pathfinder.cpp
Examining data/minetest-5.3.0+repack/src/network/networkexceptions.h
Examining data/minetest-5.3.0+repack/src/network/clientopcodes.h
Examining data/minetest-5.3.0+repack/src/network/networkpacket.h
Examining data/minetest-5.3.0+repack/src/network/address.cpp
Examining data/minetest-5.3.0+repack/src/network/connectionthreads.cpp
Examining data/minetest-5.3.0+repack/src/network/serveropcodes.h
Examining data/minetest-5.3.0+repack/src/network/connection.cpp
Examining data/minetest-5.3.0+repack/src/network/clientpackethandler.cpp
Examining data/minetest-5.3.0+repack/src/network/connectionthreads.h
Examining data/minetest-5.3.0+repack/src/network/networkpacket.cpp
Examining data/minetest-5.3.0+repack/src/network/socket.h
Examining data/minetest-5.3.0+repack/src/network/serveropcodes.cpp
Examining data/minetest-5.3.0+repack/src/network/peerhandler.h
Examining data/minetest-5.3.0+repack/src/network/networkprotocol.h
Examining data/minetest-5.3.0+repack/src/network/address.h
Examining data/minetest-5.3.0+repack/src/network/clientopcodes.cpp
Examining data/minetest-5.3.0+repack/src/network/socket.cpp
Examining data/minetest-5.3.0+repack/src/network/connection.h
Examining data/minetest-5.3.0+repack/src/network/serverpackethandler.cpp
Examining data/minetest-5.3.0+repack/src/irr_v2d.h
Examining data/minetest-5.3.0+repack/src/noise.h
Examining data/minetest-5.3.0+repack/src/inventory.h
Examining data/minetest-5.3.0+repack/src/inventorymanager.cpp
Examining data/minetest-5.3.0+repack/src/irrlichttypes.h
Examining data/minetest-5.3.0+repack/src/noise.cpp
Examining data/minetest-5.3.0+repack/src/emerge.h
Examining data/minetest-5.3.0+repack/src/nodetimer.cpp
Examining data/minetest-5.3.0+repack/src/server/mods.cpp
Examining data/minetest-5.3.0+repack/src/server/activeobjectmgr.h
Examining data/minetest-5.3.0+repack/src/server/player_sao.h
Examining data/minetest-5.3.0+repack/src/server/unit_sao.h
Examining data/minetest-5.3.0+repack/src/server/luaentity_sao.h
Examining data/minetest-5.3.0+repack/src/server/serverinventorymgr.h
Examining data/minetest-5.3.0+repack/src/server/serveractiveobject.h
Examining data/minetest-5.3.0+repack/src/server/serveractiveobject.cpp
Examining data/minetest-5.3.0+repack/src/server/serverinventorymgr.cpp
Examining data/minetest-5.3.0+repack/src/server/mods.h
Examining data/minetest-5.3.0+repack/src/server/player_sao.cpp
Examining data/minetest-5.3.0+repack/src/server/luaentity_sao.cpp
Examining data/minetest-5.3.0+repack/src/server/activeobjectmgr.cpp
Examining data/minetest-5.3.0+repack/src/server/unit_sao.cpp
Examining data/minetest-5.3.0+repack/src/staticobject.h
Examining data/minetest-5.3.0+repack/src/event.h
Examining data/minetest-5.3.0+repack/src/filesys.h
Examining data/minetest-5.3.0+repack/src/gettext.cpp
Examining data/minetest-5.3.0+repack/src/light.cpp
Examining data/minetest-5.3.0+repack/src/ban.h
Examining data/minetest-5.3.0+repack/src/voxelalgorithms.h
Examining data/minetest-5.3.0+repack/src/map.cpp
Examining data/minetest-5.3.0+repack/src/mapnode.cpp
Examining data/minetest-5.3.0+repack/src/gamedef.h
Examining data/minetest-5.3.0+repack/src/object_properties.h
Examining data/minetest-5.3.0+repack/src/itemstackmetadata.cpp
Examining data/minetest-5.3.0+repack/src/tileanimation.cpp
Examining data/minetest-5.3.0+repack/src/nodemetadata.cpp
Examining data/minetest-5.3.0+repack/src/mapnode.h
Examining data/minetest-5.3.0+repack/src/serverenvironment.h
Examining data/minetest-5.3.0+repack/src/httpfetch.cpp
Examining data/minetest-5.3.0+repack/src/staticobject.cpp
Examining data/minetest-5.3.0+repack/src/emerge.cpp
Examining data/minetest-5.3.0+repack/src/metadata.h
Examining data/minetest-5.3.0+repack/src/convert_json.cpp
Examining data/minetest-5.3.0+repack/src/content/mods.cpp
Examining data/minetest-5.3.0+repack/src/content/packages.h
Examining data/minetest-5.3.0+repack/src/content/content.h
Examining data/minetest-5.3.0+repack/src/content/packages.cpp
Examining data/minetest-5.3.0+repack/src/content/mods.h
Examining data/minetest-5.3.0+repack/src/content/content.cpp
Examining data/minetest-5.3.0+repack/src/content/subgames.h
Examining data/minetest-5.3.0+repack/src/content/subgames.cpp
Examining data/minetest-5.3.0+repack/src/tool.h
Examining data/minetest-5.3.0+repack/src/translation.cpp
Examining data/minetest-5.3.0+repack/src/voxel.h
Examining data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h
Examining data/minetest-5.3.0+repack/src/irrlicht_changes/CGUITTFont.cpp
Examining data/minetest-5.3.0+repack/src/irrlicht_changes/static_text.h
Examining data/minetest-5.3.0+repack/src/irrlicht_changes/CGUITTFont.h
Examining data/minetest-5.3.0+repack/src/irrlicht_changes/static_text.cpp
Examining data/minetest-5.3.0+repack/src/client/fontengine.cpp
Examining data/minetest-5.3.0+repack/src/client/clientmedia.h
Examining data/minetest-5.3.0+repack/src/client/camera.h
Examining data/minetest-5.3.0+repack/src/client/activeobjectmgr.h
Examining data/minetest-5.3.0+repack/src/client/imagefilters.cpp
Examining data/minetest-5.3.0+repack/src/client/gameui.cpp
Examining data/minetest-5.3.0+repack/src/client/particles.h
Examining data/minetest-5.3.0+repack/src/client/localplayer.cpp
Examining data/minetest-5.3.0+repack/src/client/clientenvironment.h
Examining data/minetest-5.3.0+repack/src/client/clientmedia.cpp
Examining data/minetest-5.3.0+repack/src/client/gameui.h
Examining data/minetest-5.3.0+repack/src/client/sound.h
Examining data/minetest-5.3.0+repack/src/client/renderingengine.h
Examining data/minetest-5.3.0+repack/src/client/clientmap.cpp
Examining data/minetest-5.3.0+repack/src/client/clientlauncher.h
Examining data/minetest-5.3.0+repack/src/client/sound_openal.h
Examining data/minetest-5.3.0+repack/src/client/minimap.h
Examining data/minetest-5.3.0+repack/src/client/hud.h
Examining data/minetest-5.3.0+repack/src/client/clientlauncher.cpp
Examining data/minetest-5.3.0+repack/src/client/particles.cpp
Examining data/minetest-5.3.0+repack/src/client/clouds.cpp
Examining data/minetest-5.3.0+repack/src/client/content_mapblock.h
Examining data/minetest-5.3.0+repack/src/client/clientsimpleobject.h
Examining data/minetest-5.3.0+repack/src/client/sky.h
Examining data/minetest-5.3.0+repack/src/client/filecache.h
Examining data/minetest-5.3.0+repack/src/client/clientobject.cpp
Examining data/minetest-5.3.0+repack/src/client/keycode.h
Examining data/minetest-5.3.0+repack/src/client/tile.h
Examining data/minetest-5.3.0+repack/src/client/clientmap.h
Examining data/minetest-5.3.0+repack/src/client/filecache.cpp
Examining data/minetest-5.3.0+repack/src/client/shader.cpp
Examining data/minetest-5.3.0+repack/src/client/sound_openal.cpp
Examining data/minetest-5.3.0+repack/src/client/guiscalingfilter.cpp
Examining data/minetest-5.3.0+repack/src/client/game.h
Examining data/minetest-5.3.0+repack/src/client/render/pageflip.cpp
Examining data/minetest-5.3.0+repack/src/client/render/stereo.h
Examining data/minetest-5.3.0+repack/src/client/render/core.cpp
Examining data/minetest-5.3.0+repack/src/client/render/core.h
Examining data/minetest-5.3.0+repack/src/client/render/anaglyph.h
Examining data/minetest-5.3.0+repack/src/client/render/interlaced.cpp
Examining data/minetest-5.3.0+repack/src/client/render/sidebyside.h
Examining data/minetest-5.3.0+repack/src/client/render/interlaced.h
Examining data/minetest-5.3.0+repack/src/client/render/factory.h
Examining data/minetest-5.3.0+repack/src/client/render/factory.cpp
Examining data/minetest-5.3.0+repack/src/client/render/sidebyside.cpp
Examining data/minetest-5.3.0+repack/src/client/render/plain.cpp
Examining data/minetest-5.3.0+repack/src/client/render/stereo.cpp
Examining data/minetest-5.3.0+repack/src/client/render/plain.h
Examining data/minetest-5.3.0+repack/src/client/render/anaglyph.cpp
Examining data/minetest-5.3.0+repack/src/client/render/pageflip.h
Examining data/minetest-5.3.0+repack/src/client/content_cao.h
Examining data/minetest-5.3.0+repack/src/client/clientobject.h
Examining data/minetest-5.3.0+repack/src/client/wieldmesh.cpp
Examining data/minetest-5.3.0+repack/src/client/mesh.h
Examining data/minetest-5.3.0+repack/src/client/mesh_generator_thread.cpp
Examining data/minetest-5.3.0+repack/src/client/content_cso.cpp
Examining data/minetest-5.3.0+repack/src/client/inputhandler.h
Examining data/minetest-5.3.0+repack/src/client/clientenvironment.cpp
Examining data/minetest-5.3.0+repack/src/client/fontengine.h
Examining data/minetest-5.3.0+repack/src/client/activeobjectmgr.cpp
Examining data/minetest-5.3.0+repack/src/client/client.h
Examining data/minetest-5.3.0+repack/src/client/keycode.cpp
Examining data/minetest-5.3.0+repack/src/client/shader.h
Examining data/minetest-5.3.0+repack/src/client/content_cso.h
Examining data/minetest-5.3.0+repack/src/client/joystick_controller.h
Examining data/minetest-5.3.0+repack/src/client/sound.cpp
Examining data/minetest-5.3.0+repack/src/client/wieldmesh.h
Examining data/minetest-5.3.0+repack/src/client/localplayer.h
Examining data/minetest-5.3.0+repack/src/client/meshgen/collector.h
Examining data/minetest-5.3.0+repack/src/client/meshgen/collector.cpp
Examining data/minetest-5.3.0+repack/src/client/content_mapblock.cpp
Examining data/minetest-5.3.0+repack/src/client/game.cpp
Examining data/minetest-5.3.0+repack/src/client/joystick_controller.cpp
Examining data/minetest-5.3.0+repack/src/client/mesh.cpp
Examining data/minetest-5.3.0+repack/src/client/mapblock_mesh.cpp
Examining data/minetest-5.3.0+repack/src/client/tile.cpp
Examining data/minetest-5.3.0+repack/src/client/inputhandler.cpp
Examining data/minetest-5.3.0+repack/src/client/mesh_generator_thread.h
Examining data/minetest-5.3.0+repack/src/client/content_cao.cpp
Examining data/minetest-5.3.0+repack/src/client/keys.h
Examining data/minetest-5.3.0+repack/src/client/clientevent.h
Examining data/minetest-5.3.0+repack/src/client/camera.cpp
Examining data/minetest-5.3.0+repack/src/client/mapblock_mesh.h
Examining data/minetest-5.3.0+repack/src/client/hud.cpp
Examining data/minetest-5.3.0+repack/src/client/clouds.h
Examining data/minetest-5.3.0+repack/src/client/renderingengine.cpp
Examining data/minetest-5.3.0+repack/src/client/client.cpp
Examining data/minetest-5.3.0+repack/src/client/guiscalingfilter.h
Examining data/minetest-5.3.0+repack/src/client/sky.cpp
Examining data/minetest-5.3.0+repack/src/client/event_manager.h
Examining data/minetest-5.3.0+repack/src/client/minimap.cpp
Examining data/minetest-5.3.0+repack/src/client/imagefilters.h
Examining data/minetest-5.3.0+repack/src/itemstackmetadata.h
Examining data/minetest-5.3.0+repack/src/settings.h
Examining data/minetest-5.3.0+repack/src/collision.h
Examining data/minetest-5.3.0+repack/src/server.cpp
Examining data/minetest-5.3.0+repack/src/threading/semaphore.cpp
Examining data/minetest-5.3.0+repack/src/threading/mutex_auto_lock.h
Examining data/minetest-5.3.0+repack/src/threading/event.h
Examining data/minetest-5.3.0+repack/src/threading/thread.h
Examining data/minetest-5.3.0+repack/src/threading/thread.cpp
Examining data/minetest-5.3.0+repack/src/threading/event.cpp
Examining data/minetest-5.3.0+repack/src/threading/semaphore.h
Examining data/minetest-5.3.0+repack/src/constants.h
Examining data/minetest-5.3.0+repack/src/util/srp.cpp
Examining data/minetest-5.3.0+repack/src/util/strfnd.h
Examining data/minetest-5.3.0+repack/src/util/auth.cpp
Examining data/minetest-5.3.0+repack/src/util/hex.h
Examining data/minetest-5.3.0+repack/src/util/container.h
Examining data/minetest-5.3.0+repack/src/util/numeric.cpp
Examining data/minetest-5.3.0+repack/src/util/string.cpp
Examining data/minetest-5.3.0+repack/src/util/enriched_string.h
Examining data/minetest-5.3.0+repack/src/util/quicktune.cpp
Examining data/minetest-5.3.0+repack/src/util/base64.h
Examining data/minetest-5.3.0+repack/src/util/areastore.cpp
Examining data/minetest-5.3.0+repack/src/util/sha1.h
Examining data/minetest-5.3.0+repack/src/util/directiontables.cpp
Examining data/minetest-5.3.0+repack/src/util/ieee_float.cpp
Examining data/minetest-5.3.0+repack/src/util/metricsbackend.h
Examining data/minetest-5.3.0+repack/src/util/pointedthing.h
Examining data/minetest-5.3.0+repack/src/util/enriched_string.cpp
Examining data/minetest-5.3.0+repack/src/util/sha1.cpp
Examining data/minetest-5.3.0+repack/src/util/base64.cpp
Examining data/minetest-5.3.0+repack/src/util/basic_macros.h
Examining data/minetest-5.3.0+repack/src/util/areastore.h
Examining data/minetest-5.3.0+repack/src/util/pointedthing.cpp
Examining data/minetest-5.3.0+repack/src/util/sha256.c
Examining data/minetest-5.3.0+repack/src/util/string.h
Examining data/minetest-5.3.0+repack/src/util/thread.h
Examining data/minetest-5.3.0+repack/src/util/auth.h
Examining data/minetest-5.3.0+repack/src/util/srp.h
Examining data/minetest-5.3.0+repack/src/util/serialize.cpp
Examining data/minetest-5.3.0+repack/src/util/numeric.h
Examining data/minetest-5.3.0+repack/src/util/quicktune.h
Examining data/minetest-5.3.0+repack/src/util/directiontables.h
Examining data/minetest-5.3.0+repack/src/util/timetaker.h
Examining data/minetest-5.3.0+repack/src/util/md32_common.h
Examining data/minetest-5.3.0+repack/src/util/serialize.h
Examining data/minetest-5.3.0+repack/src/util/quicktune_shortcutter.h
Examining data/minetest-5.3.0+repack/src/util/sha2.h
Examining data/minetest-5.3.0+repack/src/util/metricsbackend.cpp
Examining data/minetest-5.3.0+repack/src/util/ieee_float.h
Examining data/minetest-5.3.0+repack/src/util/pointer.h
Examining data/minetest-5.3.0+repack/src/util/timetaker.cpp
Examining data/minetest-5.3.0+repack/src/terminal_chat_console.h
Examining data/minetest-5.3.0+repack/src/serialization.h
Examining data/minetest-5.3.0+repack/src/rollback.cpp
Examining data/minetest-5.3.0+repack/src/daynightratio.h
Examining data/minetest-5.3.0+repack/src/modifiedstate.h
Examining data/minetest-5.3.0+repack/src/content_nodemeta.cpp
Examining data/minetest-5.3.0+repack/src/rollback_interface.cpp
Examining data/minetest-5.3.0+repack/src/craftdef.h
Examining data/minetest-5.3.0+repack/src/terminal_chat_console.cpp
Examining data/minetest-5.3.0+repack/src/texture_override.cpp
Examining data/minetest-5.3.0+repack/src/irrlichttypes_bloated.h
Examining data/minetest-5.3.0+repack/src/gettime.h
Examining data/minetest-5.3.0+repack/src/porting_android.h
Examining data/minetest-5.3.0+repack/src/script/scripting_mainmenu.cpp
Examining data/minetest-5.3.0+repack/src/script/scripting_client.cpp
Examining data/minetest-5.3.0+repack/src/script/scripting_client.h
Examining data/minetest-5.3.0+repack/src/script/scripting_mainmenu.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_env.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_modchannels.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_http.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_minimap.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_rollback.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_item.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_client.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_camera.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_rollback.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_storage.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_noise.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_playermeta.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_areastore.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_particles.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_storage.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_http.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_internal.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_nodemeta.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_base.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_craft.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_object.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_auth.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_noise.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_util.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_localplayer.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_settings.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_server.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_auth.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_itemstackmeta.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_base.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_craft.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_nodetimer.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_modchannels.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_vmanip.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_playermeta.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_client.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_server.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_localplayer.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_minimap.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_nodemeta.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_vmanip.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_item.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_metadata.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_particles_local.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_inventory.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_metadata.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_nodetimer.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_sound.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_inventory.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_areastore.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_settings.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_util.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_env.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_object.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_mapgen.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_sound.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_mainmenu.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_particles.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_mapgen.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_particles_local.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_itemstackmeta.h
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_mainmenu.cpp
Examining data/minetest-5.3.0+repack/src/script/lua_api/l_camera.cpp
Examining data/minetest-5.3.0+repack/src/script/common/c_content.cpp
Examining data/minetest-5.3.0+repack/src/script/common/c_types.h
Examining data/minetest-5.3.0+repack/src/script/common/c_content.h
Examining data/minetest-5.3.0+repack/src/script/common/helper.cpp
Examining data/minetest-5.3.0+repack/src/script/common/c_converter.h
Examining data/minetest-5.3.0+repack/src/script/common/c_internal.cpp
Examining data/minetest-5.3.0+repack/src/script/common/helper.h
Examining data/minetest-5.3.0+repack/src/script/common/c_internal.h
Examining data/minetest-5.3.0+repack/src/script/common/c_types.cpp
Examining data/minetest-5.3.0+repack/src/script/common/c_converter.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_item.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_nodemeta.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_entity.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_async.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_modchannels.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_security.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_internal.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_player.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_player.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_env.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_mainmenu.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_node.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_entity.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_server.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_client.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_nodemeta.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_base.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_node.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_async.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_server.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_modchannels.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_base.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_env.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_item.h
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_client.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_mainmenu.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_inventory.cpp
Examining data/minetest-5.3.0+repack/src/script/cpp_api/s_inventory.h
Examining data/minetest-5.3.0+repack/src/script/scripting_server.h
Examining data/minetest-5.3.0+repack/src/script/scripting_server.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mg_biome.h
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_singlenode.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_fractal.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_fractal.h
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_v6.h
Examining data/minetest-5.3.0+repack/src/mapgen/mg_schematic.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mg_schematic.h
Examining data/minetest-5.3.0+repack/src/mapgen/treegen.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_valleys.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_v6.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_carpathian.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_v7.h
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_v5.h
Examining data/minetest-5.3.0+repack/src/mapgen/mg_ore.h
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_carpathian.h
Examining data/minetest-5.3.0+repack/src/mapgen/cavegen.h
Examining data/minetest-5.3.0+repack/src/mapgen/dungeongen.h
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_valleys.h
Examining data/minetest-5.3.0+repack/src/mapgen/mg_decoration.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mg_decoration.h
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen.h
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_singlenode.h
Examining data/minetest-5.3.0+repack/src/mapgen/cavegen.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_v5.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_v7.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_flat.h
Examining data/minetest-5.3.0+repack/src/mapgen/mg_biome.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/treegen.h
Examining data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mapgen_flat.cpp
Examining data/minetest-5.3.0+repack/src/mapgen/mg_ore.cpp
Examining data/minetest-5.3.0+repack/src/chat_interface.h
Examining data/minetest-5.3.0+repack/src/settings.cpp
Examining data/minetest-5.3.0+repack/src/ban.cpp
Examining data/minetest-5.3.0+repack/src/nodedef.h
Examining data/minetest-5.3.0+repack/src/hud.cpp
Examining data/minetest-5.3.0+repack/src/content_mapnode.h
Examining data/minetest-5.3.0+repack/src/irr_aabb3d.h
Examining data/minetest-5.3.0+repack/src/translation.h
Examining data/minetest-5.3.0+repack/src/nameidmapping.h
Examining data/minetest-5.3.0+repack/src/version.h
Examining data/minetest-5.3.0+repack/src/face_position_cache.h
Examining data/minetest-5.3.0+repack/src/serverlist.h
Examining data/minetest-5.3.0+repack/src/map_settings_manager.cpp
Examining data/minetest-5.3.0+repack/src/light.h
Examining data/minetest-5.3.0+repack/src/cloudparams.h
Examining data/minetest-5.3.0+repack/src/voxelalgorithms.cpp
Examining data/minetest-5.3.0+repack/src/tileanimation.h
Examining data/minetest-5.3.0+repack/src/map_settings_manager.h
Examining data/minetest-5.3.0+repack/src/inventory.cpp
Examining data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp
Examining data/minetest-5.3.0+repack/lib/gmp/mini-gmp.h
Examining data/minetest-5.3.0+repack/lib/gmp/mini-gmp.c

FINAL RESULTS:

data/minetest-5.3.0+repack/src/porting.cpp:251:13:  [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.
	if ((len = readlink("/proc/self/exe",     buf, buflen)) == -1 &&
data/minetest-5.3.0+repack/src/porting.cpp:252:10:  [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.
		(len = readlink("/proc/curproc/file", buf, buflen)) == -1 &&
data/minetest-5.3.0+repack/src/porting.cpp:253:10:  [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.
		(len = readlink("/proc/curproc/exe",  buf, buflen)) == -1)
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:239: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 sprintf_s
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:241: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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:241:23:  [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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:243: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:243: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:246: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:246: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:249: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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:249:23:  [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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:254:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define sscanf std::sscanf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:254:21:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define sscanf std::sscanf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:1862:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    count = sscanf(buffer, format, &value);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:1865:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    count = sscanf(buffer.c_str(), format, &value);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4195: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 sprintf_s
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4197: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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4197:23:  [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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4199: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4199: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4202: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4202: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4205: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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4205:23:  [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 std::snprintf
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4212: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4212: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/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4278:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = snprintf(buffer, sizeof(buffer), formatString, value);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4289:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "NaN" : "null");
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4291:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "-Infinity" : "-1e+9999");
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4293:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "Infinity" : "1e+9999");
data/minetest-5.3.0+repack/src/client/game.cpp:1949:4:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
			swprintf(buf, sizeof(buf) / sizeof(wchar_t), str, myround(new_volume * 100));
data/minetest-5.3.0+repack/src/client/game.cpp:1961:4:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
			swprintf(buf, sizeof(buf) / sizeof(wchar_t), str, myround(new_volume * 100));
data/minetest-5.3.0+repack/src/client/game.cpp:2344:3:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
		swprintf(buf, sizeof(buf) / sizeof(wchar_t), str, range_new);
data/minetest-5.3.0+repack/src/client/game.cpp:2350:3:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
		swprintf(buf, sizeof(buf) / sizeof(wchar_t), str, range_new);
data/minetest-5.3.0+repack/src/client/game.cpp:2368:3:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
		swprintf(buf, sizeof(buf) / sizeof(wchar_t), str, range_new);
data/minetest-5.3.0+repack/src/client/game.cpp:2373:3:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
		swprintf(buf, sizeof(buf) / sizeof(wchar_t), str, range_new);
data/minetest-5.3.0+repack/src/client/gameui.cpp:296:3:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
		swprintf(buf, sizeof(buf) / sizeof(wchar_t), str,
data/minetest-5.3.0+repack/src/filesys.cpp:322:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(argv[0], argv);
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:447:65:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	typedef typename ustring16<TAlloc>::_ustring16_iterator_access access;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:454:3:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		access,								// value_type
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:456:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		const access,						// pointer
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:457:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		const access						// reference
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:465:59:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef std::iterator<std::bidirectional_iterator_tag, access, ptrdiff_t, const access, const access> _Base;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:465:84:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef std::iterator<std::bidirectional_iterator_tag, access, ptrdiff_t, const access, const access> _Base;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:465:98:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef std::iterator<std::bidirectional_iterator_tag, access, ptrdiff_t, const access, const access> _Base;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:466:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef const access const_pointer;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:467:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef const access const_reference;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:476:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef access value_type;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:754:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef access pointer;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:755:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typedef access reference;
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:1224:2:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	access operator [](const u32 index)
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:1233:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	const access operator [](const u32 index) const
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:2175:32:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			typename ustring16<TAlloc>::access a = *i;
data/minetest-5.3.0+repack/src/pathfinder.cpp:145:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	virtual PathGridnode &access(v3s16 p)=0;
data/minetest-5.3.0+repack/src/pathfinder.cpp:159:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	virtual PathGridnode &access(v3s16 p);
data/minetest-5.3.0+repack/src/pathfinder.cpp:173:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	virtual PathGridnode &access(v3s16 p);
data/minetest-5.3.0+repack/src/pathfinder.cpp:578:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				initNode(ipos, &access(ipos));
data/minetest-5.3.0+repack/src/pathfinder.cpp:584:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
PathGridnode &ArrayGridNodeContainer::access(v3s16 p)
data/minetest-5.3.0+repack/src/pathfinder.cpp:594:37:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
PathGridnode &MapGridNodeContainer::access(v3s16 p)
data/minetest-5.3.0+repack/src/pathfinder.cpp:973:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return m_nodes_container->access(ipos);
data/minetest-5.3.0+repack/src/pathfinder.cpp:979:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return m_nodes_container->access(v3s16(x,y,z));
data/minetest-5.3.0+repack/src/porting.cpp:702:10:  [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.
	int c = vsnprintf(buf, buf_size, fmt, args);
data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp:404:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(chunk_name, display_name);
data/minetest-5.3.0+repack/src/unittest/test.h:66: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(utest_buf, sizeof(utest_buf), fmt, __VA_ARGS__);        \
data/minetest-5.3.0+repack/src/client/renderingengine.cpp:649: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.
	const char *current_display = getenv("DISPLAY");
data/minetest-5.3.0+repack/src/content/subgames.cpp:52:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *subgame_path = getenv("MINETEST_SUBGAME_PATH");
data/minetest-5.3.0+repack/src/content/subgames.cpp:239: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 *world_path = getenv("MINETEST_WORLD_PATH");
data/minetest-5.3.0+repack/src/filesys.cpp:683:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	char *abs_path = realpath(path.c_str(), NULL);
data/minetest-5.3.0+repack/src/gettext.cpp:134:26:  [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 *env_lang = getenv("LANGUAGE");
data/minetest-5.3.0+repack/src/gettext.cpp:210:6:  [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("LANGUAGE") != 0) {
data/minetest-5.3.0+repack/src/gettext.cpp:211: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.
		setlocale(LC_ALL, getenv("LANGUAGE"));
data/minetest-5.3.0+repack/src/gettext.cpp:214:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if (getenv("LANG") != 0) {
data/minetest-5.3.0+repack/src/gettext.cpp:215: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.
		setlocale(LC_ALL, getenv("LANG"));
data/minetest-5.3.0+repack/src/main.cpp:418:26:  [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 *color_mode_env = getenv("MT_LOGCOLOR");
data/minetest-5.3.0+repack/src/main.cpp:489: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(time(0));
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:91: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.seed(bseed + 2);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:155:17:  [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.
			roomsize.Z = random.range(dp.room_size_large_min.Z, dp.room_size_large_max.Z);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:156:17:  [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.
			roomsize.Y = random.range(dp.room_size_large_min.Y, dp.room_size_large_max.Y);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:157:17:  [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.
			roomsize.X = random.range(dp.room_size_large_min.X, dp.room_size_large_max.X);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:159:17:  [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.
			roomsize.Z = random.range(dp.room_size_min.Z, dp.room_size_max.Z);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:160:17:  [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.
			roomsize.Y = random.range(dp.room_size_min.Y, dp.room_size_max.Y);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:161:17:  [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.
			roomsize.X = random.range(dp.room_size_min.X, dp.room_size_max.X);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:167: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.
		roomplace.Z += random.range(0, areasize.Z - roomsize.Z - start_padding.Z);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:168: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.
		roomplace.Y += random.range(0, areasize.Y - roomsize.Y - start_padding.Y);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:169: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.
		roomplace.X += random.range(0, areasize.X - roomsize.X - start_padding.X);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:218: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.
		bool start_in_last_room = (random.range(0, 2) != 0);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:238: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.
		if (random.range(0, 1) == 0)
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:251: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 (dp.large_room_chance > 1 && random.range(1, dp.large_room_chance) == 1) {
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:253:17:  [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.
			roomsize.Z = random.range(dp.room_size_large_min.Z, dp.room_size_large_max.Z);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:254:17:  [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.
			roomsize.Y = random.range(dp.room_size_large_min.Y, dp.room_size_large_max.Y);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:255:17:  [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.
			roomsize.X = random.range(dp.room_size_large_min.X, dp.room_size_large_max.X);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:257:17:  [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.
			roomsize.Z = random.range(dp.room_size_min.Z, dp.room_size_max.Z);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:258:17:  [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.
			roomsize.Y = random.range(dp.room_size_min.Y, dp.room_size_max.Y);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:259:17:  [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.
			roomsize.X = random.range(dp.room_size_min.X, dp.room_size_max.X);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:267: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.
		if (random.range(0, 1) == 0)
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:407: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.
	u32 length = random.range(dp.corridor_len_min, dp.corridor_len_max);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:408: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.
	u32 partlength = random.range(dp.corridor_len_min, dp.corridor_len_max);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:412: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.next() % 2 == 0 && partlength >= 3)
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:413:17:  [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.
		make_stairs = random.next() % 2 ? 1 : -1;
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:480: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.
			dir = turn_xz(dir, random.range(0, 1));
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:483:17:  [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.
			partlength = random.range(1, length);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:491: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.
			random_turn(random, dir);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:493:17:  [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.
			partlength = random.range(1, length);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:496: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.next() % 2 == 0 && partlength >= 3)
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:497: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.
				make_stairs = random.next() % 2 ? 1 : -1;
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:570: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.
				v3s16(0, -1, random.range(-roomsize.Z + 2, -2));
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:573: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.
				v3s16(-roomsize.X + 1, -1, random.range(-roomsize.Z + 2, -2));
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:576: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.
				v3s16(random.range(-roomsize.X + 2, -2), -1, 0);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:579: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.
				v3s16(random.range(-roomsize.X + 2, -2), -1, -roomsize.Z + 1);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:609: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.
v3s16 rand_ortho_dir(PseudoRandom &random, bool diagonal_dirs)
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:612:24:  [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 (diagonal_dirs && (random.next() % 4 == 0)) {
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:619: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.
			dir.Z = random.next() % 3 - 1;
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:621: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.
			dir.X = random.next() % 3 - 1;
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:627: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.next() % 2 == 0)
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:628: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.next() % 2 ? v3s16(-1, 0, 0) : v3s16(1, 0, 0);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:630: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.next() % 2 ? v3s16(0, 0, -1) : v3s16(0, 0, 1);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:652: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.
void random_turn(PseudoRandom &random, v3s16 &dir)
data/minetest-5.3.0+repack/src/mapgen/dungeongen.cpp:654: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.
	int turn = random.range(0, 2);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.h:35: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.
v3s16 rand_ortho_dir(PseudoRandom &random, bool diagonal_dirs);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.h:37: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.
void random_turn(PseudoRandom &random, v3s16 &dir);
data/minetest-5.3.0+repack/src/mapgen/dungeongen.h:92: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.
	PseudoRandom random;
data/minetest-5.3.0+repack/src/mapgen/dungeongen.h:121: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.
		m_dir = rand_ortho_dir(random, dp.diagonal_dirs);
data/minetest-5.3.0+repack/src/porting.cpp:373: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.
	const char *home = getenv("HOME");
data/minetest-5.3.0+repack/src/porting.cpp:589:26:  [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 *cache_dir = getenv("XDG_CACHE_HOME");
data/minetest-5.3.0+repack/src/porting.cpp:590: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 *home_dir = getenv("HOME");
data/minetest-5.3.0+repack/src/unittest/test_servermodmanager.cpp:50: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.
	const char *saved_env_mt_subgame_path = getenv("MINETEST_SUBGAME_PATH");
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:157: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 UIntToStringBuffer[uintToStringBufferSize];
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:1030:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[18 + 16 + 16 + 1];
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:1859:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, token.start_, ulength);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:2062:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[18 + 16 + 16 + 1];
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:2580: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(newString, value, length);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:2604: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(newString + sizeof(unsigned), value, length);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4268:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[36];
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4271:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char formatString[15];
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4283:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buffer, ".0");
data/minetest-5.3.0+repack/src/client/client.cpp:1812: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 timetstamp_c[64];
data/minetest-5.3.0+repack/src/client/filecache.cpp:43:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/minetest-5.3.0+repack/src/client/game.cpp:1946: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 buf[100];
data/minetest-5.3.0+repack/src/client/game.cpp:1958: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 buf[100];
data/minetest-5.3.0+repack/src/client/game.cpp:2339:2:  [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 buf[255];
data/minetest-5.3.0+repack/src/client/game.cpp:2363:2:  [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 buf[255];
data/minetest-5.3.0+repack/src/client/game.cpp:4157:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	 char control_text_buf[600];
data/minetest-5.3.0+repack/src/client/gameui.cpp:37: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.
	static const char *direction[4] =
data/minetest-5.3.0+repack/src/client/gameui.cpp:294: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 buf[255];
data/minetest-5.3.0+repack/src/client/guiscalingfilter.cpp:82: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 rectstr[200];
data/minetest-5.3.0+repack/src/client/mapblock_mesh.cpp:422: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(vertex_dirs, &vertex_dirs_table[idx], 4 * sizeof(v3s16));
data/minetest-5.3.0+repack/src/client/mesh_generator_thread.cpp:190: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(cached_block->data, b->getData(),
data/minetest-5.3.0+repack/src/client/sound_openal.cpp:120: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 array[BUFFER_SIZE]; // Local fixed size array
data/minetest-5.3.0+repack/src/client/sound_openal.cpp:203: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(ptr, s->buf + s->cur_offset, copied_size);
data/minetest-5.3.0+repack/src/database/database-files.cpp:261:39:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		s64 last_login = parts.size() > 3 ? atol(parts[3].c_str()) : 0;
data/minetest-5.3.0+repack/src/database/database-postgresql.h:46:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(PQgetvalue(res, row, col));
data/minetest-5.3.0+repack/src/database/database-postgresql.h:51:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return (u32) atoi(PQgetvalue(res, row, col));
data/minetest-5.3.0+repack/src/debug.cpp:133: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/minetest-5.3.0+repack/src/filesys.cpp:305:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char argv_data[3][10000];
data/minetest-5.3.0+repack/src/filesys.cpp:307: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(argv_data[0], "/system/bin/rm");
data/minetest-5.3.0+repack/src/filesys.cpp:309: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(argv_data[0], "/bin/rm");
data/minetest-5.3.0+repack/src/filesys.cpp:311: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(argv_data[1], "-rf");
data/minetest-5.3.0+repack/src/filesys.cpp:313:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *argv[4];
data/minetest-5.3.0+repack/src/filesys.cpp:462:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *sourcefile = fopen(source.c_str(), "rb");
data/minetest-5.3.0+repack/src/filesys.cpp:469:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *targetfile = fopen(target.c_str(), "wb");
data/minetest-5.3.0+repack/src/filesys.cpp:480: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 readbuffer[BUFSIZ];
data/minetest-5.3.0+repack/src/gettext.cpp:45:2:  [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 buffer[LOCALE_NAME_MAX_LENGTH];
data/minetest-5.3.0+repack/src/gettext.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 buffer[1024];
data/minetest-5.3.0+repack/src/gettime.h: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 cs[20]; // YYYY-MM-DD HH:MM:SS + '\0'
data/minetest-5.3.0+repack/src/gui/guiChatConsole.cpp:370: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 ws[2] = {prompt_text[i], 0};
data/minetest-5.3.0+repack/src/gui/guiConfirmRegistration.cpp:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char info_text_buf[1024];
data/minetest-5.3.0+repack/src/gui/guiHyperText.cpp:69:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	unsigned int font_size = std::atoi(style["fontsize"].c_str());
data/minetest-5.3.0+repack/src/gui/guiTable.cpp:449: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((void*) row->cells, (void*) &rows[i].cells[0],
data/minetest-5.3.0+repack/src/gui/profilergraph.cpp:98:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[10];
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:185: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(ret.pointer(), source, size); \
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:2973: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((void*)ptr, (void*)array, used * sizeof(uchar16_t));
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:3147: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((void*)ret.pointer(), (void*)a.pointer(), a.size() * sizeof(uchar32_t));
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:3156: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((void*)ret.pointer(), (void*)array, used * sizeof(uchar16_t));
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:3164: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((void*)ret.pointer(), (void*)a.pointer(), a.size() * sizeof(uchar16_t));
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:3173: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((void*)ret.pointer(), (void*)a.pointer(), a.size() * sizeof(uchar8_t));
data/minetest-5.3.0+repack/src/log.cpp:52: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[BUFFER_LENGTH];
data/minetest-5.3.0+repack/src/log.cpp:331: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).
	m_stream.open(filename, std::ios::app | std::ios::ate);
data/minetest-5.3.0+repack/src/main.cpp:568:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int lev_i = atoi(conf_loglev.c_str());
data/minetest-5.3.0+repack/src/mapblock.cpp:794: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 spos[25];
data/minetest-5.3.0+repack/src/mapgen/mg_schematic.cpp:101: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(def->schemdata, schemdata, sizeof(MapNode) * nodecount);
data/minetest-5.3.0+repack/src/mapgen/mg_schematic.cpp:103: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(def->slice_probs, slice_probs, sizeof(u8) * size.Y);
data/minetest-5.3.0+repack/src/mapnode.cpp:772: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(&databuf[0], s.c_str(), len);
data/minetest-5.3.0+repack/src/network/address.cpp:187: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[INET6_ADDRSTRLEN];
data/minetest-5.3.0+repack/src/network/address.cpp:231:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static const char zero[16] = {0};
data/minetest-5.3.0+repack/src/network/address.cpp:257: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(m_address.ipv6.sin6_addr.s6_addr, ipv6_bytes->bytes, 16);
data/minetest-5.3.0+repack/src/network/connection.cpp:76: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(&p.data[BASE_HEADER_SIZE], *data, data.getSize());
data/minetest-5.3.0+repack/src/network/connection.cpp:89: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(&(b[header_size]), *data, data.getSize());
data/minetest-5.3.0+repack/src/network/connection.cpp:119: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(&chunk[chunk_header_size], &data[start], payload_size);
data/minetest-5.3.0+repack/src/network/connection.cpp:158:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&b[header_size], *data, data.getSize());
data/minetest-5.3.0+repack/src/network/connection.cpp:423: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(&fulldata[start], *buf, buf.getSize());
data/minetest-5.3.0+repack/src/network/connection.cpp:489: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(*chunkdata, &(p.data[headersize]), chunkdatasize);
data/minetest-5.3.0+repack/src/network/connectionthreads.cpp:1009: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(*strippeddata, &packetdata[BASE_HEADER_SIZE],
data/minetest-5.3.0+repack/src/network/connectionthreads.cpp:1084: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(*payload, &p.data[headers_size], payload.getSize());
data/minetest-5.3.0+repack/src/network/connectionthreads.cpp:1242: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(*payload, &(packetdata[ORIGINAL_HEADER_SIZE]), payload.getSize());
data/minetest-5.3.0+repack/src/network/connectionthreads.cpp:1382: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(*payload, &packetdata[RELIABLE_HEADER_SIZE], payload.getSize());
data/minetest-5.3.0+repack/src/network/networkpacket.cpp:66: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(m_data.data(), &data[2], m_datasize);
data/minetest-5.3.0+repack/src/network/networkpacket.cpp:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&m_data[m_read_offset], src, len);
data/minetest-5.3.0+repack/src/network/networkpacket.cpp:536:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sb[2], datas, m_datasize);
data/minetest-5.3.0+repack/src/network/socket.cpp:211:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int a = ((const unsigned char *)data)[i];
data/minetest-5.3.0+repack/src/network/socket.cpp:271: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(bytes.bytes, address.sin6_addr.s6_addr, 16);
data/minetest-5.3.0+repack/src/network/socket.cpp:302:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int a = ((const unsigned char *)data)[i];
data/minetest-5.3.0+repack/src/player.h:214: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 m_name[PLAYERNAME_SIZE];
data/minetest-5.3.0+repack/src/porting.cpp:388: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[BUFSIZ];
data/minetest-5.3.0+repack/src/porting.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[BUFSIZ];
data/minetest-5.3.0+repack/src/porting.cpp:484: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[PATH_MAX];
data/minetest-5.3.0+repack/src/porting.cpp:536: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[BUFSIZ];
data/minetest-5.3.0+repack/src/porting.cpp:665: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("/dev/urandom", "rb");
data/minetest-5.3.0+repack/src/profiler.cpp:140: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 num_buf[50];
data/minetest-5.3.0+repack/src/rollback.cpp:419:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			SQLOK(sqlite3_bind_int(stmt_do, 10, atoi(x.c_str())));
data/minetest-5.3.0+repack/src/rollback.cpp:420:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			SQLOK(sqlite3_bind_int(stmt_do, 11, atoi(y.c_str())));
data/minetest-5.3.0+repack/src/rollback.cpp:421:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			SQLOK(sqlite3_bind_int(stmt_do, 12, atoi(z.c_str())));
data/minetest-5.3.0+repack/src/rollback.cpp:708:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (!atoi(bit.c_str())) {
data/minetest-5.3.0+repack/src/rollback.cpp:712:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		row.timestamp = atoi(bit.c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:728:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			row.index    = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:738:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			row.x       = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:740:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			row.y       = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:742:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			row.z       = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:747: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).
			row.oldParam1 = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:749: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).
			row.oldParam2 = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:755: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).
			row.newParam1 = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/rollback.cpp:757: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).
			row.newParam2 = atoi(trim(bit).c_str());
data/minetest-5.3.0+repack/src/script/common/c_content.cpp:1508: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 fnamebuf[64] = "no";
data/minetest-5.3.0+repack/src/script/common/c_internal.cpp:87: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[256];
data/minetest-5.3.0+repack/src/script/cpp_api/s_base.cpp:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[10];
data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp:176:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	SECURE_API(io, open);
data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp:396: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(path, "rb");
data/minetest-5.3.0+repack/src/script/lua_api/l_mainmenu.cpp:843: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).
				FILE *targetfile = fopen(fullpath.c_str(),"wb");
data/minetest-5.3.0+repack/src/script/lua_api/l_mainmenu.cpp:851:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char read_buffer[1024];
data/minetest-5.3.0+repack/src/script/lua_api/l_noise.cpp:629:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char output_buf[RAND_BUF_SIZE];
data/minetest-5.3.0+repack/src/script/lua_api/l_noise.cpp:632: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(output_buf, o->m_rand_buf + o->m_rand_idx, count_remaining);
data/minetest-5.3.0+repack/src/script/lua_api/l_noise.cpp:636: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(output_buf + count_remaining, o->m_rand_buf, count - count_remaining);
data/minetest-5.3.0+repack/src/script/lua_api/l_noise.h:174: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 m_rand_buf[RAND_BUF_SIZE];
data/minetest-5.3.0+repack/src/serialization.cpp:58: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 output_buffer[bufsize];
data/minetest-5.3.0+repack/src/serialization.cpp:106: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 input_buffer[bufsize];
data/minetest-5.3.0+repack/src/serialization.cpp:107: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 output_buffer[bufsize];
data/minetest-5.3.0+repack/src/server.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 idbuf[2];
data/minetest-5.3.0+repack/src/server.cpp:1925: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[4];
data/minetest-5.3.0+repack/src/server.cpp:2445:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/minetest-5.3.0+repack/src/server.cpp:2590: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[1024];
data/minetest-5.3.0+repack/src/serverenvironment.cpp:1770: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[4];
data/minetest-5.3.0+repack/src/unittest/test.cpp:326: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[32];
data/minetest-5.3.0+repack/src/unittest/test.cpp:338: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[32];
data/minetest-5.3.0+repack/src/unittest/test.h:65:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char utest_buf[1024];                                            \
data/minetest-5.3.0+repack/src/unittest/test_address.cpp:61: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(ipv6Bytes->bytes, &ipv6RawAddr[0], 16);
data/minetest-5.3.0+repack/src/unittest/test_address.cpp:65: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(ipv6Bytes->bytes, &ipv6RawAddr[0], 16);
data/minetest-5.3.0+repack/src/unittest/test_connection.cpp:283: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[10];
data/minetest-5.3.0+repack/src/unittest/test_connection.cpp:326: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[10];
data/minetest-5.3.0+repack/src/unittest/test_map_settings_manager.cpp:71: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(filepath.c_str(), "rb");
data/minetest-5.3.0+repack/src/unittest/test_map_settings_manager.cpp:116: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(metafile.c_str(), "wb");
data/minetest-5.3.0+repack/src/unittest/test_map_settings_manager.cpp:196: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 expected_contents_hash[20] = {
data/minetest-5.3.0+repack/src/unittest/test_random.cpp:123: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[32];
data/minetest-5.3.0+repack/src/unittest/test_serialization.cpp:682: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(&fm, &i, 4);
data/minetest-5.3.0+repack/src/unittest/test_socket.cpp: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 rcvbuffer[256] = { 0 };
data/minetest-5.3.0+repack/src/unittest/test_socket.cpp:136:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char rcvbuffer[256] = { 0 };
data/minetest-5.3.0+repack/src/util/base64.cpp:53: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 char_array_3[3];
data/minetest-5.3.0+repack/src/util/base64.cpp:54:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char char_array_4[4];
data/minetest-5.3.0+repack/src/util/base64.cpp:98: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 char_array_4[4], char_array_3[3];
data/minetest-5.3.0+repack/src/util/basic_macros.h:49:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	UNUSED_ATTRIBUTE typedef char msg[!!(expr) * 2 - 1]
data/minetest-5.3.0+repack/src/util/hex.h:31: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 buf2[3];
data/minetest-5.3.0+repack/src/util/ieee_float.cpp:110: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[128];
data/minetest-5.3.0+repack/src/util/md32_common.h:328:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p + n, data, HASH_CBLOCK - n);
data/minetest-5.3.0+repack/src/util/md32_common.h:336:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p + n, data, len);
data/minetest-5.3.0+repack/src/util/md32_common.h:353: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(p, data, len);
data/minetest-5.3.0+repack/src/util/numeric.cpp:69: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(&k, data, sizeof(u64));
data/minetest-5.3.0+repack/src/util/pointer.h:49: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(data, buffer.data, buffer.m_size);
data/minetest-5.3.0+repack/src/util/pointer.h:60: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(data, t, size);
data/minetest-5.3.0+repack/src/util/pointer.h:78: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(data, buffer.data, buffer.m_size);
data/minetest-5.3.0+repack/src/util/pointer.h:161: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(data, t, m_size);
data/minetest-5.3.0+repack/src/util/pointer.h:176: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, *buffer, buffer.getSize());
data/minetest-5.3.0+repack/src/util/serialize.cpp:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(val, data + pos, len);
data/minetest-5.3.0+repack/src/util/serialize.cpp:109: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[2];
data/minetest-5.3.0+repack/src/util/serialize.cpp:125: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[2];
data/minetest-5.3.0+repack/src/util/serialize.cpp:150: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[2];
data/minetest-5.3.0+repack/src/util/serialize.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 buf[2];
data/minetest-5.3.0+repack/src/util/serialize.cpp:200: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[4];
data/minetest-5.3.0+repack/src/util/serialize.cpp:215: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[4];
data/minetest-5.3.0+repack/src/util/serialize.cpp:333: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 hexdigits[4 + 1];
data/minetest-5.3.0+repack/src/util/serialize.cpp:567: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(out, buf, olen);
data/minetest-5.3.0+repack/src/util/serialize.h:73: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(&val, data, 2);
data/minetest-5.3.0+repack/src/util/serialize.h:80: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(&val, data, 4);
data/minetest-5.3.0+repack/src/util/serialize.h:87:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&val, data, 8);
data/minetest-5.3.0+repack/src/util/serialize.h:94:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &val, 2);
data/minetest-5.3.0+repack/src/util/serialize.h:100:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &val, 4);
data/minetest-5.3.0+repack/src/util/serialize.h:106:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, &val, 8);
data/minetest-5.3.0+repack/src/util/serialize.h:201: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(&f, &u, 4);
data/minetest-5.3.0+repack/src/util/serialize.h:317: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(&u, &i, 4);
data/minetest-5.3.0+repack/src/util/serialize.h: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 buf[S] = {0};               \
data/minetest-5.3.0+repack/src/util/serialize.h: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 buf[S];                                \
data/minetest-5.3.0+repack/src/util/sha1.cpp:152: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( bytes + unprocessedBytes, data, toCopy );
data/minetest-5.3.0+repack/src/util/sha1.cpp:172: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 footer[64] = {
data/minetest-5.3.0+repack/src/util/sha1.h:40: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[64];
data/minetest-5.3.0+repack/src/util/sha256.c:66: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 m[SHA224_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/sha256.c:80: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 m[SHA256_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:77:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char g_rand_buff[RAND_BUFF_MAX];
data/minetest-5.3.0+repack/src/util/srp.cpp:238: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 M[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:239: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 H_AMK[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:240: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 session_key[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:259: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 M[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:260: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 H_AMK[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:261: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 session_key[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:404: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 buff[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:427: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 buff[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:431: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(bin, n, len_n);
data/minetest-5.3.0+repack/src/util/srp.cpp:432: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(bin + len_n, bytes, len_bytes);
data/minetest-5.3.0+repack/src/util/srp.cpp:443: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 ucp_hash[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:484: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 H_N[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:485: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 H_g[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:486: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 H_I[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:487: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 H_xor[SHA512_DIGEST_LENGTH];
data/minetest-5.3.0+repack/src/util/srp.cpp:546:7:  [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", "r");
data/minetest-5.3.0+repack/src/util/srp.cpp:619:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*bytes_s, &g_rand_buff[g_rand_idx], size_to_fill);
data/minetest-5.3.0+repack/src/util/srp.cpp:704: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(ver->username, username, ulen);
data/minetest-5.3.0+repack/src/util/srp.cpp:854: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(usr->username, username, ulen);
data/minetest-5.3.0+repack/src/util/srp.cpp:855: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(usr->username_verifier, username_for_verifier, uvlen);
data/minetest-5.3.0+repack/src/util/srp.cpp:856: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(usr->password, bytes_password, len_password);
data/minetest-5.3.0+repack/src/util/string.cpp:96: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(inbuf, input.c_str(), inbuf_size);
data/minetest-5.3.0+repack/src/util/string.cpp:127: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(inbuf, input.c_str(), inbuf_size);
data/minetest-5.3.0+repack/src/util/string.cpp:153:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_UTF8, 0, input.c_str(), input.size(),
data/minetest-5.3.0+repack/src/util/string.cpp:182: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(ret_c, ret.c_str(), len * sizeof(wchar_t));
data/minetest-5.3.0+repack/src/util/string.cpp:192:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	int nResult = MultiByteToWideChar(CP_UTF8, 0, (LPCSTR) str, -1, 0, 0);
data/minetest-5.3.0+repack/src/util/string.cpp:197:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		MultiByteToWideChar(CP_UTF8, 0, (LPCSTR) str, -1, (WCHAR *) nstr, nResult);
data/minetest-5.3.0+repack/src/util/string.cpp:205: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(nstr, intermediate.c_str(), len * sizeof(wchar_t));
data/minetest-5.3.0+repack/src/util/string.cpp:342:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, src, copylen);
data/minetest-5.3.0+repack/src/util/string.h:328:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return s2 == "y" || s2 == "yes" || s2 == "true" || atoi(s2.c_str()) != 0;
data/minetest-5.3.0+repack/src/util/string.h:346:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	s32 i = atoi(str.c_str());
data/minetest-5.3.0+repack/src/util/string.h:367:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(str.c_str());
data/minetest-5.3.0+repack/src/voxel.cpp:181:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&new_data[new_index], &m_data[old_index],
data/minetest-5.3.0+repack/src/voxel.cpp:183: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(&new_flags[new_index], &m_flags[old_index],
data/minetest-5.3.0+repack/src/voxel.cpp:245: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(&m_data[i_local], &src[i_src], size.X * sizeof(*m_data));
data/minetest-5.3.0+repack/lib/gmp/mini-gmp.c:4298: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).
  dp = (unsigned char *) gmp_xalloc (strlen (sp));
data/minetest-5.3.0+repack/lib/gmp/mini-gmp.c:4373: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).
  len = strlen (str);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:2613: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).
    *length = static_cast<unsigned>(strlen(prefixed));
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:2633: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).
  size_t size = (length==0) ? strlen(value) : length;
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:2881:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  value_.string_ = duplicateAndPrefixStringValue(value, static_cast<unsigned>(strlen(value)));
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:2952: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).
            otherComment.comment_, strlen(otherComment.comment_));
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3531: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).
      key, static_cast<unsigned>(strlen(key)), CZString::noDuplication); // NOTE!
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3582: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).
  Value const* found = find(key, key + strlen(key));
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3594: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).
  return resolveReference(key, key + strlen(key));
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3630: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).
  return get(key, key + strlen(key), defaultValue);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3653:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return removeMember(key, key + strlen(key), removed);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3666: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).
  CZString actualKey(key, unsigned(strlen(key)), CZString::noDuplication);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3711:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return isMember(key, key + strlen(key));
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:3898: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).
  setComment(comment, strlen(comment), placement);
data/minetest-5.3.0+repack/lib/jsoncpp/jsoncpp.cpp:4470:64:  [1] (buffer) strlen:
  Does not handle 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 valueToQuotedStringN(value, static_cast<unsigned int>(strlen(value)));
data/minetest-5.3.0+repack/src/client/client.cpp:250:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read(&contents[0], size);
data/minetest-5.3.0+repack/src/client/client.cpp:1277: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).
			1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash) + 2);
data/minetest-5.3.0+repack/src/client/client.cpp:1280: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).
		<< (u8) 0 << (u16) strlen(g_version_hash);
data/minetest-5.3.0+repack/src/client/client.cpp:1282: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).
	pkt.putRawString(g_version_hash, (u16) strlen(g_version_hash));
data/minetest-5.3.0+repack/src/client/filecache.cpp:44:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		fis.read(buf, 1024);
data/minetest-5.3.0+repack/src/client/keycode.cpp:286:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(name) == 0) {
data/minetest-5.3.0+repack/src/client/keycode.cpp:293:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(name) <= 4) {
data/minetest-5.3.0+repack/src/client/shader.h:95:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if (has_been_set && std::equal(m_sent, m_sent + count, value))
data/minetest-5.3.0+repack/src/client/tile.cpp:2202: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).
	static const u32 normal_ext_size = strlen(normal_ext);
data/minetest-5.3.0+repack/src/database/database-sqlite3.cpp:230:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	PREPARE_STATEMENT(read, "SELECT `data` FROM `blocks` WHERE `pos` = ? LIMIT 1");
data/minetest-5.3.0+repack/src/database/database-sqlite3.cpp:660:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	PREPARE_STATEMENT(read, "SELECT id, name, password, last_login FROM auth WHERE name = ?");
data/minetest-5.3.0+repack/src/database/database-sqlite3.h:54:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sqlite3_vrfy(sqlite3_bind_text(s, iCol, str, strlen(str), NULL));
data/minetest-5.3.0+repack/src/filesys.cpp:312:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(argv_data[2], path.c_str(), sizeof(argv_data[2]) - 1);
data/minetest-5.3.0+repack/src/irrlicht_changes/CGUITTFont.cpp:344:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			file->read(face->face_buffer, file->getSize());
data/minetest-5.3.0+repack/src/irrlicht_changes/irrUString.h:903: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).
		loadDataStream(c, strlen(c));
data/minetest-5.3.0+repack/src/map.cpp:1961:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read((char*)&version, 1);
data/minetest-5.3.0+repack/src/mapblock.cpp:590:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read(&tmp, 1);
data/minetest-5.3.0+repack/src/mapblock.cpp:595:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read((char *)*databuf_nodelist, nodecount * ser_length);
data/minetest-5.3.0+repack/src/mapblock.cpp:601:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read((char *)&t8, 1);
data/minetest-5.3.0+repack/src/mapblock.cpp:643:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read((char*)&flags, 1);
data/minetest-5.3.0+repack/src/mapnode.cpp:776:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read((char*) &databuf[0], len);
data/minetest-5.3.0+repack/src/porting.cpp:167:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for(i = strlen(path)-1; i>=0; i--)
data/minetest-5.3.0+repack/src/porting.cpp:562:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t cwdlen = strlen(buf);
data/minetest-5.3.0+repack/src/porting.h:69:22:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	#define sleep_ms(x) usleep(x*1000)
data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp:401: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).
		chunk_name = new char[strlen(display_name) + 2];
data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp:408:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int c = std::getc(fp);
data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp:411:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = std::getc(fp)) != EOF && c != '\n') {}
data/minetest-5.3.0+repack/src/script/cpp_api/s_security.cpp:413:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			std::getc(fp);
data/minetest-5.3.0+repack/src/script/lua_api/l_itemstackmeta.cpp:100: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).
	lua_pushlstring(L, className, strlen(className));
data/minetest-5.3.0+repack/src/script/lua_api/l_mainmenu.cpp:857:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
							toread->read(read_buffer,sizeof(read_buffer));
data/minetest-5.3.0+repack/src/script/lua_api/l_nodemeta.cpp:216: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).
	lua_pushlstring(L, className, strlen(className));
data/minetest-5.3.0+repack/src/script/lua_api/l_playermeta.cpp:83: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).
	lua_pushlstring(L, className, strlen(className));
data/minetest-5.3.0+repack/src/script/lua_api/l_storage.cpp:96: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).
	lua_pushlstring(L, className, strlen(className));
data/minetest-5.3.0+repack/src/script/lua_api/l_util.cpp:109:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t jlen = strlen(jsonstr);
data/minetest-5.3.0+repack/src/serialization.cpp:146:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			is.read(input_buffer, bufsize);
data/minetest-5.3.0+repack/src/serialization.cpp:254:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read((char*)tmp, 4);
data/minetest-5.3.0+repack/src/serialization.cpp:264:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read((char*)&more_count, 1);
data/minetest-5.3.0+repack/src/serialization.cpp:266:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read((char*)&byte, 1);
data/minetest-5.3.0+repack/src/server.cpp:2446:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		fis.read(buf, sizeof(buf));
data/minetest-5.3.0+repack/src/server.cpp:2591:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			fis.read(buf, 1024);
data/minetest-5.3.0+repack/src/unittest/test_keycode.cpp:58: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).
	UASSERTCMP(int, >, strlen(k.name()), 0); // should have human description
data/minetest-5.3.0+repack/src/unittest/test_keycode.cpp:63: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).
	UASSERTCMP(int, >, strlen(k.name()), 0);
data/minetest-5.3.0+repack/src/unittest/test_keycode.cpp:68: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).
	UASSERTCMP(int, >, strlen(k.name()), 0);
data/minetest-5.3.0+repack/src/unittest/test_keycode.cpp:72: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).
	UASSERTCMP(int, >, strlen(k.name()), 0);
data/minetest-5.3.0+repack/src/unittest/test_keycode.cpp:77: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).
	UASSERTCMP(int, >, strlen(k.name()), 0);
data/minetest-5.3.0+repack/src/util/areastore.cpp:105:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read(data, data_len);
data/minetest-5.3.0+repack/src/util/serialize.cpp:127:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read(buf, 2);
data/minetest-5.3.0+repack/src/util/serialize.cpp:136:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read(&s[0], s_size);
data/minetest-5.3.0+repack/src/util/serialize.cpp:171:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read(buf, 2);
data/minetest-5.3.0+repack/src/util/serialize.cpp:181:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read(&buf[0], 2);
data/minetest-5.3.0+repack/src/util/serialize.cpp:217:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read(buf, 4);
data/minetest-5.3.0+repack/src/util/serialize.cpp:232:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	is.read(&s[0], s_size);
data/minetest-5.3.0+repack/src/util/serialize.cpp:335:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					is.read(hexdigits, 4);
data/minetest-5.3.0+repack/src/util/serialize.h:385:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	inline T read ## N(std::istream &is) \
data/minetest-5.3.0+repack/src/util/serialize.h:388:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is.read(buf, sizeof(buf));       \
data/minetest-5.3.0+repack/src/util/serialize.h:389:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read ## N((u8 *)buf);     \
data/minetest-5.3.0+repack/src/util/serialize.h:495:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		*val = read ## N(data + pos);       \
data/minetest-5.3.0+repack/src/util/srp.cpp:447: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).
	srp_dbg_data((char *)username, strlen(username), "Username for x: ");
data/minetest-5.3.0+repack/src/util/srp.cpp:449:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hash_update(alg, &ctx, username, strlen(username));
data/minetest-5.3.0+repack/src/util/srp.cpp:495: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).
	hash(alg, (const unsigned char *)I, strlen(I), H_I);
data/minetest-5.3.0+repack/src/util/srp.cpp:675:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t ulen = strlen(username) + 1;
data/minetest-5.3.0+repack/src/util/srp.cpp:830:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t ulen = strlen(username) + 1;
data/minetest-5.3.0+repack/src/util/srp.cpp:831:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t uvlen = strlen(username_for_verifier) + 1;
data/minetest-5.3.0+repack/src/util/string.cpp:200: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(str);
data/minetest-5.3.0+repack/src/util/string.cpp:338:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t srclen  = strlen(src) + 1;
data/minetest-5.3.0+repack/src/util/string.cpp:386: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).
		num = murmur_hash_64_ua(str, (int)strlen(str), 0x1337);

ANALYSIS SUMMARY:

Hits = 411
Lines analyzed = 199791 in approximately 4.37 seconds (45708 lines/second)
Physical Source Lines of Code (SLOC) = 138696
Hits@level = [0]  22 [1]  81 [2] 203 [3]  62 [4]  62 [5]   3
Hits@level+ = [0+] 433 [1+] 411 [2+] 330 [3+] 127 [4+]  65 [5+]   3
Hits/KSLOC@level+ = [0+] 3.12194 [1+] 2.96332 [2+] 2.3793 [3+] 0.915672 [4+] 0.468651 [5+] 0.02163
Dot directories skipped = 2 (--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.