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/openni2-2.2.0.33+dfsg/Include/OniCEnums.h Examining data/openni2-2.2.0.33+dfsg/Include/OniVersion.h Examining data/openni2-2.2.0.33+dfsg/Include/Linux-Arm/OniPlatformLinux-Arm.h Examining data/openni2-2.2.0.33+dfsg/Include/Linux-x86/OniPlatformLinux-x86.h Examining data/openni2-2.2.0.33+dfsg/Include/PS1080.h Examining data/openni2-2.2.0.33+dfsg/Include/Android-Arm/OniPlatformAndroid-Arm.h Examining data/openni2-2.2.0.33+dfsg/Include/PSLink.h Examining data/openni2-2.2.0.33+dfsg/Include/MacOSX/OniPlatformMacOSX.h Examining data/openni2-2.2.0.33+dfsg/Include/Win32/OniPlatformWin32.h Examining data/openni2-2.2.0.33+dfsg/Include/OniProperties.h Examining data/openni2-2.2.0.33+dfsg/Include/OniEnums.h Examining data/openni2-2.2.0.33+dfsg/Include/OniCTypes.h Examining data/openni2-2.2.0.33+dfsg/Include/OniCAPI.h Examining data/openni2-2.2.0.33+dfsg/Include/Driver/OniDriverTypes.h Examining data/openni2-2.2.0.33+dfsg/Include/Driver/OniDriverAPI.h Examining data/openni2-2.2.0.33+dfsg/Include/OniCProperties.h Examining data/openni2-2.2.0.33+dfsg/Include/PrimeSense.h Examining data/openni2-2.2.0.33+dfsg/Include/OpenNI.h Examining data/openni2-2.2.0.33+dfsg/Include/Linux-generic/OniPlatformLinux-generic.h Examining data/openni2-2.2.0.33+dfsg/Include/OniPlatform.h Examining data/openni2-2.2.0.33+dfsg/Samples/SimpleRead/main.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/MultipleStreamRead/main.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/Common/OniSampleUtilities.h Examining data/openni2-2.2.0.33+dfsg/Samples/ClosestPointViewer/Viewer.h Examining data/openni2-2.2.0.33+dfsg/Samples/ClosestPointViewer/Viewer.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/ClosestPointViewer/main.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/MWClosestPointApp/main.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/EventBasedRead/main.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/SimpleViewer/Viewer.h Examining data/openni2-2.2.0.33+dfsg/Samples/SimpleViewer/Viewer.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/SimpleViewer/main.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/MWClosestPoint/MWClosestPoint.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/MWClosestPoint/MWClosestPoint.h Examining data/openni2-2.2.0.33+dfsg/Samples/MultiDepthViewer/Viewer.h Examining data/openni2-2.2.0.33+dfsg/Samples/MultiDepthViewer/Viewer.cpp Examining data/openni2-2.2.0.33+dfsg/Samples/MultiDepthViewer/main.cpp Examining data/openni2-2.2.0.33+dfsg/Source/DepthUtils/DepthUtilsImpl.h Examining data/openni2-2.2.0.33+dfsg/Source/DepthUtils/DepthUtilsImpl.cpp Examining data/openni2-2.2.0.33+dfsg/Source/DepthUtils/DepthUtils.cpp Examining data/openni2-2.2.0.33+dfsg/Source/DepthUtils/DepthUtils.h Examining data/openni2-2.2.0.33+dfsg/Source/Resources/Resource-OpenNI.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDebug.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDeviceDriver.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniInternal.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniRecorder.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDriverHandler.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDevice.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDriverServices.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniRecorder.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniContext.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniCommon.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniStreamFrameHolder.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniFrameManager.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDataRecords.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniStreamFrameHolder.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniSyncedStreamsFrameHolder.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OpenNI.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniSensor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDeviceDriver.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniFrameHolder.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDriverHandler.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDevice.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniSyncedStreamsFrameHolder.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniDataRecords.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniFrameManager.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniSensor.h Examining data/openni2-2.2.0.33+dfsg/Source/Core/OniContext.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/DummyDevice/DummyDevice.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/BaseKinectStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectStreamImpl.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/ColorKinectStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/S2D.h.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDevice.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/DepthKinectStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/IRKinectStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDriver.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/ColorKinectStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDriver.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/D2S.h.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/DepthKinectStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDevice.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/IRKinectStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/BaseKinectStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectStreamImpl.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnDDK.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnIONetworkStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnFormatsStatus.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnIOStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnDDKStatus.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnStreamFormats.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnPropertySet.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnCommon.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnIOFileStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnDevice.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnPsVersion.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnPlatformBC.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnStreamParams.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnDeviceProxy.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Include/XnCore.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniDriver.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniDriver.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniDevice.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniDevice.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniDepthStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniColorStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniDepthStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniMapStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniMapStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnExportedOniDriver.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniColorStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniIRStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DriverImpl/XnOniIRStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnPropertySetInternal.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualGeneralProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnIntPropertySynchronizer.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDepthStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnAudioStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnIntProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceModule.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDDK.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnIRStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnShiftToDepth.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualIntProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDDKStatus.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualStringProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceModuleHolder.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnStringProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnGeneralProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnStreamingStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnImageStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceModule.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnFrameBufferManager.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnCodecFactory.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnStreamingStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualRealProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnShiftToDepthStreamHelper.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceBase.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualRealProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceBase.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnIntProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnAudioStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualStringProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnShiftToDepthStreamHelper.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnFrameStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnGeneralProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnFrameStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualGeneralProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnShiftToDepth.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnPropertySet.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnCodecFactory.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnIRStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnRealProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDepthStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnPixelStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualPropertiesHash.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnStringProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnIntPropertySynchronizer.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualIntProperty.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceModuleHolder.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnImageStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnPixelStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualPropertiesHash.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnFrameBufferManager.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnRealProperty.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFirmwareStreams.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnGeneralDebugProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnAudioProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnIRProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFirmwareCommands.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnStreamProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFirmwareCommands.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnWholePacketProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/YUV.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFPS.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorImageStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnJpegToRGBImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPSCompressedDepthProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedYUV422toRGBImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceEnumeration.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPassThroughImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnGMCDebugProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnWavelengthCorrectionDebugProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorAudioStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnJpegToRGBImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPacked11DepthProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnBayerImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPSCompressedImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorProtocol.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPSCompressedDepthProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPassThroughImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFixedParams.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedYUYVtoRGBImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorIO.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorDepthStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorProtocol.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFirmware.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedBayerProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorAudioStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDepthProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnCmosInfo.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPSCompressedImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceEnumeration.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFirmwareInfo.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorIO.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorIRStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDataProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnNesaDebugProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedDepthProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnBayerImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFrameStreamProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnWholePacketProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFirmwareParams.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnAudioProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedYUV422toRGBImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnHostProtocol.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnNesaDebugProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnHostProtocol.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/IXnSensorStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFirmwareInfo.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedBayerProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/Bayer.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedYUYVtoRGBImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDataProcessorHolder.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFirmware.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFirmwareTypes.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPacked12DepthProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnJpegImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnTecDebugProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPacked12DepthProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnStreamProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnTecDebugProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnGeneralDebugProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFixedParams.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnCmosInfo.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/Bayer.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorIRStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnPacked11DepthProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFirmwareStreams.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDataProcessorHolder.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDepthProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/Uncomp.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorDepthStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnJpegImageProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnWavelengthCorrectionDebugProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/YUV.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnGMCDebugProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorImageStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnParams.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorStreamHelper.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorInit.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnImageProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFPS.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnIRProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDataProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorStreamHelper.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnUncompressedDepthProcessor.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/Uncomp.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorInit.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnFrameStreamProcessor.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFirmwareParams.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Core/XnBuffer.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Core/XnIOFileStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Core/XnCoreGlobals.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Core/XnCoreStatus.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Core/XnCore.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Core/XnBuffer.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Core/XnIONetworkStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/XnPsVersion.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnStreamCompression.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnCodecBase.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnUncompressedCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnCodecs.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnStreamCompression.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnFormats.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnNiCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/Xn8zCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnJpegCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnFormats.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnFormatsStatus.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/Xn16zEmbTablesCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/Xn16zCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnFormatsMirror.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/TestDevice/TestDevice.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerCodecFactory.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerProperties.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/XnPlayerTypes.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerDriver.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerDevice.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/DataRecords.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/XnPropNames.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerDevice.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerNode.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerSource.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerNode.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerSource.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerDriver.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerCodecFactory.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/DataRecords.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnStreamCompression.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnCodecBase.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnUncompressedCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnStreamCompression.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/Xn8zCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnCodecIDs.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnStreamFormats.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnJpegCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/Xn16zEmbTablesCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/Xn16zCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnCodec.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnCodec.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/Protocols/XnLinkProto/XnLinkDefs.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/Protocols/XnLinkProto/XnLinkProto.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PS1200Device.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PrimeClientDefs.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PrimeClient.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkControlEndpoint.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkUnpackedS2DParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkLogParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkContInputStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoLibDefs.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkContInputStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBConnectionFactory.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink11BitS2DParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkUnpackedDataReductionParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnServerUSBLinuxConnectionFactory.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkInputStreamsMgr.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSocketInConnection.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBOutDataEndpoint.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkYuvToRgb.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnShiftToDepth.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkMsgEncoder.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnServerSocketInConnection.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientSocketInConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink16zParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/ILinkOutputStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkStatusCodes.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientSocketInConnection.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSyncServerSocketConnection.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkControlEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSyncSocketConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/IConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/ISyncInputConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkInputDataEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBControlEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkInputDataEndpoint.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnMapSequenceListConverter.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkOutputStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkLogParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnServerUSBLinuxControlEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkUnpackedS2DParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkPacked10BitParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnServerSocketInConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSyncServerSocketConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkYuv422ToRgb888Parser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBInDataEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink11BitS2DParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink16zParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkOutputStreamsMgr.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkPacked10BitParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkResponseMsgParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/IAsyncInputConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkYuv422ToRgb888Parser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBControlEndpoint.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkFrameInputStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBOutDataEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSyncSocketConnection.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink12BitS2DParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnCyclicBuffer.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink24zYuv422Parser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkOutputDataEndpoint.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/ISyncIOConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink24zYuv422Parser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkFrameInputStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientSyncSocketConnection.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnShiftToDepth.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkResponseMsgParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkOutputStreamsMgr.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/LinkProtoLibVersion.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkMsgEncoder.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkInputStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkYuvToRgb.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBConnectionFactory.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink6BitParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkInputStreamsMgr.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkUnpackedDataReductionParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkOutputStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnServerUSBLinuxOutDataEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink12BitS2DParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/IOutputConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSocketInConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSocketConnectionFactory.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSocketConnectionFactory.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLink6BitParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkOutputDataEndpoint.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/IConnectionFactory.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkMsgParser.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkStatusCodes.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkInputStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkMsgParser.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientSyncSocketConnection.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnClientUSBInDataEndpoint.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkDeviceEnumeration.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniDepthStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniMapStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniDriver.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniDriver.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkExportedOniDriver.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniIRStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniDevice.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniMapStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniDepthStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniIRStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniStream.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniDevice.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniStream.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkDeviceEnumeration.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PrimeClient.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/XnPsVersion.h Examining data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PS1200Device.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Audio.h Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Audio.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/MouseInput.h Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Device.h Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Keyboard.h Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/MouseInput.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.h Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.h Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.h Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Keyboard.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/NiViewer.cpp Examining data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Device.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdatasrc.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jctrans.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/cderror.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcomapi.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jpeglib.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdtrans.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jidctred.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdcoefct.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdhuff.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcmaster.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jversion.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcparam.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmemmgr.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcdctmgr.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jidctint.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmemsys.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcphuff.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jutils.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcmarker.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jquant2.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jconfig.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jerror.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcprepct.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jerror.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jddctmgr.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmemnobs.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdmainct.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcmainct.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jidctflt.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdmaster.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jinclude.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jchuff.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcapistd.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jfdctflt.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcsample.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jquant1.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdphuff.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jccoefct.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdhuff.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdmerge.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcinit.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdcolor.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jidctfst.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jpegint.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdsample.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcapimin.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jfdctint.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jchuff.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdapimin.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jfdctfst.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jccolor.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmorecfg.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdinput.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdatadst.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdmarker.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdpostct.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdct.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdapistd.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_glut_replay.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_genext.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_interactors.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_convenience.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_mipmaps.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_glut.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_array.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_obs.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_cube_map.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_glut_callfunc.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_text.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_glut_text.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_glut2.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_linear.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnMatrix3x3.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnCriticalSection.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnVector3D.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Linux-Arm/XnPlatformLinux-Arm.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnLogTypes.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnBitSet.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Linux-x86/XnPlatformLinux-x86.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Linux-x86/XnOSLinux-x86.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnOSCpp.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnStatusCodes.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSIMD-SSE.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnLib.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnMemory.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnLog.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnBox3D.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Android-Arm/XnPlatformAndroid-Arm.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnCyclicStack.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSmartPointer.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnList.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSIMD-None.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnThreadSafeQueue.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnPair.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnLockable.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnScheduler.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/MacOSX/XnOSMacOSX.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/MacOSX/XnPlatformMacOSX.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnString.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnDump.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnProperty.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Win32/usb100.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Win32/XnPlatformWin32.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Win32/XnOSWin32.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnStringsHash.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnDumpWriters.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnEvent.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnQuaternion.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnCallStackLogger.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnPool.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSIMD-Neon.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnUSB.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnArray.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnDataStructures.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnHash.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnOSStrings.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnQueue.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnMacros.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSIMD.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnPriorityQueue.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnProfiling.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnStatus.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnCallback.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnFPSCalculator.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSymmetricMatrix3x3.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnLogWriterBase.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnLockGuard.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnMath.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnStatusRegister.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/Linux-generic/XnPlatformLinux-generic.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnOS.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnUSBDevice.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnErrorLogger.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxEvents.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSB.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxPosixEvents.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxSysVNamedEvents.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxSharedMemory.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxDebug.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxProcesses.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxEvents.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxMemory.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxSysVNamedEvents.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxPosixNamedEvents.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxPosixEvents.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxPosixNamedEvents.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxMutex.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxCriticalSections.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxNetwork.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxSharedLibs.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxINI.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxKeyboard.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxTime.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSB.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxThreads.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLogFileWriter.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnUSB.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLog.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLogConsoleWriter.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnThreads.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnScheduler.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLogAndroidWriter.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnUSBInternal.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnFiles.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnFPSCalculator.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnDump.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLogConsoleWriter.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnDumpFileWriter.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Debug.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Threads.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnUSBWin32.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Network.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnUSBWin32.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32SharedMemory.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/usb200.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Events.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32CriticalSection.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Mutex.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Keyboard.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/usb100.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Time.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/usb.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32SharedLibrary.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Internal.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/devioctl.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Processes.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Semaphore.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Memory.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Files.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32INI.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3CriticalSections.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Mutex.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Time.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3USB.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Threads.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3SharedLibs.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3USB.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Memory.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Network.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Files.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3INI.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Events.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnEnum.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLogFileWriter.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnSytmmetricMatrix3x3.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnVector3D.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnStrings.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnOSMemoryProfiling.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnDumpFileWriter.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnOS.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLib.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLogAndroidWriter.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnStatus.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnErrorLogger.cpp Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/msvc/inttypes.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/msvc/config.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/msvc/stdint.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/config.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/listdevs.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp_threaded.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/threads_posix.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/threads_posix.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_posix.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/threads_windows.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/threads_windows.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/io.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/core.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/libusb.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/sync.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/libusbi.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/version.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_glut_replay.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_genext.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_interactors.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_convenience.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_mipmaps.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_glut.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_array.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_obs.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_linear.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_glut2.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_cube_map.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_glut_callfunc.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_text.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_glut_text.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Driver/Win32/Build/sys/PSDrvPublic.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock/gmock.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h Examining data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock_main.cc Examining data/openni2-2.2.0.33+dfsg/Wrappers/java/OpenNI.jni/org_openni_NativeMethods.cpp Examining data/openni2-2.2.0.33+dfsg/Wrappers/java/OpenNI.jni/jni.h Examining data/openni2-2.2.0.33+dfsg/Wrappers/java/OpenNI.jni/OpenNI.jni.cpp Examining data/openni2-2.2.0.33+dfsg/Wrappers/java/OpenNI.jni/jni_md.h Examining data/openni2-2.2.0.33+dfsg/Wrappers/java/OpenNI.jni/org_openni_NativeMethods.h FINAL RESULTS: data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:285:16: [5] (misc) SetSecurityDescriptorDacl: Never create NULL ACLs; an attacker can set it to Everyone (Deny All Access), which would even forbid administrator access (CWE-732). if (FALSE == SetSecurityDescriptorDacl(&securityDesc, TRUE, NULL, FALSE)) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:285:16: [5] (misc) SetSecurityDescriptorDacl: Never create NULL ACLs; an attacker can set it to Everyone (Deny All Access), which would even forbid administrator access (CWE-732). if (FALSE == SetSecurityDescriptorDacl(&securityDesc, TRUE, NULL, FALSE)) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1238:3: [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. readlink(link_file_name, fd_file_name, sizeof(fd_file_name) - 1); data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDriver.cpp:203:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)pInfo->uri, str); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceBase.cpp:119:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(strName, pModuleHolder->GetModule()->GetName()); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceBase.cpp:1151:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(this->strModule, strModule); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnPixelStream.cpp:414:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(csCroppingSection, "%s.Cropping", csSection); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnPixelStream.cpp:473:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(csValue, XnDDKGetResolutionName((XnResolutions)nValue)); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorIO.cpp:78:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(m_strDeviceName, strPath); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorProtocol.cpp:398:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(pFile, "%u %s\n%n", &nType, filename, &nRead); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceSensorProtocol.cpp:417:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(pFile, "%u %s\n%n", &nType, filename, &nRead); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnHostProtocol.cpp:3325:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cpSerialNumber, (XnChar*)serialNumberBuffer); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniMapStream.cpp:60:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(section, "%s.VideoMode", m_configSection); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:1208:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. case enumValue: sprintf(targetStr, "%s", enumStr); break; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:334:16: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. nChars += sprintf(pMessage + nChars, "%s-%d ", g_Capture.streams[i].name, g_Capture.streams[i].getFrameFunc().getFrameIndex() - g_Capture.streams[i].startFrame); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:346:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(csName, "%s/Color_%d.raw", CAPTURED_FRAMES_DIR_NAME, num); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:351:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(csName, "%s/Depth_%d.raw", CAPTURED_FRAMES_DIR_NAME, num); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:356:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(csName, "%s/IR_%d.raw", CAPTURED_FRAMES_DIR_NAME, num); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Device.cpp:783:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg,"Repeat playback: %s", (bLoop ? "ON" : "OFF")); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:92:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName, csName); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:81:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcat(strcpy(padExtName, extName), " "); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:183:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sysExts, extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:186:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sysExts, winsys_extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:218:13: [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(unsupportedExts, reqExt); data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jerror.c:193:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, msgtext, err->msg_parm.s); data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jerror.c:195:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, msgtext, data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:1440: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. # define vsnprintf _vsnprintf data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2144:12: [4] (buffer) StrNCpy: 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). posix::StrNCpy(clone, str, length); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2764:12: [4] (buffer) StrNCpy: 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). posix::StrNCpy( data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3017:20: [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. const int size = vsnprintf(buffer, kBufferSize, format, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3021:20: [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. const int size = vsnprintf(buffer, kBufferSize, format, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3938:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3957:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3964:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8605:10: [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/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8605:19: [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/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8607:10: [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_s data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8609:10: [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/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8609:19: [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/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:2671:20: [4] (buffer) StrNCpy: 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). inline const char* StrNCpy(char* dest, const char* src, size_t n) { data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:8110:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(\ data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnCallStackLogger.h:157:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(pCallStack->msg, sizeof(pCallStack->msg)-1, format, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp:480:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ((access(cpFileName, F_OK)) != -1) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp:603:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(strFullPath, strResult); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp:654:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ((access(cpFileName, F_OK)) != -1) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxProcesses.cpp:93:14: [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. if (-1 == execv(strExecutable, astrArgs)) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:258:17: [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. XnInt32 nRes = vsnprintf(cpDestString, nDestLength, cpFormat, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:230:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fileName, "%s%s%d%s", GADGET_DEVICE_DIR, "ep", pDesc->bEndpointAddress & 0xF, bIn ? "in" : "out"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:256:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. XN_INT32 nRes = vsnprintf(cpDestString, nDestLength, cpFormat, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3USB.h:45:47: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define XN_USB_DEBUG_PRINTF(DUMMYFIRST, ...) printf(DUMMYFIRST, ##__VA_ARGS__) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Files.cpp:708:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cpDirName, strFullPath); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:207:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pOSInfo->csOSName, "%s", GetOSName(osVersionInfo)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:211: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(pOSInfo->csOSName, osVersionInfo.szCSDVersion); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:244:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(strDest, strGlobal); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:251:17: [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. XnInt32 nRes = vsnprintf(cpDestString, nDestLength, cpFormat, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:89:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. nReportChars += sprintf(csReport + nReportChars, "%-*s %-5s %-6s %-9s %-7s\n", (int)g_ProfilingData.nMaxSectionName, "TaskName", "Times", "% Time", "TotalTime", "AvgTime"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:90:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. nReportChars += sprintf(csReport + nReportChars, "%-*s %-5s %-6s %-9s %-7s\n", (int)g_ProfilingData.nMaxSectionName, "========", "=====", "======", "=========", "======="); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:106:20: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. nReportChars += sprintf(csReport + nReportChars, "%-*s %5u %6.2f %9llu %7llu\n", (int)g_ProfilingData.nMaxSectionName, data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:119:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. nReportChars += sprintf(csReport + nReportChars, "%-*s %5s %6.2f %9llu %7s\n", data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnStrings.cpp:29:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, strSource); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:81:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcat(strcpy(padExtName, extName), " "); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:183:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(sysExts, extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:186:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sysExts, winsys_extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:218:13: [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(unsupportedExts, reqExt); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/core.c:1808:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stream, format, args); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:873:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(priv->sysfs_dir, sysfs_dir); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:72:12: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. extern int _snprintf(char *buffer, size_t count, const char *format, ...); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:54:12: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. extern int _snprintf(char *buffer, size_t count, const char *format, ...); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:70:22: [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 safe_sprintf _snprintf data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmemmgr.c:35:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char * getenv JPP((const char * name)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:700:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleRange(internal::Random* random, int begin, int end, data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:721:39: [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. inline void Shuffle(internal::Random* random, std::vector<E>* v) { data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:722: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. ShuffleRange(random, 0, static_cast<int>(v->size()), v); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:1172:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. internal::Random* random() { return &random_; } data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3767:47: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void TestCase::ShuffleTests(internal::Random* random) { data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3768: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. Shuffle(random, &test_indices_); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:5519:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random()->Reseed(random_seed_); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:5790: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. ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:5793: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. ShuffleRange(random(), last_death_test_case_ + 1, data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:5798:34: [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. test_cases_[i]->ShuffleTests(random()); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:2709:27: [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* const env = getenv(name); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:2712:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:17891:39: [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 ShuffleTests(internal::Random* random); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp:590:14: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (NULL == realpath(strFilePath, strResult)) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxSharedLibs.cpp:41:32: [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. XnChar* strAbsoluteFileName = realpath(cpFileName, NULL); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:339:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char* strRes = getenv(strEnv); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32CriticalSection.cpp:35:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(*pCriticalSectionHandle); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32CriticalSection.cpp:68:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(*pCriticalSectionHandle); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Debug.cpp:63:17: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE hDbg = LoadLibrary("dbghelp.dll"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32SharedLibrary.cpp:40:16: [3] (misc) LoadLibraryEx: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. *pLibHandle = LoadLibraryEx(strFileName, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/core.c:1581:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *dbg = getenv("LIBUSB_DEBUG"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:138:4: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:155:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:223:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:282:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:360:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:449:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:475:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:501:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_poll_fd[i].mutex); data/openni2-2.2.0.33+dfsg/Include/OniCTypes.h:78: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 uri[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Include/OniCTypes.h:79: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 vendor[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Include/OniCTypes.h:80:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Include/OpenNI.h:158: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*)m_data, data, count*sizeof(T)); data/openni2-2.2.0.33+dfsg/Include/OpenNI.h:1304:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). inline Status open(const char* uri); data/openni2-2.2.0.33+dfsg/Include/OpenNI.h:2658:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Status Device::open(const char* uri) data/openni2-2.2.0.33+dfsg/Include/PSLink.h:126:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m_strModifier[XN_MAX_VERSION_MODIFIER_LENGTH]; data/openni2-2.2.0.33+dfsg/Include/PSLink.h:138: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 creationInfo[80]; data/openni2-2.2.0.33+dfsg/Include/PrimeSense.h:105:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; data/openni2-2.2.0.33+dfsg/Include/PrimeSense.h:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; data/openni2-2.2.0.33+dfsg/Include/PrimeSense.h: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 name[32]; data/openni2-2.2.0.33+dfsg/Include/PrimeSense.h:129:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; data/openni2-2.2.0.33+dfsg/Samples/ClosestPointViewer/Viewer.h: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 m_strSampleName[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Samples/EventBasedRead/main.cpp:112:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = device.open(ANY_DEVICE); data/openni2-2.2.0.33+dfsg/Samples/MWClosestPoint/MWClosestPoint.cpp:74:38: [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). Status rc = m_pInternal->m_pDevice->open(uri); data/openni2-2.2.0.33+dfsg/Samples/MultiDepthViewer/Viewer.h:65: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_strSampleName[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Samples/MultiDepthViewer/main.cpp:76:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = device1.open(device1Uri); data/openni2-2.2.0.33+dfsg/Samples/MultiDepthViewer/main.cpp:84:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = device2.open(device2Uri); data/openni2-2.2.0.33+dfsg/Samples/MultipleStreamRead/main.cpp:68:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = device.open(ANY_DEVICE); data/openni2-2.2.0.33+dfsg/Samples/SimpleRead/main.cpp:40:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = device.open(ANY_DEVICE); data/openni2-2.2.0.33+dfsg/Samples/SimpleViewer/Viewer.h:71: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_strSampleName[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Samples/SimpleViewer/main.cpp:40:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = device.open(deviceURI); data/openni2-2.2.0.33+dfsg/Source/Core/OniContext.cpp:230:2: [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(acsFileList[0], "libPS1080.so"); data/openni2-2.2.0.33+dfsg/Source/Core/OniContext.cpp:231:2: [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(acsFileList[1], "libOniFile.so"); data/openni2-2.2.0.33+dfsg/Source/Core/OniContext.cpp:232:2: [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(acsFileList[2], "libPSLink.so"); data/openni2-2.2.0.33+dfsg/Source/Core/OniContext.cpp:457:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return pMyDevice->open(mode); data/openni2-2.2.0.33+dfsg/Source/Core/OniContext.h:137:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m_overrideDevice[XN_FILE_MAX_PATH]; data/openni2-2.2.0.33+dfsg/Source/Core/OniDevice.cpp:59:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). OniStatus Device::open(const char* mode) data/openni2-2.2.0.33+dfsg/Source/Core/OniDevice.h:43:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). OniStatus open(const char* mode); data/openni2-2.2.0.33+dfsg/Source/DepthUtils/DepthUtils.h:51: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 deviceName[80]; data/openni2-2.2.0.33+dfsg/Source/DepthUtils/DepthUtils.h: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 serial[80]; data/openni2-2.2.0.33+dfsg/Source/DepthUtils/DepthUtilsImpl.cpp:121: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(pInput, pOutput, m_depthResolution.x*m_depthResolution.y*2); data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDriver.cpp:84:5: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wcstring[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDriver.cpp:154: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[ONI_MAX_STR]; data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnStreamCompression.cpp:1000: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 buffer[JMSG_LENGTH_MAX]; data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/Formats/XnStreamCompression.cpp:1012:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[JMSG_LENGTH_MAX]; data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerProperties.h:65: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(data, pBuffer->data, *pDataSize); data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerProperties.h:104:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pBuffer->data, data, dataSize); data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerSource.cpp:73: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_sourceInfo.pSupportedVideoModes, data, sizeof(OniVideoMode)); data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerStream.cpp:228: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(pFrame->data, newDataEventArgs.pData, pFrame->dataSize); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnIntProperty.cpp:78:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csValue, "%llu", *(XnUInt64*)pValue); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnRealProperty.cpp:77:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csValue, "%f", *(XnDouble*)pValue); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnStreamCompression.cpp:1136: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 buffer[JMSG_LENGTH_MAX]; data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Formats/XnStreamCompression.cpp:1148:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[JMSG_LENGTH_MAX]; data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp:81: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/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp:459:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *FileTypes[NUM_OF_FILE_TYPES]= { "FILE_TABLE", data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp:601:6: [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). ifs.open(filename.c_str()); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDataProcessor.cpp:163:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csDumpComment, "Init. Total Ticks in Ref TS: %llu", m_TimeStampData.nTotalTicksAtReferenceTS); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDataProcessor.cpp:177:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csDumpComment, "Wrap around. Refernce TS: %u / TotalTicksAtReference: %llu", m_TimeStampData.nReferenceTS, m_TimeStampData.nTotalTicksAtReferenceTS); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnHostProtocol.cpp:1365:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cpBuffer, "%x", Version.nBuild); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnHostProtocol.cpp:1366:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Version.nBuild = (XnUInt16)atoi(cpBuffer); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnHostProtocol.cpp:2379: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(pDeviceInfo->strDeviceName, "PrimeSense Sensor"); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorDepthStream.cpp:1246:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csKey, "AGCBin%uMinDepth", nBin); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorDepthStream.cpp:1255:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csKey, "AGCBin%uMaxDepth", nBin); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnSensorFixedParams.cpp:68:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(m_strSensorSerial, "%d", FixedParams.nSerialNumber); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/DriverImpl/LinkOniDriver.h:88: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_configFilePath[XN_FILE_MAX_PATH]; data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.cpp:27:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%02X ", ((XnUInt8*)this)[i]); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSocketConnectionFactory.cpp:298:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(strProductID, "%04X", nProductID); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/LinkProtoLib/XnSocketConnectionFactory.cpp:440:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nTempPort = atoi(strPort); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:259:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[256]; data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:285:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char commandName[XN_FILE_MAX_PATH]; data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:368:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* pScriptFile = fopen(strFileName, "r"); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:521: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 strVersion[200]; data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:1204:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bootZoneStr[MAX_STR_LEN], bootZoneErr[MAX_STR_LEN]; data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:1215:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(bootZoneStr, "Unexpected - %d",bootStatus.zone); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PSLinkConsole/PSLinkConsole.cpp:1225:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(bootZoneErr, "Unexpected - %d",bootStatus.errorCode); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PrimeClient.cpp:532:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* pFile = fopen(strFileName, "r"); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PrimeClient.cpp:584:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nBitOffset = (XnUInt8)atoi(pToken); data/openni2-2.2.0.33+dfsg/Source/Drivers/PSLink/PrimeClient.cpp:589:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nBitWidth = (XnUInt8)atoi(pToken); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:78: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 csFileName[256]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:83: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 csDisplayMessage[500]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:192:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(g_Capture.csFileName, ".oni"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:198:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(g_Capture.csFileName, "./Captured.oni"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:324:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pMessage, "Capturing will start in %u seconds...", g_Capture.nStartOn - (XnUInt32)nNow); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Capture.cpp:329:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int nChars = sprintf(pMessage, "* Recording! Press any key or use menu to stop *\nRecorded Frames: "); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Device.cpp:241:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). nRetVal = g_device.open(uri); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Device.cpp:287: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). g_device.open(deviceList[chosen-1].getUri()); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Device.cpp:782: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 msg[100]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:165:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char g_csUserMessage[256]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:911:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char csMessage[512]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1213: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/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1462: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 csMessage[256]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1484: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 aKeys[20]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1497:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Keyboard.cpp:60:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char g_strUserInput[1024]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:53:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char csName[XN_MAX_MENU_ENTRY_NAME_LEN]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:100:4: [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(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Left]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:103:4: [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(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Right]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:106:4: [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(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Up]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:109:4: [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(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Down]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:121:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Esc]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:123:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Space]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:125:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [ %c ]", (char)key); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/NiViewer.cpp:221: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). long seekFrame = atoi(userInput); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/NiViewer.cpp:423:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[50]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/NiViewer.cpp:449:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[50]; data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/NiViewer.cpp:475:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[50]; data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_linear.h:1132: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(q,qp,sizeof(real) * 4); data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jchuff.c:185:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char huffsize[257]; data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jchuff.h:29:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ehufsi[256]; /* length of code for each symbol */ data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcmarker.c:228:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dc_in_use[NUM_ARITH_TBLS]; data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jcmarker.c:229:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ac_in_use[NUM_ARITH_TBLS]; data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jdhuff.c:156:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char huffsize[257]; data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jerror.c:100:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[JMSG_LENGTH_MAX]; data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jinclude.h:63:32: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size)) data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmemsys.h:156:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */ data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmemsys.h:162:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_name[TEMP_NAME_LENGTH]; /* name if it's a file */ data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jmemsys.h:166:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_name[TEMP_NAME_LENGTH]; /* name of temp file */ data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jpeglib.h:667:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[JMSG_STR_PARM_MAX]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2167:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2170:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2658:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_text[kBufSize] = { '\0' }; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2826: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[32]; // CodePointToUtf8 requires a buffer this big. data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:3008:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[4096]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:6471:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:6890:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char executable_path[_MAX_PATH + 1]; // NOLINT data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:7534:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:7537:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8218:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, regex, len); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8296:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_dir_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8297:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_file_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8315:29: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). const int captured_fd = mkstemp(name_template); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8615:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[5] = ""; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:2683:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(path, mode); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:3154: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(str, buffer, a_length); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnErrorLogger.h:53:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m_errorBuffer[ms_bufferSize]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSIMD.h:51:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[33]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnSIMD.h:53:29: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. for(int i=0; i<16; i++) sprintf(&buffer[2*i],"%02x",(int)px[i]); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp:179: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). *pFile = open(cpFileName, nOSOpenFlags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxINI.cpp:245:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *nDest = atoi(cpValueString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxMemory.cpp:118:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pDest, pSource, nCount); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxMutex.cpp:107:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pMutex->hSemFile = open(pMutex->csSemFileName, O_CREAT | O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxProcesses.cpp:127:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pFile = fopen("/proc/self/cmdline", "r"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxProcesses.cpp:134: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 strAppName[1024]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxProcesses.cpp:144: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 strAppName[1024]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxSysVNamedEvents.cpp:66:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). m_hSemFile = open(m_csSemFileName, O_CREAT | O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSB.cpp:637:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(aResult[nCurrent], "%04hx/%04hx@%hhu/%hhu", nVendorID, nProductID, libusb_get_bus_number(pDevice), libusb_get_device_address(pDevice)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:55:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, data, size); \ data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:233:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(fileName, O_RDWR); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:661:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int device_fd = open (GADGET_DEVICE_FILE_PATH, O_RDWR); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Files.cpp:45: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). *pFile = fopen(cpFileName, "rb"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Files.cpp:63:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). *pFile = fopen(cpFileName, bAppend ? "ab" : "wb"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Files.cpp:149:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* pTemp = fopen(cpFileName, "rb"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Memory.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(pDest, pSource, nCount); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnUSBWin32.cpp:65: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 className[MAX_PATH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnUSBWin32.cpp:304: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 className[MAX_PATH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Files.cpp:693: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 strFullPath[XN_FILE_MAX_PATH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32INI.cpp:148:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *nDest = atoi(cpTempBuffer); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32INI.cpp:200:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cpTempBuffer, "%f", fSrc); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32INI.cpp:232:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cpTempBuffer, "%f", fSrc); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Memory.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(pDest, pSource, nCount); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:188:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(csName+strlen(csName), " Model: %d Family: %d Stepping: %d", nModel, nFamily, nSteppingID); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLog.cpp:697:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. pos = sprintf(csLine, "%6u: ", i); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLog.cpp:700:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. pos += sprintf(csLine + pos, "%02x ", pBinData[i]); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLog.cpp:943:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. pos = sprintf(csLine, "%6u: ", i); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnLog.cpp:946:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. pos += sprintf(csLine + pos, "%02x ", pBinData[i]); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:88:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. nReportChars += sprintf(csReport + nReportChars, "Profiling Report:\n"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_linear.h:1132: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(q,qp,sizeof(real) * 4); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp.c:61: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 imgbuf[0x1b340]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp.c:62: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 irqbuf[INTR_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp.c:76: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 data[0x10]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp.c:213: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 data[INTR_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp.c:227: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 filename[64]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp.c:230: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). fd = fopen(filename, "w"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp_threaded.c:62: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 imgbuf[0x1b340]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp_threaded.c:63: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 irqbuf[INTR_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp_threaded.c:105:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[0x10]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp_threaded.c:242: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 data[INTR_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp_threaded.c:256:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[64]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/examples/dpfp_threaded.c:259: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). fd = fopen(filename, "w"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/core.c:560: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 raw_desc[DEVICE_DESC_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/core.c:964:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). r = usbi_backend->open(_handle); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/core.c:1601: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). ctx->debug = atoi(dbg); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:58:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dp, sp, 2); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:152:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(extra, begin, len); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:255: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((unsigned char *) ifp->extra, begin, len); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:406: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((unsigned char *) config->extra, begin, len); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:438: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 raw_desc[DEVICE_DESC_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:447: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((unsigned char *) desc, raw_desc, sizeof(raw_desc)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:475: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 tmp[8]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:540: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 tmp[8]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:602:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[6]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/descriptor.c:681: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 tbuf[255]; /* Some devices choke on size > 255 */ data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/libusbi.h:328: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 os_priv[0]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/libusbi.h:338: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 os_priv[0]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/libusbi.h:566:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct libusb_device_handle *handle); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.h:127:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sys_path[21]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:310: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/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:430:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, priv->dev_descriptor, DEVICE_DESC_LENGTH); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:437: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 filename[PATH_MAX]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:442:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(filename, O_RDONLY); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:456: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 filename[PATH_MAX]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:462:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "r"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:532:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, priv->config_descriptor, len); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:540: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 tmp[4] = {0, 0, 0, 0}; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:585: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 tmp[6]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:618: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 tmp[6]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:683:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, tmp, to_copy); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:754: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 filename[PATH_MAX]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:766:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(filename, O_RDONLY); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:786: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 tmp[8]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:860: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/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:908:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(path, O_RDWR); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:910:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(path, O_RDONLY); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1046: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 dirpath[PATH_MAX]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1067:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). devaddr = atoi(entry->d_name); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1119:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). busnum = atoi(entry->d_name); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1227:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char link_file_name[1024]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1228:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fd_file_name[1024]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1242: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). ret = atoi(fd_dirent->d_name); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1255: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 filename[PATH_MAX]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:1266:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). hpriv->fd = open(filename, O_RDWR); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.h:60: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 driver[USBFS_MAXDRIVERNAME + 1]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.h:116: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 port[127]; /* port to device num mapping */ data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:35: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 devnode[16]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:139: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 devnode[16]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:149:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(devnode, O_RDONLY)) < 0) { data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:208:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dpriv->fd = open(dpriv->devnode, O_RDWR); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:210:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dpriv->fd = open(dpriv->devnode, O_RDONLY); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:248:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &dpriv->ddesc, DEVICE_DESC_LENGTH); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:267:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, dpriv->cdesc, len); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:288:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(dpriv->devnode, O_RDONLY); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:664: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 *s, devnode[16]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:683:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (((fd = open(devnode, O_RDWR)) < 0) && (errno == ENXIO)) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:684:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(devnode, mode)) < 0) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:384: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(&poll_fd[i], &wfd, sizeof(struct winfd)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:455: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(&wfd, &poll_fd[i], sizeof(struct winfd)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:481: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(&wfd, &poll_fd[i], sizeof(struct winfd)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_windows.c:507: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(&wfd, &poll_fd[i], sizeof(struct winfd)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:118:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char guid_string[MAX_GUID_STRING_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:121:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(guid_string, "{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}", data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:135:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char err_string[ERR_BUFFER_SIZE]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:507: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(htab_table[idx].str, str, safe_strlen(str)+1); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:523:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[MAX_PATH_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:595:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char sep_str[2] = {LIST_SEPARATOR, 0}; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:602:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_str, driver, len+1); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:698: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 sem_name[11+1+8]; // strlen(libusb_init)+'\0'+(32-bit hex PID) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:700:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sem_name, "libusb_init%08X", (unsigned int)GetCurrentProcessId()&0xFFFFFFFF); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:954: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(priv->config_descriptor[i], cd_data, cd_data->wTotalLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1031: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(&priv->dev_descriptor, &(conn_info.DeviceDescriptor), sizeof(USB_DEVICE_DESCRIPTOR)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1182:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[MAX_PATH_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1183: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 strbuf[MAX_PATH_LENGTH]; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1515: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 sem_name[11+1+8]; // strlen(libusb_init)+'\0'+(32-bit hex PID) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1517:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sem_name, "libusb_init%08X", (unsigned int)GetCurrentProcessId()&0xFFFFFFFF); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1571:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1593:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, priv->config_descriptor[config_index], size); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:1622:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return priv->apib->open(dev_handle); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:2148:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PRINT_UNSUPPORTED_API(open); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.c:2844:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). r = usb_api_backend[api].open(dev_handle); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:62:50: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define safe_strcp(dst, dst_max, src, count) do {memcpy(dst, src, safe_min(count, dst_max)); \ data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:128:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(struct libusb_device_handle *dev_handle); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:237: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 list[MAX_KEY_LENGTH+1];// REG_MULTI_SZ list of services (driver) names data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/sync.c:93:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer + LIBUSB_CONTROL_SETUP_SIZE, data, wLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/sync.c: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(data, libusb_control_transfer_get_data(transfer), data/openni2-2.2.0.33+dfsg/Samples/ClosestPointViewer/Viewer.cpp:60:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strSampleName, strSampleName, ONI_MAX_STR); data/openni2-2.2.0.33+dfsg/Samples/Common/OniSampleUtilities.h:59:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getchar(); data/openni2-2.2.0.33+dfsg/Samples/Common/OniSampleUtilities.h:78:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(millisecs * 1000); data/openni2-2.2.0.33+dfsg/Samples/MWClosestPointApp/main.cpp:56:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getchar(); data/openni2-2.2.0.33+dfsg/Samples/MWClosestPointApp/main.cpp:75:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(ms*1000); data/openni2-2.2.0.33+dfsg/Samples/MultiDepthViewer/Viewer.cpp:70:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strSampleName, strSampleName, ONI_MAX_STR); data/openni2-2.2.0.33+dfsg/Samples/SimpleViewer/Viewer.cpp:70:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strSampleName, strSampleName, ONI_MAX_STR); data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDriver.cpp:53:21: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t origsize = wcslen(str) + 1; data/openni2-2.2.0.33+dfsg/Source/Drivers/Kinect/KinectDriver.cpp:157:20: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t origsize = wcslen(instanceName) + 1; data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/DataRecords.cpp:165: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). XnUInt32 nStrSize = (XnUInt32)strlen(str) + 1; //+1 for terminating '\0' data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/DataRecords.cpp:795:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). SetPropDataSize((XnUInt32)strlen(strValue)+1); data/openni2-2.2.0.33+dfsg/Source/Drivers/OniFile/PlayerDevice.cpp:820:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nRetVal = pThis->AddPrivateProperty(pSource, strPropName, (XnUInt32)strlen(strValue)+1, strValue); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualPropertiesHash.cpp:31:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strName, strName, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualPropertiesHash.cpp:193:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strName, other.m_strName, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualStringProperty.cpp:32:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strValue, strInitialValue, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnActualStringProperty.cpp:44:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(csValue, pSender->GetValue(), XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceBase.cpp:1028:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(strStreamName, StreamName, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnDeviceModule.cpp:40:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strName, strName, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnProperty.cpp:53:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strModule, strModule, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnProperty.cpp:55:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_strName, strName, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnPropertySet.cpp:339:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pEnumer->strModule, strModule, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnStringProperty.cpp:52:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)pDest, (const char*)pSource, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/DDK/XnStringProperty.cpp:75:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(csValue, (const XnChar*)pValue, XN_DEVICE_MAX_STRING_LENGTH); data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp:56: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(str) > 1 && str[0] == '0' && str[1] == 'x') data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp:62:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (size_t i = start; i < strlen(str); i++) data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceEnumeration.cpp:171:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&cpMatchString[0], &uri[12], 4); //VID data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnDeviceEnumeration.cpp:172:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&cpMatchString[4], &uri[21], 4); //PID data/openni2-2.2.0.33+dfsg/Source/Drivers/PS1080/Sensor/XnHostProtocol.cpp:2380:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(pDeviceInfo->strVendorData, ""); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:381:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int i,l = (int)strlen(str); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1307: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). xnOSStrFormat(buf + strlen(buf), (XnUInt32)(sizeof(buf) - strlen(buf)), &chars, "%s - Frame %4u, Timestamp %.3f", "Color", pImageMD->getFrameIndex(), (double)pImageMD->getTimestamp()/dTimestampDivider); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1307:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xnOSStrFormat(buf + strlen(buf), (XnUInt32)(sizeof(buf) - strlen(buf)), &chars, "%s - Frame %4u, Timestamp %.3f", "Color", pImageMD->getFrameIndex(), (double)pImageMD->getTimestamp()/dTimestampDivider); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1318: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). xnOSStrFormat(buf + strlen(buf), (XnUInt32)(sizeof(buf) - strlen(buf)), &chars, "%s - Frame %4u, Timestamp %.3f", "IR", pIRMD->getFrameIndex(), (double)pIRMD->getTimestamp()/dTimestampDivider); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Draw.cpp:1318:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xnOSStrFormat(buf + strlen(buf), (XnUInt32)(sizeof(buf) - strlen(buf)), &chars, "%s - Frame %4u, Timestamp %.3f", "IR", pIRMD->getFrameIndex(), (double)pIRMD->getTimestamp()/dTimestampDivider); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Keyboard.cpp:151: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). int len = (int)strlen(g_strUserInput); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Keyboard.cpp:219:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_userInputStartPos = (int)strlen(message); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:100:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Left]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:103:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Right]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:106:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Up]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:109:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Down]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:121: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). strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Esc]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:123: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). strcat(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [Space]"); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/Menu.cpp:125:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(g_MenuEntries[g_MenuBuilder.nCurrMenuItem].csName + strlen(csName), " [ %c ]", (char)key); data/openni2-2.2.0.33+dfsg/Source/Tools/NiViewer/NiViewer.cpp:94:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define _getch() getchar() data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:80:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *padExtName = (char*)malloc(strlen(extName) + 2); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:81:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcpy(padExtName, extName), " "); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:160:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sysExtsLen = strlen(extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:170: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). winsysExtsLen = strlen(winsys_extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:177:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). winsysExtsLen = strlen (winsys_extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:194: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). reqExtsLen = strlen(reqExts); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:197:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (reqExtsLen > strlen(unsupportedExts)) { data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:219:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(unsupportedExts, " "); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_extensions.h:273: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). terminator = where + strlen(extension); data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_obs.h:294: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_obs.h:419: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_obs.h:531: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/GL/glh/glh_obs.h:616: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jerror.h:232:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ data/openni2-2.2.0.33+dfsg/ThirdParty/LibJPEG/jerror.h:288:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2155:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). NULL : CloneString(c_str, strlen(c_str)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2165: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). const int length = strlen(ansi); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2810:34: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). num_chars = static_cast<int>(wcslen(str)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2975:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t this_len = strlen(c_str()); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2976:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t suffix_len = strlen(suffix); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2988:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t this_len = strlen(c_str()); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:2989:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t suffix_len = strlen(suffix); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:4517: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). segment = next_segment + strlen("]]>"); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:4746: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). result.reserve(strlen(str) + 1); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:5851:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t prefix_len = strlen(prefix); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:7952: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). const size_t full_regex_len = strlen(regex) + 10; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8206: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). const size_t len = strlen(regex); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8854:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PrintCharsAsStringTo(s, strlen(s), os); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gmock-gtest-all.cc:8871:33: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PrintWideCharsAsStringTo(s, wcslen(s), os); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:2672:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dest, src, n); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:2694:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return static_cast<int>(read(fd, buf, count)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/Testing/gtest/gtest.h:3050: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). ConstructNonNull(a_c_str, strlen(a_c_str)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnString.h:44: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). Initialize(str, (XnUInt32)(strlen(str)+1)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnString.h:91:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). XnUInt32 Size() const {return (XnUInt32)(strlen(m_str));} data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnString.h:118:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(newData, m_str, m_capacity); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Include/XnString.h:144:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(m_str, str, maxCapacity); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxDebug.cpp:60:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(astrFrames[i], pstrFrames[i], nMaxNameLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp:235:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t nBytesRead = read(File, pBuffer, *pnBufferSize); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxFiles.cpp:597: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(strResult) >= nBufferSize) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxKeyboard.cpp:54:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getchar(); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxKeyboard.cpp:73:17: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (XnChar)getchar(); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxMemory.cpp:51:12: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. pResult = memalign(nAlignment, nAllocSize); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:111: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). nOutStringLength = strlen(cpPrefixString) + strlen(cpDestString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:111:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nOutStringLength = strlen(cpPrefixString) + strlen(cpDestString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:123:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpTempBuffer, cpPrefixString, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:124:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpTempBuffer, cpDestString, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:127:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (cpDestString, cpTempBuffer, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:143:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cpSrcString) + strlen(cpDestString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:143:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cpSrcString) + strlen(cpDestString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:149:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpDestString, cpSrcString, nDestLength - strlen(cpDestString)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:149:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat (cpDestString, cpSrcString, nDestLength - strlen(cpDestString)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:162: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(cpSrcString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:168:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (cpDestString, cpSrcString, nDestLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:177: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). return strlen(cpString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:193:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cpDestString, cpSrcString, nCopyLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxStrings.cpp:212:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nStrLen = strlen(cpString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxTime.cpp:89:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(nMilliseconds*1000); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:422:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(strString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:500:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int status = read (pDevice->deviceFD, &status, 0); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:588:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = read(pDevice->deviceFD, &event, sizeof(event)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:627:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = read (pDevice->deviceFD, &status, 0); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSBDevice.cpp:931:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int status = read(pDevice->deviceFD, pDevice->pControlBuffer, length); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Memory.cpp:39:9: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. return memalign(nAlignment, nAllocSize); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:112: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). nOutStringLength = strlen(cpPrefixString) + strlen(cpDestString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:112:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nOutStringLength = strlen(cpPrefixString) + strlen(cpDestString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:124:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpTempBuffer, cpPrefixString, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:125:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpTempBuffer, cpDestString, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:128:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (cpDestString, cpTempBuffer, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:144: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(cpSrcString) + strlen(cpDestString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:144:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cpSrcString) + strlen(cpDestString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:150:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpDestString, cpSrcString, nDestLength - strlen(cpDestString)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:150:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat (cpDestString, cpSrcString, nDestLength - strlen(cpDestString)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:163: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(cpSrcString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:169:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (cpDestString, cpSrcString, nDestLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:188:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (cpDestString, cpSrcString, nCopyLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/PS3/XnPS3Strings.cpp:207:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nStrLen = strlen(cpString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:188: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). sprintf(csName+strlen(csName), " Model: %d Family: %d Stepping: %d", nModel, nFamily, nSteppingID); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32OS.cpp:210:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(pOSInfo->csOSName, " "); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:104:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nOutStringLength = strlen(cpPrefixString) + strlen(cpDestString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:104:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nOutStringLength = strlen(cpPrefixString) + strlen(cpDestString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:116:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpTempBuffer, cpPrefixString, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:117:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpTempBuffer, cpDestString, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:120:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (cpDestString, cpTempBuffer, nOutStringLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:136: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(cpSrcString) + strlen(cpDestString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:136:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(cpSrcString) + strlen(cpDestString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:142:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (cpDestString, cpSrcString, nDestLength - strlen(cpDestString)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:142:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat (cpDestString, cpSrcString, nDestLength - strlen(cpDestString)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:155: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(cpSrcString) >= nDestLength) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:161:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (cpDestString, cpSrcString, nDestLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:170: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). return (XnUInt32)strlen(cpString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:186:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cpDestString, cpSrcString, nCopyLength); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/Win32/XnWin32Strings.cpp:205:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nStrLen = strlen(cpString); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnDump.cpp:321:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xnOSWriteFile(pDump->hFile, csHeader, (XnUInt32)strlen(csHeader)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:220:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pSection->csName + nChar, csSectionName, MAX_SECTION_NAME); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:222:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(pSection->csName) > g_ProfilingData.nMaxSectionName) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnProfiling.cpp:223: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). g_ProfilingData.nMaxSectionName = strlen(pSection->csName); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source/XnStrings.cpp:25: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). XnSizeT nLen = strlen(strSource); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:80:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *padExtName = (char*)malloc(strlen(extName) + 2); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:81:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcpy(padExtName, extName), " "); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:160:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sysExtsLen = strlen(extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:170: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). winsysExtsLen = strlen(winsys_extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:177:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). winsysExtsLen = strlen (winsys_extensions); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:194: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). reqExtsLen = strlen(reqExts); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:197:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (reqExtsLen > strlen(unsupportedExts)) { data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:219:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(unsupportedExts, " "); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_extensions.h:273: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). terminator = where + strlen(extension); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_obs.h:294: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_obs.h:419: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_obs.h:531: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/GL/glh/glh_obs.h:616: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). { load((GLuint)strlen(prog_text), prog_text); } data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.c:647:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (delay); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.c:1647:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read (hpriv->fds[0], &message, sizeof (message)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.c:1670:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (hpriv->fds[0], &itransfer, sizeof (itransfer)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.c:1671:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (hpriv->fds[0], &kresult, sizeof (IOReturn)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/darwin_usb.c:1672:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (hpriv->fds[0], &io_size, sizeof (UInt32)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:500:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read(fd, buffer, DEVICE_DESC_LENGTH);; data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:549:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read(fd, tmp, sizeof(tmp)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:590:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read(fd, tmp, sizeof(tmp)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:658:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read(fd, tmp, sizeof(tmp)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:685:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read(fd, buffer + sizeof(tmp), len - sizeof(tmp)); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:739:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read(fd, buffer, len); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:870:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). priv->sysfs_dir = malloc(strlen(sysfs_dir) + 1); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/linux_usbfs.c:958:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read(fd, dev_buf, DEVICE_DESC_LENGTH); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:526:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(hpriv->pipe[0], &itransfer, sizeof(itransfer)) < 0) { data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/openbsd_usb.c:716:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nr = read(fd, transfer->buffer, transfer->length); data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/poll_posix.h:5:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define usbi_read read data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:65:48: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. #define safe_strncat(dst, dst_max, src, count) strncat(dst, src, safe_min(count, dst_max - safe_strlen(dst) - 1)) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:69: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). #define safe_strlen(str) ((str==NULL)?0:strlen(str)) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:72: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). #define wchar_to_utf8_ms(wstr, str, strlen) WideCharToMultiByte(CP_UTF8, 0, wstr, -1, str, strlen, NULL, NULL) data/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/ThirdParty/libusb-1.0.9-Android/libusb/os/windows_usb.h:72:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define wchar_to_utf8_ms(wstr, str, strlen) WideCharToMultiByte(CP_UTF8, 0, wstr, -1, str, strlen, NULL, NULL) ANALYSIS SUMMARY: Hits = 526 Lines analyzed = 235740 in approximately 5.64 seconds (41833 lines/second) Physical Source Lines of Code (SLOC) = 154563 Hits@level = [0] 747 [1] 173 [2] 254 [3] 30 [4] 66 [5] 3 Hits@level+ = [0+] 1273 [1+] 526 [2+] 353 [3+] 99 [4+] 69 [5+] 3 Hits/KSLOC@level+ = [0+] 8.23612 [1+] 3.40314 [2+] 2.28386 [3+] 0.640516 [4+] 0.44642 [5+] 0.0194096 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.