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/android-platform-frameworks-base-8.1.0+r23/apct-tests/perftests/core/jni/SystemPerfTest.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/scan.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/inspect.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/create.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/backup/backup.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/interrupter/interrupter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/interrupter/interrupter.c
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/webview_zygote/webview_zygote.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/app_process/app_main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incident/incident_sections.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incident/main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/protobuf.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Reporter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/IncidentService.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/FdBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/IncidentService.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Section.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/report_directory.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/section_list.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Section.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/protobuf.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/FdBuffer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Reporter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/section_list.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/report_directory.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/screencap/screencap.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/iot/iotbootanimation_main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/iot/BootAction.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/iot/BootAction.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimationUtil.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/audioplay.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/audioplay.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimationUtil.h
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/bootanimation_main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_google_android_gles_jni_EGLImpl.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputQueue.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SensorManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_location_ActivityRecognitionHardware.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_VelocityTracker.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_UsbDevice.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBinder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES30.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_FuseAppLoop.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwRemoteBinder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteCommon.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputDevice.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_SurfaceControl.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES31Ext.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_NetUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_Activity.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_DisplayEventReceiver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputChannel.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioTrack.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Trace.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_hardware_HardwareBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_content_res_Configuration.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_app_NativeActivity.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_util_AssetManager.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/Log.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_view_Surface.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_graphics_SurfaceTexture.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_view_InputQueue.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_hardware_camera2_CameraMetadata.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/android_view_SurfaceSession.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/include/android_runtime/AndroidRuntime.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_XmlBlock.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_backup_FullBackup.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_KeyCharacterMap.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/BindTest.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_LocalSocketImpl.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_text_AndroidBidi.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputEventSender.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputEventReceiver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_KeyCharacterMap.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_Surface.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES31.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/opengl/util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/opengl/poly.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/opengl/poly_clip.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GIFMovie.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Camera.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/RtlProperties.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/BitmapFactory.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/YuvToJpegEncoder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/YuvToJpegEncoder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/NinePatchPeeker.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Region.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Region.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/FontFamily.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Picture.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/ColorFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Movie.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Movie.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/NinePatchPeeker.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/BitmapRegionDecoder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/PathMeasure.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/NinePatch.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/BitmapFactory.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/HarfBuzzNGFaceSkia.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Matrix.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Paint.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Shader.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Graphics.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GraphicBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/HarfBuzzNGFaceSkia.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Utils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/FontUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Path.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/DrawFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Typeface.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GraphicBuffer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GraphicsJNI.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/MaskFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/FontUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/MovieImpl.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/SurfaceTexture.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/PathEffect.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Utils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Picture.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Interpolator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/CanvasProperty.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Matrix.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/pdf/PdfEditor.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/pdf/PdfUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/pdf/PdfDocument.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/pdf/PdfUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/pdf/PdfRenderer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioRecord.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_MessageQueue.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_EGL14.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_backup_FileBackupHelperBase.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_ClassLoaderFactory.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_ThreadedRenderer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_nio_utils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Log.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_PathParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_ApplicationLoaders.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_KeyEvent.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteGlobal.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_RemoteDisplay.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_google_android_gles_jni_GLImpl.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioErrors.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteCommon.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBinder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SerialPort.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_MotionEvent.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_graphics_drawable_VectorDrawable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_UsbRequest.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_util_VirtualRefBasePtr.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_net_NetworkStatsFactory.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_backup_BackupDataOutput.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/GraphicsExternGlue.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_graphics_drawable_AnimatedVectorDrawable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_legacy_PerfMeasurement.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwParcel.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES10.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/GraphicsRegisterGlue.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_PointerIcon.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/hwbinder/EphemeralStorage.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/hwbinder/EphemeralStorage.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_VintfObject.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_display_DisplayViewport.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/fd_utils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_CameraMetadata.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputChannel.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_backup_BackupDataInput.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_MemoryIntArray.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_content_res_Configuration.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SELinux.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_RenderNodeAnimator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_backup_BackupHelperDispatcher.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_MotionEvent.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_text_AndroidCharacter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwParcel.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_MemoryFile.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_GraphicsEnvironment.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_UsbDeviceConnection.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_jar_StrictJarFile.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_EGLExt.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteDebug.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_text_StaticLayout.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputDevice.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_NetworkManagementSocketTagger.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_RenderNode.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioSystem.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_Camera.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_ZygoteInit.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_DeviceCallback.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_HardwareBuffer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SharedMemory.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_EventLog.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES11Ext.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_ToneGenerator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_PointerIcon.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Log.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_KeyEvent.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_Zygote.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES20.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_UEventObserver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_DeviceCallback.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_TextureView.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_DisplayListCanvas.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_content_res_ObbScanner.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES32.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_nio_utils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/fd_utils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_graphics_Picture.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_display_DisplayViewport.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_StringBlock.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteConnection.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioFormat.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES10Ext.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_NativeActivity.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_VintfRuntimeInfo.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/core_jni_helpers.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SystemClock.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES11.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_MessageQueue.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_HardwareLayer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioTrack.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_ddm_DdmHandleNativeHeap.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_FileObserver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_SurfaceSession.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_JetPlayer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwRemoteBinder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_graphics_Canvas.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_seccomp.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_animation_PropertyValuesHolder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SystemProperties.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/drm/jni/android_drm_DrmManagerClient.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/include/storage/IObbActionListener.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/include/storage/IMountShutdownObserver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/include/storage/IMountService.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/include/storage/IMountServiceListener.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/IObbActionListener.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/IMountShutdownObserver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/IMountServiceListener.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/storage/IMountService.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupData.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AttributeResolution.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/TypeWrappers.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/AssetManager.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/BackupHelpers.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/Chunk.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/LoadedArsc.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/Asset.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ApkAssets.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/misc.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/DisplayEventDispatcher.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/StringPiece.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/AttributeResolution.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ObbFile.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ByteBucketArray.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceTypes.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/Util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/LocaleData.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/CursorWindow.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/AssetDir.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/AttributeFinder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/StreamingZipInflater.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/AssetManager2.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ZipFileRO.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ZipUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/misc.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager2.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleDataTables.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/StreamingZipInflater.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ApkAssets.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/CursorWindow.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LoadedArsc.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ChunkIterator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleData.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetDir.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipFileRO.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/DisplayEventDispatcher.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/TypeWrappers.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/input/PointerController.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/input/SpriteController.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/input/PointerController.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/input/SpriteController.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/incident/include/android/os/IncidentReportArgs.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/incident/src/IncidentReportArgs.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameBuilder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FboCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Caches.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlopBuilder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/OpenGLReadback.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Snapshot.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameInfoVisualizer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProgramCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DeviceInfo.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/LayerUpdateQueue.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PathParser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/TextDropShadowCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/BakedOpDispatcher.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/AnimationContext.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/TextureCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PathCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Rect.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FboCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Animator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvasProxy.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/AnimatorManager.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProfileDataContainer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PathCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ResourceCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RecordingCanvas.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SpotShadow.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/JankTracker.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/LayerUpdateQueue.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Readback.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DisplayList.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlFunctorLifecycleListener.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Extensions.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DeferredLayerUpdater.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameBuilder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/BakedOpState.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/IProfileRenderer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PropertyValuesHolder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Snapshot.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/TessellationCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameMetricsObserver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/OpDumper.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PropertyValuesHolder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PathTessellator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/OpDumper.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PatchCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/AmbientShadow.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameInfoVisualizer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/LayerBuilder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/JankTracker.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DeviceInfo.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/CanvasProperty.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Vertex.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/TextureCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/AnimatorManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RenderBufferCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaLayer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaRecordingCanvas.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/GLFunctorDrawable.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/LayerDrawable.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaDisplayList.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaPipeline.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaVulkanPipeline.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/LayerDrawable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/RenderNodeDrawable.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaRecordingCanvas.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/AnimatedDrawables.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaDisplayList.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/VectorDrawableAtlas.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaVulkanPipeline.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaProfileRenderer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/RenderNodeDrawable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaOpenGLReadback.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/DumpOpsCanvas.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/ReorderBarrierDrawables.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaPipeline.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaProfileRenderer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProfileRenderer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Image.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/BakedOpDispatcher.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Vector.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RenderProperties.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaShader.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Program.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/VkLayer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/OpenGLReadback.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/AmbientShadow.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/VectorDrawable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Interpolator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvas.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FontRenderer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Patch.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RevealClip.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DamageAccumulator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/EglManager.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CanvasContext.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/RenderThread.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/VulkanManager.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/EglManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CacheManager.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CacheManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/OpenGLPipeline.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/DrawFrameTask.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/Frame.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/RenderThread.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/Frame.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/DrawFrameTask.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/RenderProxy.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/TimeLord.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/RenderTask.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/OpenGLPipeline.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/RenderTask.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/TimeLord.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/RenderProxy.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CanvasContext.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/IRenderPipeline.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/VulkanManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RenderBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Matrix.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/BakedOpRenderer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/Future.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/TaskProcessor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/TaskManager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/TaskManager.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/Barrier.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/Task.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/Signal.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProfileRenderer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ResourceCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FontRenderer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GammaFontRenderer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PixelBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Texture.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameMetricsReporter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Patch.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/BakedOpState.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FloatColor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/NinePatchUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Outline.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SpotShadow.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PathParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RenderNode.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RecordingCanvas.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/service/GraphicsStatsService.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/service/GraphicsStatsService.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/CanvasState.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Extensions.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/BakedOpRenderer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ClipArea.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/nullegl.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/wrap_gles.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/NullGlesDriver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/GlesErrorCheckWrapper.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/NullGlesDriver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/FatalBaseDriver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/ScopedReplaceDriver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/GlesErrorCheckWrapper.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/MockGlesDriver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/DefaultGlesDriver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/gles_redefine.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/GlesDriver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/FatalBaseDriver.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/DefaultGlesDriver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/wrap_gles.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/gles_undefine.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/GlesDriver.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GradientCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Layer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/TestWindowContext.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/RingBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/TimeUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/Blur.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/Color.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/StringUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/TestWindowContext.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/FatVector.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/Pair.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/MathUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/LinearAllocator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/Timing.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/Macros.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/GLUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/PaintUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/TraceUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/Color.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/StringUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/GLUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/VectorDrawableUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/Blur.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/LinearAllocator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/VectorDrawableUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Program.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/TessellationCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Glop.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/VectorDrawable.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProfileData.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GpuMemoryTracker.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/TreeInfo.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ClipArea.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DisplayList.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProgramCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProfileDataContainer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/IContextFactory.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/LayerBuilder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/UvMapper.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/CacheTexture.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/Font.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/FontCacheHistoryTracker.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/FontCacheHistoryTracker.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/CachedGlyphInfo.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/FontUtil.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/Font.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/font/CacheTexture.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameInfo.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GpuMemoryTracker.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvasProxy.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/VkLayer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Animator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/OffscreenBufferPool.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/Scissor.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/Stencil.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/TextureState.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/MeshState.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/TextureState.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/Blend.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/OffscreenBufferPool.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/RenderState.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/MeshState.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/PixelBufferState.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/Scissor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/RenderState.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/Stencil.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/Blend.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/PixelBufferState.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlLayer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlopBuilder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameInfo.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GammaFontRenderer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Layer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DeferredLayerUpdater.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Texture.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ShadowTessellator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PathTessellator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaShader.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PatchCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/protos/ProtoHelpers.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Image.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/CanvasState.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PropertyValuesAnimatorSet.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/MinikinUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Paint.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Canvas.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Bitmap.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/MinikinSkia.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Typeface.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/MinikinSkia.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Typeface.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/MinikinUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Canvas.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/PaintImpl.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Bitmap.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Caches.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/TextDropShadowCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Debug.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ShadowTessellator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RenderNode.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvas.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RenderProperties.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlLayer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/AnimationContext.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/VertexBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Interpolator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PixelBuffer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/DamageAccumulator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/PropertyValuesAnimatorSet.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Matrix.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RenderBufferCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/ProfileData.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/private/hwui/DrawGlInfo.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GradientCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RecordedOp.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/utils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_clock.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/utils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/LinearTransform.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_packets.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_clock.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_packets.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/diag_thread.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/clock_recovery.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_clock_service.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_clock_service.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_config_service.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_config_service.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/diag_thread.h
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/LinearTransform.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/clock_recovery.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/imageproc/contrast.c
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/imageproc/invert.c
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/imageproc/to_rgba.c
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/imageproc/brightness.c
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/geometry.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/utilities.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/time_util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/geometry.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/vec_types.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/time_util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_frame.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_program.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_init.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_gl_frame.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_shader_program.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_gl_frame.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_gl_environment.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_buffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_vertex_frame.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_buffer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_frame.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_shader_program.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_program.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_vertex_frame.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_gl_environment.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/geometry.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/gl_env.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/gl_buffer_interface.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/native_program.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/gl_frame.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/native_frame.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/native_program.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/statistics.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/time_util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/shader_program.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/gl_env.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/gl_frame.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/geometry.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/value.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/vertex_frame.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/native_frame.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/vertex_frame.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/time_util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/value.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/shader_program.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/statistics.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/base/logging.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/base/utilities.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaExtractor.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_Utils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaCodec.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDrm.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaSync.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaHTTPConnection.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaSync.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaScanner.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDescrambler.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_SyncParams.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_ResampleInputStream.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPool.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/android_media_SoundPool.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPoolThread.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPoolThread.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPool.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaCrypto.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMetricsJNI.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaExtractor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDataSource.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMetadataRetriever.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_ImageWriter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaPlayer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDevice.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaCodecList.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_VolumeShaper.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaHTTPConnection.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMetricsJNI.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaRecorder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/midi/android_media_midi_MidiDevice.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_Utils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMuxer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpServer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDescrambler.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_SyncParams.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaCodec.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_BufferingParams.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_Visualizer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDatabase.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_PlaybackParams.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_ImageReader.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDataSource.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaProfiles.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDrm.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaCrypto.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/native/midi/midi_internal.h
Examining data/android-platform-frameworks-base-8.1.0+r23/media/native/midi/midi.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/media/native/midi/midi.h
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/net.c
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/asset_manager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/sharedmem.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/input.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/configuration.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/native_window_jni.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/storage_manager.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/choreographer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/obb.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/looper.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/sensor.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/native_activity.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/hardware_buffer_jni.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/android/trace.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/graphics/jni/bitmap.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/native/webview/loader/loader.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/rs/jni/android_renderscript_RenderScript.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Rule.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Rule.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/SplitSelector_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Grouper_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/SplitDescription.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Rule_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Grouper.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/TestRules.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/SplitSelector.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/SplitSelector.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/RuleGenerator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Grouper.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Abi.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/SplitDescription.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/RuleGenerator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/Abi.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/TestRules.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/RuleGenerator_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/print.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/adb.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/aapt.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/adb.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/make.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/aapt.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/command.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/print.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/command.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/bit/make.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/streaming_proto/string_utils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/streaming_proto/Errors.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/streaming_proto/Errors.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/streaming_proto/main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/streaming_proto/string_utils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/XMLNode.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceFilter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptXml.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ApkBuilder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Symbol.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/SdkConstants.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/CrunchCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ConfigDescription.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/WorkQueue.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/CacheUpdater.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/OutputSet.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/DirectoryWalker.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/SourcePos.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceIdCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ApkBuilder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/pseudolocalize.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/FileFinder.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptXml.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/FileFinder.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Bundle.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/StringPool.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/CrunchCache.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/WorkQueue.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/IndentPrinter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/pseudolocalize.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Main.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptUtil.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/SourcePos.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptUtil.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/XMLNode.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceIdCache.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/StringPool.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/generic_message.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/generic_message.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/formatter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/incident_section_gen/main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/pbkdf2gen.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/Main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/test/Builders.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/test/Common.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/test/Context.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/test/Builders.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/test/Test.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/test/Common.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Source.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/DominatorTree.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceValues_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/FileInputStream.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/ZipArchive.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/FileSystem.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/File.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/BigBufferStreams.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/StringInputStream.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/File.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/Util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/Data.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/BigBufferInputStream.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/StringInputStream.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/ZipArchive.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/Util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/FileSystem.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/FileInputStream.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/BigBufferOutputStream.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/StringInputStream_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/Io.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/FileInputStream_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceParser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ValueVisitor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceUtils.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceParser_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceUtils_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/unflatten/ResChunkPullParser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/unflatten/ResChunkPullParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/unflatten/BinaryResourceParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/unflatten/BinaryResourceParser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/optimize/ResourceDeduper_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/optimize/VersionCollapser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/optimize/VersionCollapser_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/optimize/VersionCollapser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/optimize/ResourceDeduper.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/optimize/ResourceDeduper.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/SdkConstants.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/process/SymbolTable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/process/SymbolTable.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/process/IResourceTableConsumer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/process/SymbolTable_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Diagnostics.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Flags.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceValues.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Resource.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ManifestClassGenerator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/JavaClassGenerator_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/AnnotationProcessor_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ProguardRules_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ClassDefinition.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/AnnotationProcessor.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ManifestClassGenerator_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/JavaClassGenerator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/JavaClassGenerator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/AnnotationProcessor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ProguardRules.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ManifestClassGenerator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ClassDefinition.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ProguardRules.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/split/TableSplitter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/split/TableSplitter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/split/TableSplitter_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Files.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Maybe_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/BigBuffer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/BigBuffer_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Util_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/BigBuffer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Files.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Files_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/TypeTraits.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Maybe.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/ImmutableMap.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/LoadedApk.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Flags.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ReferenceLinker.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/TableMerger.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/Linkers.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/XmlNamespaceRemover_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ReferenceLinker.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/XmlReferenceLinker.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/XmlCompatVersioner.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/XmlNamespaceRemover.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/PrivateAttributeMover_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ProductFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ReferenceLinker_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/TableMerger.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ProductFilter_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/AutoVersioner.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ManifestFixer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/PrivateAttributeMover.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/XmlReferenceLinker_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/XmlCompatVersioner_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/XmlCompatVersioner.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ManifestFixer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/ManifestFixer_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/AutoVersioner_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/link/TableMerger_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/DominatorTree.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/NameMangler.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/configuration/ConfigurationParser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/configuration/ConfigurationParser_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/configuration/ConfigurationParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/jni/com_android_tools_aapt2_Aapt2Jni.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/jni/ScopedUtfChars.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/jni/aapt2_jni.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/SdkConstants_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Debug.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/StringPool_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/proto/TableProtoSerializer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/proto/TableProtoDeserializer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/proto/ProtoHelpers.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/proto/TableProtoSerializer_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/proto/ProtoHelpers.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/proto/ProtoSerialize.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/StringPool.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceTable_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceValues.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (sorted_a.begin(), sorted_a.end(), sorted_b.begin(),
                    [](const Symbol* a, const Symbol* b) -> bool {
                      return a->symbol.Equals(&b->symbol) && a->value == b->valu
Parsing failed to find end of parameter list; semicolon terminated it in (sorted_a.begin(), sorted_a.end(), sorted_b.begin(),
                    [](const Entry* a, const Entry* b) -> bool {
                      return a->key.Equals(&b->key) && a->value->Equals(b->value.g
Parsing failed to find end of parameter list; semicolon terminated it in (elements.begin(), elements.end(), other->elements.begin(),
                    [](const std::unique_ptr<Item>& a, const std::unique_ptr<Item>& b) -> bool {
                      return a->Equals(b.ge
Parsing failed to find end of parameter list; semicolon terminated it in (entries.begin(), entries.end(), other->entries.begin(),
                    [](const Reference& a, const Reference& b) -> bool {
                      return a.Equals(&b);
                    });
}


Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ValueVisitor_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/LoadedApk.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceUtils.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Resource_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlDom.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlActionExecutor.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlUtil_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlPullParser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlUtil.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlPullParser_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlUtil.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlActionExecutor_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlActionExecutor.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlDom.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlPullParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/xml/XmlDom_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/NameMangler_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/InlineXmlFormatParser.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PseudolocaleGenerator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PngChunkFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PngCrunch.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/IdAssigner.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PseudolocaleGenerator_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/XmlIdCollector.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/IdAssigner.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/InlineXmlFormatParser.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/InlineXmlFormatParser_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/XmlIdCollector.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Pseudolocalizer.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Pseudolocalizer_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Pseudolocalizer.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Image.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PseudolocaleGenerator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/IdAssigner_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/XmlIdCollector_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/SdkConstants.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/AppInfo.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/text/Unicode.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/text/Unicode_data.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/text/Unicode.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/text/Utf8Iterator.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/text/Unicode_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/text/Utf8Iterator.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/text/Utf8Iterator_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/DominatorTree_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Link.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Dump.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Optimize.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Util.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Util_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Util.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Diff.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/cmd/Compile.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Debug.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Resource.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceTable.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceTable.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/XmlFlattener_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/ResourceTypeExtensions.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/Archive.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/ChunkWriter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/TableFlattener.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/Archive.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/TableFlattener_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/XmlFlattener.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/TableFlattener.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/XmlFlattener.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/AbiFilter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/ConfigFilter_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/ConfigFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/AbiFilter.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/ConfigFilter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/AbiFilter_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/Filter.h
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/Filter_test.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/StringPool.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/tools/validatekeymaps/Main.cpp
Examining data/android-platform-frameworks-base-8.1.0+r23/vr/dvr_library_loader.cpp

FINAL RESULTS:

data/android-platform-frameworks-base-8.1.0+r23/cmds/app_process/app_main.cpp:171:14:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    result = chown(dalvikCacheDir, AID_ROOT, AID_ROOT);
data/android-platform-frameworks-base-8.1.0+r23/cmds/app_process/app_main.cpp:174:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    result = chmod(dalvikCacheDir, 0711);
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.cpp:245:13:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
            strncat(buf, argv[i], sizeof(buf) - 1);
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.cpp:246:13:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
            strncat(buf, " ", sizeof(buf) - 1);
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/scan.cpp:71:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        if (chmod(filename, mode) == -1) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Reporter.cpp:294:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(filename, 0660);
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Reporter.cpp:296:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    if (chown(filename, AID_SYSTEM, AID_SYSTEM)) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/report_directory.cpp:68:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            if (chmod(dir, 0770)) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/report_directory.cpp:75:17:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            if (chown(dir, AID_SYSTEM, AID_SYSTEM)) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:912:9:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
        strncat(localeOption, locale.c_str(), PROPERTY_VALUE_MAX);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:282:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(localTmpFileName, mode) < 0) {
data/android-platform-frameworks-base-8.1.0+r23/native/webview/loader/loader.cpp:98:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
      chmod(relro_tmp, S_IRUSR | S_IRGRP | S_IROTH) != 0 ||
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:312:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        (access(SYSTEM_ENCRYPTED_BOOTANIMATION_FILE, R_OK) == 0)) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:321:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(f, R_OK) == 0) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:651:20:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        } else if (sscanf(l, " %c %d %d %s #%6s %16s %16s",
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.cpp:106:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        return access(path, R_OK | X_OK) == 0;
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.cpp:111:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        return access(path, W_OK) == 0;
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.cpp:116:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        return access(path, R_OK) == 0;
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/inspect.cpp:120:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stderr, fmt, ap);
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/inspect.cpp:133:9:  [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, ap);
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/inspect.cpp:143:9:  [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, ap);
data/android-platform-frameworks-base-8.1.0+r23/cmds/screencap/screencap.cpp:109:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int result = system(cmd.string());
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:514:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, runtimeArg);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:541:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, compilerArg);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:570:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, runtimeArg);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:888:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dex2oat_isa_variant_key, "dalvik.vm.isa.%s.variant", instruction_set);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:894:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dex2oat_isa_features_key, "dalvik.vm.isa.%s.features", instruction_set);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Graphics.cpp:63:65:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                                       int minLength, JNIAccess access)
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Graphics.cpp:102:65:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                                       int minLength, JNIAccess access)
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:262:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buf, sizeof(buf), "%" PRId64, value);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:351:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buf, sizeof(buf), "%" PRId64, value);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteConnection.cpp:315: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(message, query);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES30.cpp:1794:77:  [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.
  (JNIEnv *_env, jobject _this, jint target, jint offset, jint length, jint access) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES30.cpp:1796:63:  [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.
            (GLintptr)offset, (GLsizeiptr)length, (GLbitfield)access);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES31.cpp:3241:105:  [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.
  (JNIEnv *_env, jobject _this, jint unit, jint texture, jint level, jboolean layered, jint layer, jint access, jint format) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_GLES31.cpp:3248:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        (GLenum)access,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:1017:17:  [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(fp, " %016" PRIxPTR, backtrace[bt]);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:1019:17:  [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(fp, " %08" PRIxPTR, backtrace[bt]);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp:194:21:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                    execv(AssetManager::IDMAP_BIN, (char* const*)argv);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:834:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buf, "Restoring bad calling ident: 0x%" PRIx64, token);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:560:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(text, "%" PRId32, pid);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:193:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
            if (sscanf(pos, "%" PRIx64, &rawTag) != 1) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:210:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(pos, "%u %u %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64,
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ApkAssets.cpp:33:80:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
std::unique_ptr<const ApkAssets> ApkAssets::Load(const std::string& path, bool system) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ApkAssets.cpp:34:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  return ApkAssets::LoadImpl(path, system, false /*load_as_shared_library*/);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ApkAssets.cpp:38:70:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                                                bool system) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ApkAssets.cpp:39:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  return ApkAssets::LoadImpl(path, system, true /*load_as_shared_library*/);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ApkAssets.cpp:42:84:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
std::unique_ptr<const ApkAssets> ApkAssets::LoadImpl(const std::string& path, bool system,
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ApkAssets.cpp:77:67:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                       loaded_apk->resources_asset_->getLength(), system, load_as_shared_library);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:254:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(targetPath.string(), R_OK) != 0) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:258:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(idmapPath.string(), R_OK) != 0) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:262:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(overlayPath.string(), R_OK) != 0) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:72:37:  [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 LOGP(f, x...) if (kIsDebug) printf(f "\n", x)
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:911:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("rm -r " SCRATCH_DIR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:970:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("rm -r " SCRATCH_DIR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1171:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("rm -r " SCRATCH_DIR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1276:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("rm -r " SCRATCH_DIR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1356:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("rm -r " SCRATCH_DIR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1487:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("rm -r " SCRATCH_DIR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1535:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    system("rm -r " SCRATCH_DIR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LoadedArsc.cpp:687:87:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
std::unique_ptr<const LoadedArsc> LoadedArsc::Load(const void* data, size_t len, bool system,
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LoadedArsc.cpp:693:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  loaded_arsc->system_ = system;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ApkAssets.h:52:82:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  static std::unique_ptr<const ApkAssets> LoadImpl(const std::string& path, bool system,
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:283:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    res = snprintf(buffer, sizeof(buffer), a, b); \
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/NullGlesDriver.h:158:99:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    virtual void* glMapBufferRange_(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) override {
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaPipeline.cpp:215:46:  [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.
        recordingPicture = prop[0] != '0' && access(prop, F_OK) != 0;
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/TraceUtils.h:45:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(buf, BUFFER_SIZE, fmt, ap);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMetadataRetriever.cpp:65:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(msg, "%s: status = 0x%X", message, opStatus);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaPlayer.cpp:213:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(msg, "%s: status=0x%X", message, opStatus);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaRecorder.cpp:391:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(params, "max-filesize=%" PRId64, max_filesize_bytes);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/IndentPrinter.h:24:9:  [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(mStream, fmt, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/IndentPrinter.h:32:9:  [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(mStream, fmt, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2525:17:  [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(fp,
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2689:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(fp, id_format,
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:2485: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.
        retval = vsnprintf(buf, sizeof(buf), fmt, ap);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/SourcePos.cpp:134:12:  [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.
SourcePos::printf(const char* fmt, ...) const
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/SourcePos.h:22:10:  [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.
    void printf(const char* fmt, ...) const;
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:128:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char*) mCDE.mFileName, fileName);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:133:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char*) mCDE.mFileComment, comment);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:233:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char*) mLFH.mFileName, (const char*) mCDE.mFileName);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:715:13:  [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*)mFileName, (char*)src.mFileName);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:722:13:  [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*)mFileComment, (char*)src.mFileComment);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:78:23:  [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.
        newArchive = (access(zipFileName, F_OK) != 0);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ManifestClassGenerator_test.cpp:78:26:  [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.
        <!-- Required to access the internet.
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/java/ManifestClassGenerator_test.cpp:83:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        <!-- This is a private permission for system only!
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/command.cpp:91: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(*row, it->first.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/command.cpp:93: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(*row, it->second.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/print.cpp:65:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stdout, format, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/print.cpp:97:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/print.cpp:111:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/print.cpp:129:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(buf, size, format, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/print.cpp:139:9:  [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(stdout, format, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/main.cpp:356:13:  [4] (shell) execvp:
  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.
            execvp(args[0], (char*const*)args);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/main.cpp:530:13:  [4] (shell) execvp:
  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.
            execvp(args[0], (char*const*)args);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.cpp:59:6:  [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.
Out::printf(const char* format, ...)
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.cpp:71:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(mBuf, mBufSize, format, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.cpp:76:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(mBuf, mBufSize, format, args);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.h:28:10:  [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.
    void printf(const char* format, ...);
data/android-platform-frameworks-base-8.1.0+r23/tools/streaming_proto/Errors.cpp:54:24:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int message_size = vsnprintf((char*)NULL, 0, format, args2);
data/android-platform-frameworks-base-8.1.0+r23/tools/streaming_proto/Errors.cpp:58:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buffer, message_size, format, args);
data/android-platform-frameworks-base-8.1.0+r23/cmds/app_process/app_main.cpp:155:31:  [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* androidRoot = getenv("ANDROID_DATA");
data/android-platform-frameworks-base-8.1.0+r23/cmds/incident/main.cpp:144:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt(argc, argv, "bhd")) != -1) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/screencap/screencap.cpp:123:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "phd:")) != -1) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:1053: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* rootDir = getenv("ANDROID_ROOT");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBinder.cpp:362:40:  [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* testingOverride = std::getenv("TREBLE_TESTING_OVERRIDE");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1112:31:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if (sample_percent < (random() % 100 + 1)) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_ThreadedRenderer.cpp:69:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
static JNIEnv* getenv(JavaVM* vm) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_ThreadedRenderer.cpp:141:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        JNIEnv* env = getenv(vm);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_ThreadedRenderer.cpp:477:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        JNIEnv* env = getenv(mVm);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_ThreadedRenderer.cpp:499:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        JNIEnv* env = getenv(mVm);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_ThreadedRenderer.cpp:568:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    JNIEnv* env = getenv(mVm);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_Zygote.cpp:803:31:  [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* target_base = getenv("EMULATED_STORAGE_TARGET");
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:84:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* root = getenv("ANDROID_DATA");
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:322:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* root = getenv("ANDROID_ROOT");
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:542:36:  [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* data = getenv("ANDROID_DATA");
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:572:46:  [3] (random) lrand48:
  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.
        mTimelineID = (static_cast<uint64_t>(lrand48()) << 32)
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:573:46:  [3] (random) lrand48:
  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.
                    |  static_cast<uint64_t>(lrand48());
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:1231:13:  [3] (random) lrand48:
  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.
    usleep((lrand48() % 100) * 1000);
data/android-platform-frameworks-base-8.1.0+r23/native/android/storage_manager.cpp:132:13:  [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 (realpath(rawPath, canonicalPath) == NULL) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:87:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        p = getenv("ANDROID_AAPT_IGNORE");
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/command.cpp:193:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char* pathEnv = strdup(getenv("PATH"));
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/main.cpp:535:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* value = getenv(name);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/main.cpp:555: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* out_dir = getenv("OUT_DIR");
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/main.cpp:557:35:  [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* common_base = getenv("OUT_DIR_COMMON_BASE");
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/main.cpp:445:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt(argc, argv, "bhi:o:s:tw")) != -1) {
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/Main.cpp:194:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, argv, ADD_OPTS, longopts, &option_index)) != -1) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/app_process/app_main.cpp:158: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 dalvikCacheDir[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/app_process/app_main.cpp:327: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 prop[PROP_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/backup/backup.cpp:57:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:138:27:  [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).
    Asset* asset = assets.open(name, Asset::ACCESS_BUFFER);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:305: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 decrypt[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:308:31:  [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).
    bool encryptedAnimation = atoi(decrypt) != 0 ||
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:422:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:424:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int exitnow = atoi(value);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:479:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 bool parseColor(const char str[7], float color[3]) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:493: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(color, tmpColor, sizeof(tmpColor));
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:604: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 timeBuff[TIME_LENGTH];
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:640: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 path[ANIM_ENTRY_NAME_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:641: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 color[7] = "000000"; // default to black if unspecified
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:642: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 clockPos1[TEXT_POS_LEN_MAX + 1] = "";
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:643: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 clockPos2[TEXT_POS_LEN_MAX + 1] = "";
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:699:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[ANIM_ENTRY_NAME_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:999:33:  [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).
    ZipFileRO *zip = ZipFileRO::open(fn);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:1041:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* file = fopen(LAST_TIME_CHANGED_FILE_PATH, "r");
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:1094:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[BUFF_LEN] __attribute__ ((aligned(__alignof__(struct inotify_event))));;
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimationUtil.cpp:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimationUtil.cpp:31:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (atoi(value) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimationUtil.cpp:36:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(value) > 0;
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/bootanimation_main.cpp:88: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 bootreason[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp:92:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
Device* Device::open(int32_t id, const char* name, int32_t vid, int32_t pid,
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp:96: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).
    int fd = ::open(UHID_PATH, O_RDWR | O_CLOEXEC);
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp:163: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(&ev.u.input.data, report, reportSize);
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp:215:37:  [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).
    uhid::Device* d = uhid::Device::open(
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.h:40: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).
    static Device* open(int32_t id, const char* name, int32_t vid, int32_t pid,
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/create.cpp:18:51:  [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).
        std::unique_ptr<ZipFileRO> zip(ZipFileRO::open(zip_path));
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/create.cpp:35:37:  [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 = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644));
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/create.cpp:87: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 buf[N];
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/create.cpp:143:43:  [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 idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY));
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/idmap.cpp:242: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 buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/inspect.cpp:43:46:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/inspect.cpp:109:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(b, buf_ + pos_, PATH_LENGTH);
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/inspect.cpp:170: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 path[PATH_LENGTH];
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/scan.cpp:43: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* fout = fopen(filename, "a");
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/scan.cpp:91: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 propBuf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/scan.cpp:187:51:  [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).
        std::unique_ptr<ZipFileRO> zip(ZipFileRO::open(path));
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/scan.cpp:251:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char overlay_apk_path[PATH_MAX + 1];
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Reporter.cpp:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Reporter.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).
    *fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0660);
data/android-platform-frameworks-base-8.1.0+r23/cmds/screencap/screencap.cpp:129:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                displayId = atoi(optarg);
data/android-platform-frameworks-base-8.1.0+r23/cmds/screencap/screencap.cpp:146: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).
        fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0664);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:602: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 propBuf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:603: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 stackTraceFileBuf[sizeof("-Xstacktracefile:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:604: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 jniOptsBuf[sizeof("-Xjniopts:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:605:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char heapstartsizeOptsBuf[sizeof("-Xms")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:606: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 heapsizeOptsBuf[sizeof("-Xmx")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:607: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 heapgrowthlimitOptsBuf[sizeof("-XX:HeapGrowthLimit=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:608: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 heapminfreeOptsBuf[sizeof("-XX:HeapMinFree=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:609: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 heapmaxfreeOptsBuf[sizeof("-XX:HeapMaxFree=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:610: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 usejitOptsBuf[sizeof("-Xusejit:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:611: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 jitmaxsizeOptsBuf[sizeof("-Xjitmaxsize:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:612: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 jitinitialsizeOptsBuf[sizeof("-Xjitinitialsize:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:613: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 jitthresholdOptsBuf[sizeof("-Xjitthreshold:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:614: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 useJitProfilesOptsBuf[sizeof("-Xjitsaveprofilinginfo:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:615: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 jitprithreadweightOptBuf[sizeof("-Xjitprithreadweight:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:616: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 jittransitionweightOptBuf[sizeof("-Xjittransitionweight:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:617: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 hotstartupsamplesOptsBuf[sizeof("-Xps-hot-startup-method-samples:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:618: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 madviseRandomOptsBuf[sizeof("-XX:MadviseRandomAccess:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:619: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 gctypeOptsBuf[sizeof("-Xgc:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:620:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char backgroundgcOptsBuf[sizeof("-XX:BackgroundGC=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:621: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 heaptargetutilizationOptsBuf[sizeof("-XX:HeapTargetUtilization=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:622:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char foregroundHeapGrowthMultiplierOptsBuf[
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:624: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 cachePruneBuf[sizeof("-Xzygote-max-boot-retry=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:625: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 dex2oatXmsImageFlagsBuf[sizeof("-Xms")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:626: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 dex2oatXmxImageFlagsBuf[sizeof("-Xmx")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:627: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 dex2oatXmsFlagsBuf[sizeof("-Xms")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:628: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 dex2oatXmxFlagsBuf[sizeof("-Xmx")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:629: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 dex2oatCompilerFilterBuf[sizeof("--compiler-filter=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:630: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 dex2oatImageCompilerFilterBuf[sizeof("--compiler-filter=")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:631: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 dex2oatThreadsBuf[sizeof("-j")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:632: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 dex2oatThreadsImageBuf[sizeof("-j")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:633: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 dex2oat_isa_variant_key[PROPERTY_KEY_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:634: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 dex2oat_isa_variant[sizeof("--instruction-set-variant=") -1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:635: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 dex2oat_isa_features_key[PROPERTY_KEY_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:636: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 dex2oat_isa_features[sizeof("--instruction-set-features=") -1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:637: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 dex2oatFlagsBuf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:638: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 dex2oatImageFlagsBuf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:639: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 extraOptsBuf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:640: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 voldDecryptBuf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:647: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 localeOption[sizeof("-Duser.locale=") + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:648: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 lockProfThresholdBuf[sizeof("-Xlockprofthreshold:")-1 + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:649: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 nativeBridgeLibrary[sizeof("-XX:NativeBridge=") + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:650: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 cpuAbiListBuf[sizeof("--cpu-abilist=") + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:651: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 methodTraceFileBuf[sizeof("-Xmethod-trace-file:") + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:652: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 methodTraceFileSizeBuf[sizeof("-Xmethod-trace-file-size:") + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:653: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 fingerprintBuf[sizeof("-Xfingerprint:") + PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:694: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(jniOptsBuf, "-Xjniopts:");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:910:9:  [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(localeOption, "-Duser.locale=");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/BindTest.cpp:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[4];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.cpp:356: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(dst, src, width * sizeof(SkColor));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.cpp:469:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(row.get(), src, sizeof(SkColor) * width);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.cpp:1117: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(bitmap->getPixels(), blob.data(), size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.cpp:1205: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(blob.data(), pSrc, size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.cpp:1416: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(abp.pointer(), src, bitmap.getSize());
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Bitmap.cpp:1429: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(dst, abp.pointer(), bitmap.getSize());
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/BitmapFactory.cpp:448: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(array, peeker.mPatch, peeker.mPatchSize);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/FontFamily.cpp:239:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GIFMovie.cpp:340: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(dst, src, cnt*sizeof(uint32_t));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GIFMovie.cpp:436:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[GIF_STAMP_LEN];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Graphics.cpp:700:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dst, mSkiaBitmap->getAddr(0, y), bytesToCopy);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/NinePatchPeeker.cpp:32: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(patchNew, patch, patchSize);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/NinePatchPeeker.cpp:40: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(&mOpticalInsets, data, sizeof(int32_t) * 4);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/NinePatchPeeker.cpp:43: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(&mOutlineInsets, data, sizeof(int32_t) * 4);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/RtlProperties.h:41: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 property[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/RtlProperties.h:43:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return (RtlDebugLevel) atoi(property);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/opengl/poly_clip.cpp:150: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(p1, &p2, sizeof(Poly)-(POLY_NMAX-p2.n)*sizeof(Poly_vert));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/opengl/util.cpp:118: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(pDest    , pTransformed + 4 * (pIndices[i    ] - minIndex), 4 * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/opengl/util.cpp:119: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(pDest + 4, pTransformed + 4 * (pIndices[i + 1] - minIndex), 4 * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/opengl/util.cpp:120: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(pDest + 8, pTransformed + 4 * (pIndices[i + 2] - minIndex), 4 * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_animation_PropertyValuesHolder.cpp:57:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(&(signature[parameterCount + 1]), ")V");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:65:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[1], &len, sizeof(len));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:66:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[1 + sizeof(len)], str, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:92:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&buf[pos], &len, sizeof(len));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:93:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&buf[pos + sizeof(len)], str, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:100:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&buf[pos], &intVal, sizeof(intVal));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:106:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&buf[pos], &longVal, sizeof(longVal));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:112:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&buf[pos], &floatVal, sizeof(floatVal));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:178: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(bytes, log_msg.buf, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:71: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 fdpath[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:261: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 buf[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:266: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 buf[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:350: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 buf[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:355: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 buf[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteConnection.cpp:314:13:  [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(message, ", while compiling: "); // less than 50 chars
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteConnection.cpp:538:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(ptr, data, length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_ddm_DdmHandleNativeHeap.cpp:57: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).
    int fd = open(path, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_ddm_DdmHandleNativeHeap.cpp:59: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 bytes[1024];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_Camera.cpp:546:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_Camera.cpp:931:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_Camera.cpp:932:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "invalid zoom value=%d", value);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_Camera.cpp:991:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:218: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(nData, (char *)event + event->data_offset, event->data_size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:318: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(nData, (char *)event + event->data_offset, event->data_size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:418: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 str[SOUND_TRIGGER_MAX_STRING_LEN];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:601:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)nSoundModel + offset, nData, size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:626:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(phraseModel->phrases[i].users,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:724:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *)memory->pointer() + sizeof(struct sound_trigger_recognition_config),
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_UsbDeviceConnection.cpp:94: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[16384];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_UsbDeviceConnection.cpp:105:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(bytes, buffer, length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_CameraMetadata.cpp:320: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(arrayWriter.get(), entry.data.u8, byteCount);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:250: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(thumb, buffer, size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:316: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).
    status_t open();
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:342:27:  [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_t JniOutputStream::open() {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:387: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).
    status_t open();
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:454:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
status_t JniInputStream::open() {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:476: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).
    status_t open();
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:526:30:  [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_t JniInputByteBuffer::open() {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1240: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 manufacturer[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1252: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 model[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1280: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 software[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1616: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 model[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1619: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 manufacturer[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1622: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 brand[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp:327:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(img, pixelBuffer, bufferLength);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp:328:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(img + totalSizeBytes - sizeof(footer), &footer, sizeof(footer));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioSystem.cpp:653: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(nAudioGainConfig->values, nValues, size * sizeof(int));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioTrack.cpp:643: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(track->sharedBuffer()->pointer(), data + offsetInSamples, sizeInBytes);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_LocalSocketImpl.cpp:257: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 msgbuf[CMSG_SPACE(countFds)];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_LocalSocketImpl.cpp:285: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(CMSG_DATA(cmsg), fds, sizeof fds);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:78: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 *fp = fopen(QTAGUID_IFACE_STATS, "r");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:83: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[384];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:84: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 cur_iface[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:122: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 *fp = fopen(QTAGUID_UID_STATS, "r");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:127: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[384];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char iface[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:54:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return UniqueFile(fopen(path, mode), safeFclose);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:585:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:611:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        pss += atoi(c);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:618:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        uss += atoi(c);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:626:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    lSwapPss = atoi(c);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:666:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:750:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:758: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).
    int fd = open("/proc/meminfo", O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:863:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:865:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char compare[128];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:886:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    jint result = atoi(ptr);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:1037:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:1114:33:  [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).
    android::base::unique_fd fd(open(fileNameChars.c_str(),
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.cpp:123:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, (const uint8_t *)mBuffer + offset, size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.cpp:133: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((uint8_t *)mBuffer + offset, data, size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:189: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(dest, ar + offset, length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:226: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(blob.data(), ar + offset, length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:339:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(a2, data, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:363:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ar, data, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:390:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(a2, blob.data(), len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:507: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).
    int fd = open(name8.c_str(), flags, realMode);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:612:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(array, parcel->data(), parcel->dataSize());
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Parcel.cpp:635: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(raw, (array + offset), length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SystemProperties.cpp:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SystemProperties.cpp:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SystemProperties.cpp:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_SystemProperties.cpp:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_UEventObserver.cpp:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:32:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:35: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).
    int stackFd = open(buf, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:67:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int outFd = open(path, O_WRONLY | O_APPEND | O_CREAT,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:83:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int tid = atoi(ent->d_name);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp:126: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 system_id[10];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp:180:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char subdir[PROP_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp:244: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).
    Asset* a = am->open(fileName8.c_str(), (Asset::AccessMode)mode);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp:303: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).
    Asset* a = am->open(fileName8.c_str(), Asset::ACCESS_RANDOM);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:734:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char msg[128];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:833: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 buf[128];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1045:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1049:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(filename, "r");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1073: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(*pos, &len, sizeof(len));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1075: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(*pos, str, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1089: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(*pos, &val, sizeof(val));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1117: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 process_name[40];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LOGGER_ENTRY_MAX_PAYLOAD];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_EventLog.cpp:207:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(bytes, log_msg.buf, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_FileObserver.cpp:53: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 event_buf[512];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:133:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(str);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:165:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(str);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:200: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 proc_path[255];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:216: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 cmdline[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:219:9:  [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(cmdline, "unknown");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:221:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(proc_path, "/proc/%d/cmdline", pid);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:222: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).
        fd = open(proc_path, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:236: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(proc_path, "/proc/%d/task", pid);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:250:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        t_pid = atoi(de->d_name);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:372:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(filename, "re");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:545:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char text[64];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:548:9:  [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(text, "/sys/fs/cgroup/memory/sw/tasks");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:550:9:  [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(text, "/sys/fs/cgroup/memory/tasks");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:558: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).
    int fd = open(text, O_WRONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:606: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).
    int fd = open("/proc/meminfo", O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:613: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[256];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:719: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).
    int fd = open(file.string(), O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:830:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(newData, curData, sizeof(jint)*curCount);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1026: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).
    int fd = open(file8, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1037: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[256];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1153:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int pid = atoi(d->d_name);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1156: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 path[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1157:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char data[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1160: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 fd = open(path, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_jar_StrictJarFile.cpp:131:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(entryNameCString.get(), entryName.name, entryName.name_length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputQueue.cpp:102: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 byteread[16];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_ThreadedRenderer.cpp:525:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(elem.buffer, stats, kBufferSize * sizeof(stats[0]));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:127:33:  [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 = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:136:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char crcBuffer[16384];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:215: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 localFileName[nativeLibPath.size() + fileNameLen + 2];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:239: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 localTmpFileName[nativeLibPath.size() + TMP_FILE_PATTERN_LEN + 2];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:254:14:  [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).
    int fd = mkstemp(localTmpFileName);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:385:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fileName[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:533:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fileName[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:555:37:  [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).
    ZipFileRO* zipFile = ZipFileRO::open(filePath.c_str());
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:56: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 iface[32];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:106: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 *fp = fopen(path8.c_str(), "r");
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[384];
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_Zygote.cpp:425: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).
    devnull = open("/dev/null", O_RDWR);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_Zygote.cpp:459:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[16];       // MAX_TASK_COMM_LEN=16 is hard-coded into bionic
data/android-platform-frameworks-base-8.1.0+r23/core/jni/fd_utils.cpp:232:41:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/fd_utils.cpp:334:27:  [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).
  const int dev_null_fd = open("/dev/null", O_RDWR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:113:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:141:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(fileName, O_RDONLY | O_BINARY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:202:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(fileName, O_RDONLY | O_BINARY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:516: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(buf, (char*)mMap->getDataPtr() + mOffset, count);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:521: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(buf, (char*)mBuf + mOffset, count);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:686: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).
        return open(fname, O_RDONLY | O_BINARY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:693: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).
    return open(mFileName, O_RDONLY | O_BINARY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:715:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, data, mLength);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:839: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(buf, (char*)mBuf + mOffset, count);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256]; // 256 chars should be enough for anyone...
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:121: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(newStr, str, len+1);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:365: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 spec[RESTABLE_MAX_LOCALE_LEN];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:391:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
Asset* AssetManager::open(const char* fileName, AccessMode mode)
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:484: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).
    pAsset = open(fileName, Asset::ACCESS_STREAMING);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:660:17:  [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* fin = fopen(pathOverlaysList, "r");
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:671:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:1190: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 nameBuf[256];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:1371:27:  [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).
    mZipFile = ZipFileRO::open(mPath.string());
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager2.cpp:564:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(new_entry, parent_entry, sizeof(*new_entry));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager2.cpp:597:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_entry, parent_entry, num_entries_to_copy * sizeof(*new_entry));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager2.cpp:928:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(copied_data, type, type_alloc_size);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:105: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 filenameBuf[128];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:296: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).
    int fd = open(realFilename, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:308: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).
    int fd = open(file, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:412:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                int fd = open(g.file.string(), O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:544: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).
    int fd = open(filepath.string(), O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:568: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(buf + 257, "ustar");
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:569: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(buf + 263, "00");
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:637: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 sizeStr[32];   // big enough for a 64-bit unsigned value in decimal
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:655: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(paxHeader, buf, 512);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:782:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename.string(), O_CREAT|O_RDWR|O_TRUNC, mode);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:862:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:941:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1077:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1294:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1446: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).
    oldSnapshotFD = open(SCRATCH_DIR "before.snap", O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/CursorWindow.cpp:303: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(offsetToPtr(offset), value, size);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LoadedArsc.cpp:103:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(type_spec + 1, types_.data(), types_.size() * sizeof(Type));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LoadedArsc.cpp:359:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_locale[RESTABLE_MAX_LOCALE_LEN];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleData.cpp:201:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void localeDataComputeScript(char out[4], const char* language, const char* region) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleData.cpp:214:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(out, SCRIPT_CODES[lookup_result->second], SCRIPT_LENGTH);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleData.cpp:223:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out, SCRIPT_CODES[lookup_result->second], SCRIPT_LENGTH);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleData.cpp:231:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char ENGLISH_CHARS[2] = {'e', 'n'};
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleData.cpp:232:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char LATIN_CHARS[4] = {'L', 'a', 't', 'n'};
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/LocaleDataTables.cpp:2319:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char script[4];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp:91: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).
    fd = ::open(filename, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp:136: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 footer[kFooterTagSize];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp:231: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).
    fd = ::open(filename, O_WRONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp:258:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char intBuf[sizeof(uint32_t)+1];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp:316: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).
    fd = ::open(filename, O_RDWR);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:217:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, &patch.wasDeserialized, 4);     // copy  wasDeserialized, numXDivs, numYDivs, numColors
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:218:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data + 12, &patch.paddingLeft, 16);   // copy paddingXXXX
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:221:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, xDivs, patch.numXDivs * sizeof(int32_t));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:223:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, yDivs, patch.numYDivs * sizeof(int32_t));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:225:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, colors, patch.numColors * sizeof(uint32_t));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:467: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(mOwnedData, data, size);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1593: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(mOwnedData, data, size);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1777:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(this, &o, size);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1782:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
/* static */ size_t unpackLanguageOrRegion(const char in[2], const char base,
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1782:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 */ size_t unpackLanguageOrRegion(const char in[2], const char base,
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1783: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 out[4]) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1805:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, in, 2);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1814:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
/* static */ void packLanguageOrRegion(const char* in, const char base,
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1815: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 out[2]) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1838:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
size_t ResTable_config::unpackLanguage(char language[4]) const {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1842:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
size_t ResTable_config::unpackRegion(char region[4]) const {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:1885:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char emptyScript[sizeof(l.localeScript)] = {'\0', '\0', '\0', '\0'};
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2203:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char kEnglish[2] = {'e', 'n'};  // packed version of "en"
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2204:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char kUnitedStates[2] = {'U', 'S'};  // packed version of "US"
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2205:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char kFilipino[2] = {'\xAD', '\x05'};  // packed version of "fil"
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2206:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char kTagalog[2] = {'t', 'l'};  // packed version of "tl"
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2209:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
inline bool areIdentical(const char code1[2], const char code2[2]) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2209:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
inline bool areIdentical(const char code1[2], const char code2[2]) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2213:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
inline bool langsAreEquivalent(const char lang1[2], const char lang2[2]) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2213:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
inline bool langsAreEquivalent(const char lang1[2], const char lang2[2]) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2603: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 computed_script[4];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2775: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 buf[4];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2795:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2816:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void ResTable_config::getBcp47Locale(char str[RESTABLE_MAX_LOCALE_LEN], bool canonicalize) const {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2840:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(str + charsWritten, localeScript, sizeof(localeScript));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2855:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(str + charsWritten, localeVariant, sizeof(localeVariant));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:3460:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newte, te, cnt*sizeof(theme_entry));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:3904: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(header->resourceIDMap, idmapData, idmapDataSize);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:3921: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(header->ownedData, data, dataSize);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4399:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(set+1, parentBag, NP*sizeof(bag_entry));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4666:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int index = atoi(String8(name + 7, nameLen - 7).string());
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:5076:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:6006:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char locale[RESTABLE_MAX_LOCALE_LEN];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:6975:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[2];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/StreamingZipInflater.cpp:144:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (outBuf != NULL) memcpy(dest, mOutBuf + mOutDeliverable, deliverable);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Util.cpp:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[5];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipFileRO.cpp:65:36:  [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).
/* static */ ZipFileRO* ZipFileRO::open(const char* zipFileName)
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipFileRO.cpp:189:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, zipEntry->name.name, requiredSize - 1);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:316:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[8];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/AssetManager.h:133: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).
    Asset* open(const char* fileName, AccessMode mode);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/LocaleData.h:30:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void localeDataComputeScript(char out[4], const char* language, const char* region);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ObbFile.h:128:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mSalt[8];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceTypes.h:941:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char language[2];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceTypes.h:955:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char country[2];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceTypes.h:1135: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 localeScript[4];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceTypes.h:1139: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 localeVariant[8];
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceTypes.h:1277:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    size_t unpackLanguage(char language[4]) const;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ResourceTypes.h:1280:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    size_t unpackRegion(char region[4]) const;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/ZipFileRO.h:80:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    static ZipFileRO* open(const char* zipFileName);
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:408: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 masterElectionEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:628: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 hex[256];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:629: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 srcEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:665:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char srcEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:759: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 srcEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:839: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 srcEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:935: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 srcEP[64], expectedEP[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:1011: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 srcEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:1075: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 dstEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:1160: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 dstEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:1187: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 newEPStr[64], oldEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:1281: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 oldEPStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:50: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(addr, &mMasterEP, sizeof(*addr));
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:99: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(addr, &mMasterElectionEP, sizeof(*addr));
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:295: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[SIZE];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:307: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 maStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:371: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[SIZE];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:380: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 meStr[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:410: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[SIZE];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/diag_thread.cpp:275:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/diag_thread.cpp:295:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/utils.cpp:122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/utils.cpp:134: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 timebuf[64];
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/utils.cpp:135: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 repbuf[96];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FontRenderer.cpp:312:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&cacheBuffer[row + startX], &bitmapBuffer[bY], glyph.fWidth);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FontRenderer.cpp:341:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dst += dstStride, src += srcStride, rowSize); // glyph data
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FrameInfo.cpp:50:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(mFrameInfo, info, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlopBuilder.cpp:286:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(colorMatrix, srcColorMatrix, 4 * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlopBuilder.cpp:287:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&colorMatrix[4], &srcColorMatrix[5], 4 * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlopBuilder.cpp:288:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&colorMatrix[8], &srcColorMatrix[10], 4 * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GlopBuilder.cpp:289:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&colorMatrix[12], &srcColorMatrix[15], 4 * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GpuMemoryTracker.cpp:112: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 buf[128];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GradientCache.cpp:259: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(pixels + rowBytes, pixels, rowBytes);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GradientCache.h:81:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(this->colors.get(), colors, count * sizeof(uint32_t));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/GradientCache.h:82:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(this->positions.get(), positions, count * sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Matrix.cpp:260: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(v, data, sizeof(data));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Patch.cpp:142: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(reducedVertices.get(), vertices.get(), verticesCount * sizeof(TextureVertex));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.cpp:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PROPERTY_VALUE_MAX] = {'\0',};
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.cpp:65:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(buf);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.cpp:71: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 property[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.cpp:157:41:  [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).
        overrideAmbientShadowStrength = atoi(value);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.cpp:161:38:  [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).
        overrideSpotShadowStrength = atoi(value);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Properties.cpp:178: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 prop[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/RecordingCanvas.h:220: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(dstBuffer, srcBuffer, count * sizeof(T));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvas.cpp:559: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(builder.positions(), vertices, ptCount * sizeof(SkPoint));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvas.cpp:561: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(builder.colors(), colors, ptCount * sizeof(SkColor));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvasProxy.cpp:319: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(text, glyphs.glyphIDs, glyphs.count*sizeof(uint16_t));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvasProxy.cpp:374: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(text, glyphs.glyphIDs, glyphs.count*sizeof(uint16_t));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/SkiaCanvasProxy.cpp:376:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(positions, pos, 2*glyphs.count*sizeof(float));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/Texture.cpp:184:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pDst, pSrc, width * bpp);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/VertexBuffer.h:148:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(degen, degen - 1, sizeof(TYPE));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/VertexBuffer.h:149:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(degen + 1, degen + 2, sizeof(TYPE));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/hwui/Typeface.cpp:182: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).
    int fd = open(kRobotoFont, O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/pipeline/skia/SkiaPipeline.cpp:212:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prop[PROPERTY_VALUE_MAX];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderstate/TextureState.cpp:76:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char bytes[SHADOW_LUT_SIZE];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CanvasContext.cpp:642:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char package[128];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CanvasContext.cpp:644:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE * file = fopen("/proc/self/cmdline", "r");
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CanvasContext.cpp:657: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 path[1024];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/CanvasContext.cpp:659: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).
    int fd = open(path, O_CREAT | O_WRONLY, S_IRWXU | S_IRGRP | S_IROTH);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/renderthread/RenderTask.h:94: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 mData[METHOD_INVOKE_PAYLOAD_SIZE];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/service/GraphicsStatsService.cpp:114:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FileDescriptor fd{open(path.c_str(), O_RDONLY)};
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/service/GraphicsStatsService.cpp:281:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int outFd = open(path.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0660);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/Barrier.h:30:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open() {
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/thread/Future.h:47: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).
        mBarrier.open();
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/FatVector.h:49: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 array[sizeof(T) * SIZE];
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/TraceUtils.h:42: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 buf[BUFFER_SIZE];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDescrambler.cpp:183: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(mMem->pointer(),
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaDescrambler.cpp:211:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy((void*)((uint8_t*)dstPtr + dstOffset), mMem->pointer(), *bytesWritten);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaExtractor.cpp:595: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(dst, data, size);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaExtractor.cpp:610: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(dst, data, size);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMetadataRetriever.cpp:63:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char msg[256];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMetadataRetriever.cpp:195: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(dst, src, width * height * sizeof(T));
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaPlayer.cpp:211:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char msg[256];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaRecorder.cpp:373: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 params[64];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaRecorder.cpp:374: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(params, "max-duration=%d", max_duration_ms);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaRecorder.cpp:390: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 params[64];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_Utils.cpp:105:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    mFile = fopen(filename.string(), "r");
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_Utils.cpp:531:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buffer->data(),
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDatabase.cpp:406:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char    date[20];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDatabase.cpp:413:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char    date[20];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDatabase.cpp:793:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDatabase.cpp:917:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(result, exifdata->data, exifdata->size);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDatabase.cpp:1262:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    date[20];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_mtp_MtpDevice.cpp:200:36:  [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).
    MtpDevice* device = MtpDevice::open(deviceNameStr, fd);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:160: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(bytes, p, size);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:294:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[EFFECT_STRING_LEN_MAX];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:573:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p->data, lpParam, psize);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:575:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p->data + voffset, lpValue, vsize);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:634:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p->data, lpParam, psize);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:642:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(lpValue, p->data + voffset, p->vsize);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:725:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[EFFECT_STRING_LEN_MAX];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_AudioEffect.cpp:838:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[EFFECT_STRING_LEN_MAX];
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_Visualizer.cpp:191:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(nArray, waveform, waveformSize);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/audioeffect/android_media_Visualizer.cpp:212:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(nArray, fft, fftSize);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPool.cpp:65: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(&mAttributes, pAttributes, sizeof(audio_attributes_t));
data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPool.cpp:616:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(writePos, buf + info.offset, dataSize);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPool.cpp:921:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(q, p, count);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_buffer.cpp:77:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(target_data, source_data, size);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_frame.cpp:204:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(dst_ptr, src_ptr, frame->Size());
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/jni/jni_native_frame.cpp:256:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(dst_ptr, src_ptr, frame->Size());
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/native_frame.cpp:32:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data_ + offset, data, size);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/native_program.cpp:137: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 result[buffer_size];
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/shader_program.cpp:710:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[128];
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/shader_program.cpp:761:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[128];
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/shader_program.cpp:1018: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_cpy, data, sizeof(float) * total);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/value.cpp:58: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(result.value, values, sizeof(BASE) * count);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/value.cpp:85: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(value->value, new_values, sizeof(BASE) * count);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/vec_types.h:29:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, x.data, sizeof(T)*dim);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/vec_types.h:53: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(this->data, x.data, sizeof(T)*dim);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/vec_types.h:132:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, x.data, sizeof(float)*2);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/vec_types.h:148:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, x.data, sizeof(float)*3);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/base/vec_types.h:165:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, x.data, sizeof(float)*4);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterpacks/native/imageproc/brightness.c:31: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 rgba[4];
data/android-platform-frameworks-base-8.1.0+r23/media/native/midi/midi.cpp:189:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(message->buffer, readBuffer + 1, dataSize);
data/android-platform-frameworks-base-8.1.0+r23/media/native/midi/midi.cpp:224:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + 1, data, numBytes);
data/android-platform-frameworks-base-8.1.0+r23/media/native/midi/midi.cpp:225:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + 1 + numBytes, &timestamp, sizeof(timestamp));
data/android-platform-frameworks-base-8.1.0+r23/native/android/asset_manager.cpp:108:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    Asset* asset = mgr->open(filename, amMode);
data/android-platform-frameworks-base-8.1.0+r23/native/android/storage_manager.cpp:131: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 canonicalPath[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/native/webview/loader/loader.cpp:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char relro_tmp[strlen(relro) + sizeof(tmpsuffix)];
data/android-platform-frameworks-base-8.1.0+r23/native/webview/loader/loader.cpp:80:35:  [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).
  int tmp_fd = TEMP_FAILURE_RETRY(mkstemp(relro_tmp));
data/android-platform-frameworks-base-8.1.0+r23/native/webview/loader/loader.cpp:110:37:  [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 relro_fd = TEMP_FAILURE_RETRY(open(relro, O_RDONLY));
data/android-platform-frameworks-base-8.1.0+r23/rs/jni/android_renderscript_RenderScript.cpp:322: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(dst, src, sizeBytes);
data/android-platform-frameworks-base-8.1.0+r23/rs/jni/android_renderscript_RenderScript.cpp:334: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(dst, src, sizeBytes);
data/android-platform-frameworks-base-8.1.0+r23/rs/jni/android_renderscript_RenderScript.cpp:968:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/rs/jni/android_renderscript_RenderScript.cpp:1673:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER);
data/android-platform-frameworks-base-8.1.0+r23/rs/jni/android_renderscript_RenderScript.cpp:1761:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:377: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(script, config.localeScript, sizeof(config.localeScript));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:381: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(variant, config.localeVariant, sizeof(config.localeVariant));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:496:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(((char*)buf)+end, data, size);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:1171:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int maxResInt = atoi(bundle->getMaxResVersion());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:1173:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int dirVersionInt = atoi(verString + 1); // skip 'v' in version name
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:1226:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    status_t err = zip->open(filename, ZipFile::kOpenReadOnly);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:1283: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(buf, data, len);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.h:62:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char language[4];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.h:63:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char region[4];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.h:64:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char script[4];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.h:65:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char variant[8];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:320:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int d = atoi(val);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:351: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).
        out->mnc = atoi(val);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:641:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int d = atoi(name);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:776:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    uint16_t w = (uint16_t)atoi(xName.string());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:777:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    uint16_t h = (uint16_t)atoi(yName.string());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:808:48:  [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).
        out->smallestScreenWidthDp = (uint16_t)atoi(xName.string());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:830:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        out->screenWidthDp = (uint16_t)atoi(xName.string());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:852:41:  [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).
        out->screenHeightDp = (uint16_t)atoi(xName.string());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptConfig.cpp:878:37:  [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).
        out->sdkVersion = (uint16_t)atoi(sdkName.string());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:61: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).
    result = zip->open(fileName, ZipFile::kOpenReadOnly);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:96: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).
    result = zip->open(fileName, flags);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:176:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char dateBuf[32];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:740:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char CONSOLE_DATA[2925]; // see EOF
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:2676:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(dependencyFile, "w");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:2765:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(dependencyFile, "a+");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:2852: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 CONSOLE_DATA[2925] = {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:800: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(newData, data, patchSize);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1085: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(colors + numAlphaColors, opaqueColors, 4 * numOpaqueColors);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1249:9:  [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((char*)unknowns[p_index].name, "npTc");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1257:9:  [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((char*)unknowns[o_index].name, "npOl");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1260: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(&outputData, &imageInfo.outlineInsetsLeft, 4 * sizeof(png_uint_32));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1263: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(unknowns[o_index].data, &outputData, chunk_size);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1269:13:  [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((char*)unknowns[b_index].name, "npLb");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1271:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(unknowns[b_index].data, &imageInfo.layoutBoundsLeft, chunk_size);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1388:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(file->getSourceFile().string(), "rb");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1477:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(source.string(),"rb");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1544:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(dest.string(), "wb");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Images.cpp:1566:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* reader = fopen(dest.string(), "rb");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Main.cpp:340:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                tolerance = atoi(argv[0]);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp:101: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).
    status = zip->open(outputFile.string(), ZipFile::kOpenReadWrite | ZipFile::kOpenCreate);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp:190:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* fp = fopen(dependencyFile.string(), "a");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp:436: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).
        err = jar.open(jars[i], ZipFile::kOpenReadOnly);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:1859:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE* fp = fopen(bundle->getPublicOutputFile(), "w+");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2833:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* fp = fopen(dest.string(), "w+");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2865:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE* fp = fopen(textDest.string(), "w+");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2890:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE *fp = fopen(dependencyFile.string(), "a");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2945: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 lineno[20];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2946: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(lineno, ":%d", line);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2962: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 lineno[20];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:2963: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(lineno, ":%d", line);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Resource.cpp:3265: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* fp = fopen(filename, "w+");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceFilter.cpp:78: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 scriptBuffer[sizeof(config.localeScript)];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:433:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[11];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:434:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "%d", l10n_required);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:471:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char numberStr[16];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:472:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(numberStr, "%d", attr.type);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:1088:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buf[64];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:1089:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "%d", (int)(end-curIdent+1));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:1356:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char rawLocale[RESTABLE_MAX_LOCALE_LEN];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:1561:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char elmIndexStr[14];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:1576: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.
                            sprintf(elmIndexStr, "^index_%d", (int)elmIndex++);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:2482: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 buf[1024];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:3645:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char numberStr[16];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:3646:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(numberStr, "%d", ResTable_map::TYPE_ANY);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:3804: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(&mapHeader, &header, sizeof(header));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:4533:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(bundle->getManifestMinSdkVersion());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:4535:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(bundle->getMinSdkVersion());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/XMLNode.cpp:588:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16384];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/XMLNode.cpp:589: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).
    int fd = open(file->getSourceFile().string(), O_RDONLY | O_BINARY);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/XMLNode.cpp:1083: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(&copy->mCharsValue, &mCharsValue, sizeof(mCharsValue));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:169: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(mLFH.mExtraField, pEntry->mLFH.mExtraField,
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:197: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(newExtra, mLFH.mExtraField, mLFH.mExtraFieldLength);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:388:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[kLFHLen];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:454:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[kLFHLen];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:522:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[kCDELen];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:612:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[kCDELen];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:730:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(mExtraField, src.mExtraField, mExtraFieldLength + 1);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.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).
status_t ZipFile::open(const char* zipFileName, int flags)
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:96:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    mZipFp = fopen(zipFileName, openflags);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:326:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char checkBuf[4];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:384:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        inputFp = fopen(fileName, FILE_OPEN_RO);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:647:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char tmpBuf[32768];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:701:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char tmpBuf[32768];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:802:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(inBuf, data, getSize);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:1051:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char readBuf[32768];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:1250: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(mComment, buf + kEOCDLen, mCommentLen);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.cpp:1261:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[kEOCDLen];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipFile.h:66: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).
    status_t open(const char* zipFileName, int flags);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:62:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int d = atoi(val);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:93: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).
    out->mnc = atoi(val);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:402:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int d = atoi(name);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:537:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  uint16_t w = (uint16_t)atoi(xName.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:538:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  uint16_t h = (uint16_t)atoi(yName.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:569:44:  [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).
    out->smallestScreenWidthDp = (uint16_t)atoi(xName.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:591:36:  [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).
    out->screenWidthDp = (uint16_t)atoi(xName.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:613:37:  [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).
    out->screenHeightDp = (uint16_t)atoi(xName.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ConfigDescription.cpp:639:33:  [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).
    out->sdkVersion = (uint16_t)atoi(sdkName.c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.cpp:233: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(script, config.localeScript, sizeof(config.localeScript));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.cpp:237: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(variant, config.localeVariant, sizeof(config.localeVariant));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.h:32:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char language[4];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.h:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char region[4];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.h:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char script[4];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale.h:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char variant[8];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/StringPool.cpp:378:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, encoded.data(), byte_length);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:636:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cursor, &layout_bounds.left, sizeof(layout_bounds.left));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:639: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(cursor, &layout_bounds.top, sizeof(layout_bounds.top));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:642:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cursor, &layout_bounds.right, sizeof(layout_bounds.right));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:645: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(cursor, &layout_bounds.bottom, sizeof(layout_bounds.bottom));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:658: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(cursor, &outline.left, sizeof(outline.left));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:661: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(cursor, &outline.top, sizeof(outline.top));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:664: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(cursor, &outline.right, sizeof(outline.right));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/NinePatch.cpp:667: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(cursor, &outline.bottom, sizeof(outline.bottom));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, data, length);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:163: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(newData, data, patchSize);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:541: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((char*)unknowns[pIndex].name, "npTc");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:549: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((char*)unknowns[oIndex].name, "npOl");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:552: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(&outputData, &info->outlineInsetsLeft, 4 * sizeof(png_uint_32));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:555: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(unknowns[oIndex].data, &outputData, chunkSize);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:561:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy((char*)unknowns[bIndex].name, "npLb");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:563:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(unknowns[bIndex].data, &info->layoutBoundsLeft, chunkSize);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PngCrunch.cpp:102: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, in_buffer, bytes_read);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PngCrunch.cpp:128:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out_buffer, buffer, bytes_written);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PngCrunch.cpp:448: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((char*)unknown_chunks[index].name, "npOl");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PngCrunch.cpp:457: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((char*)unknown_chunks[index].name, "npLb");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/PngCrunch.cpp:465: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((char*)unknown_chunks[index].name, "npTc");
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/filter/ConfigFilter.cpp:61:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char script_buffer[sizeof(config.localeScript)];
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/Archive.cpp:65:37:  [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_ = {::android::base::utf8::fopen(full_path.c_str(), "wb"), fclose};
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/flatten/Archive.cpp:126:37:  [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_ = {::android::base::utf8::fopen(path.to_string().c_str(), "w+b"), fclose};
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/FileInputStream.cpp:34:46:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    : FileInputStream(::android::base::utf8::open(path.c_str(), O_RDONLY | O_BINARY),
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/Util.cpp:87:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out_buffer, in_buffer, bytes_to_copy);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Files.cpp:167:58:  [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).
  unique_fd fd(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), flags)));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Util.cpp:484:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, block.buffer.get(), block.size);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/aapt.cpp:202:31:  [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).
            element->lineno = atoi(match[3].str().c_str());
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/main.cpp:563:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char pwd[PATH_MAX];
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/util.cpp:33: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(this, &that, sizeof(FileInfo));
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/util.cpp:234:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* file = fopen(filename.c_str(), "r");
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/main.cpp:484: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).
            inFd = open(inFilename, O_RDONLY | O_CLOEXEC);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/main.cpp:544:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        outFd = open(outFilename, O_CREAT | O_RDWR, 0666);
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/Main.cpp:64:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char salt[SALT_LEN];
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/pbkdf2gen.cpp:44: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).
    int fd = open("/dev/urandom", O_RDONLY);
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/pbkdf2gen.cpp:51:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char salt[SALT_LEN];
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/pbkdf2gen.cpp:60:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char rawKey[KEY_BITS];
data/android-platform-frameworks-base-8.1.0+r23/tools/split-select/RuleGenerator.cpp:106: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 str[RESTABLE_MAX_LOCALE_LEN];
data/android-platform-frameworks-base-8.1.0+r23/cmds/app_process/app_main.cpp:135: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).
    end += strlen(argv[argc - 1]) + 1;
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:410:13:  [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(sleepTime);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:453:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(str1) == 0) {  // No values were specified
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:455:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if (strlen(str2) == 0) {  // we have only one value
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:552:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const int len = strlen(str);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:957:13:  [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(part.pause * ns2us(frameDuration));
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimation.cpp:1095:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t length = read(mInotifyFd, buff, BUFF_LEN);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/BootAnimationUtil.cpp:53: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(SERVICE_WAIT_SLEEP_MS * 1000);
data/android-platform-frameworks-base-8.1.0+r23/cmds/bootanimation/iot/BootAction.cpp:48:11:  [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(250000);
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp:105:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char*)ev.u.create.name, name, UHID_MAX_NAME_LENGTH);
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp:123:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = TEMP_FAILURE_RETRY(::read(fd, &ev, sizeof(ev)));
data/android-platform-frameworks-base-8.1.0+r23/cmds/hid/jni/com_android_commands_hid_Device.cpp:177:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = TEMP_FAILURE_RETRY(::read(mFd, &ev, sizeof(ev)));
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/create.cpp:93:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft));
data/android-platform-frameworks-base-8.1.0+r23/cmds/idmap/scan.cpp:219:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (inflater.read(buf, uncompLen) < 0) {
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/FdBuffer.cpp:52:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FdBuffer::read(int fd, int64_t timeout)
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/FdBuffer.cpp:93:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ssize_t amt = ::read(fd, buf + mCurrentWritten, BUFFER_SIZE - mCurrentWritten);
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/FdBuffer.h:44:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status_t read(int fd, int64_t timeoutMs);
data/android-platform-frameworks-base-8.1.0+r23/cmds/incidentd/src/Section.cpp:148:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    err = buffer.read(data->readFd(), REMOTE_CALL_TIMEOUT_MS);
data/android-platform-frameworks-base-8.1.0+r23/cmds/interrupter/interrupter.c:50:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
DEFINE_INTERCEPT(read, ssize_t, int, void*, size_t);
data/android-platform-frameworks-base-8.1.0+r23/cmds/screencap/screencap.cpp:151:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const int len = strlen(fn);
data/android-platform-frameworks-base-8.1.0+r23/cmds/webview_zygote/webview_zygote.cpp:68:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        argBlockSize += strlen(argv[i]) + 1;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:292:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = strlen(argv0);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:515: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).
    size_t runtimeArgLen = strlen(runtimeArg);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:542: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 compilerArgLen = strlen(compilerArg);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:571: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).
    size_t runtimeArgLen = strlen(runtimeArg);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:688:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(propBuf) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/AndroidRuntime.cpp:1015: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 length = strlen(bytes);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:28:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t read(void* buffer, size_t size) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:152:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((len = stream->read(data + streamLen,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GIFMovie.cpp:42:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (int) stream->read(out, size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GIFMovie.cpp:437:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (stream->read(buf, GIF_STAMP_LEN) == GIF_STAMP_LEN) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/GraphicBuffer.cpp:259:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        parcel->read(*buffer);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Utils.cpp:52:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t AssetStreamAdaptor::read(void* buffer, size_t size) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Utils.cpp:74:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        amount = fAsset->read(buffer, size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Utils.cpp:101:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const off64_t len = asset->read(data->writable_data(), size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android/graphics/Utils.h:34:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t read(void* buffer, size_t size);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_NativeActivity.cpp:105:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int res = read(fd, outWork, sizeof(ActivityWork));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:60:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t len = strlen(str);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_app_admin_SecurityLog.cpp:89:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            jint len = strlen(str);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_backup_BackupHelperDispatcher.cpp:54:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_backup_BackupHelperDispatcher.cpp:70:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    amt = read(fd, &flattenedHeader.version,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_backup_BackupHelperDispatcher.cpp:109:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    amt = read(fd, buf, flattenedHeader.nameLength);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:352:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fillCharArrayBufferUTF(env, bufferObj, buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_CursorWindow.cpp:357:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fillCharArrayBufferUTF(env, bufferObj, buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteConnection.cpp:312:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *message = (char*) malloc(strlen(query) + 50);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_database_SQLiteConnection.cpp:750:17:  [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(1000);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_ddm_DdmHandleNativeHeap.cpp:61:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_HardwareBuffer.cpp:165:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        parcel->read(*buffer);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SensorManager.cpp:339:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((n = q->read(buffer, 16)) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SerialPort.cpp:178:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret = read(fd, buf, length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SerialPort.cpp:201:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret = read(fd, buf, length);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:634:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(phraseModel->phrases[i].locale,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_SoundTrigger.cpp:639:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(phraseModel->phrases[i].text,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_UsbDeviceConnection.cpp:98:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int length = read(fd, buffer, sizeof(buffer));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_CameraMetadata.cpp:464:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((res = TEMP_FAILURE_RETRY(read(readFd, &out[0], /*count*/1))) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_CameraMetadata.cpp:761: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).
        size_t totalLen = strlen(section) + strlen(tag) + 2;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_CameraMetadata.cpp:761:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t totalLen = strlen(section) + strlen(tag) + 2;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:391:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read(uint8_t* buf, size_t offset, size_t count);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:417:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t JniInputStream::read(uint8_t* buf, size_t offset, size_t count) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:480:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read(uint8_t* buf, size_t offset, size_t count);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:503:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t JniInputByteBuffer::read(uint8_t* buf, size_t offset, size_t count) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:623:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t bytesRead = mInput->read(rowBytes, rowFillAmt, rowSize);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1035:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(captureTime) + 1;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1244:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        uint32_t count = static_cast<uint32_t>(strlen(manufacturer)) + 1;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1256:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        uint32_t count = static_cast<uint32_t>(strlen(model)) + 1;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_hardware_camera2_DngCreator.cpp:1282:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        uint32_t count = static_cast<uint32_t>(strlen(software)) + 1;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioRecord.cpp:274:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioRecord.cpp:523:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t readSize = lpRecorder->read(
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioRecord.cpp:558:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t readSize = lpRecorder->read(nativeFromJavaBuf,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_media_AudioTrack.cpp:307:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:89:23:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        int matched = sscanf(buffer, "%31s %" SCNu64 " %" SCNu64 " %" SCNu64
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_net_TrafficStats.cpp:133:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (sscanf(buffer,
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_EGL14.cpp:1060:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  (JNIEnv *_env, jobject _this, jobject dpy, jobject draw, jobject read, jobject ctx) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_opengl_EGL14.cpp:1064:86:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EGLSurface read_native = (EGLSurface) fromEGLHandle(_env, eglsurfaceGetHandleID, read);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:279:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(line);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:290: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).
            nameLen = strlen(name);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:293:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (nameLen > (int)strlen(deleted_str) &&
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:294: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).
                strcmp(name+nameLen-strlen(deleted_str), deleted_str) == 0) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:295: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).
                nameLen -= strlen(deleted_str);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_Debug.cpp:765:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int len = read(fd, buffer, sizeof(buffer)-1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.cpp:118:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
status_t JHwBlob::read(size_t offset, void *data, size_t size) const {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.cpp:269:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status_t err = blob->read(offset, &x, sizeof(x));                          \
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.cpp:291:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status_t err = blob->read(offset, &x, sizeof(x));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.cpp:362:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t size = strlen(s) + 1;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwBlob.h:46:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status_t read(size_t offset, void *data, size_t size) const;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_HwParcel.cpp:330:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status_t err = parcel->read ## Suffix(&val);                        \
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_os_UEventObserver.cpp:58: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).
            field += strlen(field) + 1;
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:38:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
        strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:38:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:39: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).
        write(outFd, buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:43:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((nBytes = read(stackFd, buf, sizeof(buf))) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:75: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).
    write(outFd, buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_server_Watchdog.cpp:93: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).
    write(outFd, buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp:455:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t res = a->read(&b, 1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_AssetManager.cpp:481:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t res = a->read(b+off, len);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Binder.cpp:1064:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    jint len = strlen(str);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_FileObserver.cpp:59:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int num_bytes = read(fd, event_buf, sizeof(event_buf));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:224:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int rc = read(fd, cmdline, sizeof(cmdline)-1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:561:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        write(fd, text, strlen(text));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:614:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const int len = read(fd, buffer, sizeof(buffer)-1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:655: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).
    static const size_t sumsLen[] = { strlen("MemFree:"), strlen("Cached:"), 0 };
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:655:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    static const size_t sumsLen[] = { strlen("MemFree:"), strlen("Cached:"), 0 };
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:662: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).
    static const size_t sumsLen[] = { strlen("MemTotal:"), 0 };
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:724:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int len = read(fd, buffer, BUFFER_SIZE-1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1038:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const int len = read(fd, buffer, sizeof(buffer)-1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_util_Process.cpp:1164:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const int len = read(fd, data, sizeof(data)-1);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/android_view_InputQueue.cpp:105:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread)));
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:138:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:214: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).
    const size_t fileNameLen = strlen(fileName);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:338:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            const size_t fileNameLen = strlen(fileName);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_android_internal_os_Zygote.cpp:311: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).
    size_t path_len = strlen(path);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_google_android_gles_jni_EGLImpl.cpp:406:104:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static jboolean jni_eglMakeCurrent(JNIEnv *_env, jobject _this, jobject display, jobject draw, jobject read, jobject context) {
data/android-platform-frameworks-base-8.1.0+r23/core/jni/com_google_android_gles_jni_EGLImpl.cpp:413:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EGLSurface srd = getSurface(_env, read);
data/android-platform-frameworks-base-8.1.0+r23/core/jni/hwbinder/EphemeralStorage.cpp:69:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s->setToExternal((char *)val, strlen(val));
data/android-platform-frameworks-base-8.1.0+r23/drm/jni/android_drm_DrmManagerClient.cpp:80: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).
        const int length = strlen(bytes) + 1;
data/android-platform-frameworks-base-8.1.0+r23/drm/jni/android_drm_DrmManagerClient.cpp:82:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(data, bytes, length);
data/android-platform-frameworks-base-8.1.0+r23/drm/jni/android_drm_DrmManagerClient.cpp:275:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    ScopedLocalRef<jbyteArray> dataArray(env, env->NewByteArray(strlen(value)));
data/android-platform-frameworks-base-8.1.0+r23/drm/jni/android_drm_DrmManagerClient.cpp:277: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).
                    env->SetByteArrayRegion(dataArray.get(), 0, strlen(value), (jbyte*)value);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:487:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t _FileAsset::read(void* buf, size_t count)
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:812:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t _CompressedAsset::read(void* buf, size_t count)
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Asset.cpp:821:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        actual = mZipInflater->read(buf, count);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:90:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, pkgPath.string(), 255);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:119:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:1038: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).
    exclExtLen = strlen(kExcludeExtension);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/AssetManager.cpp:1044: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).
        nameLen = strlen(name);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupData.cpp:240:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    amt = read(m_fd, &m_header, sizeof(m_header));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupData.cpp:273:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int amt = read(m_fd, buf, size+1);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupData.cpp:351:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int amt = read(m_fd, data, size);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupData.cpp:373:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        amt = read(m_fd, &padding, paddingSize);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:92:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    amt = read(fd, &header, sizeof(header));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:107:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        amt = read(fd, &file, sizeof(FileState));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:119:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        amt = read(fd, filename, nameBufSize);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:251:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:321:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((amt = read(fd, buf, bufsize)) != 0) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:463:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(key) + strlen(value) + 4;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:463: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).
    int len = strlen(key) + strlen(value) + 4;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:623:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf, relpath.string(), 100);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:624:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf + 345, prefix.string(), 155);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:626:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf, fullname.string(), 100);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:661:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(paxHeader + 345, prefix.string(), 155);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:691:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t nRead = read(fd, buf, toRead);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:844:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(data);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:883:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    amt = read(fd, contents, readLen);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/BackupHelpers.cpp:1203:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t bufSize = strlen(str)+1;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp:137:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ObbFile.cpp:179:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:2910: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).
    const size_t size = in + strlen(in) - start;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4926: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).
    { "px", strlen("px"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PX, 1.0f },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4927:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    { "dip", strlen("dip"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4928: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).
    { "dp", strlen("dp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4929: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).
    { "sp", strlen("sp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_SP, 1.0f },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4930: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).
    { "pt", strlen("pt"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PT, 1.0f },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4931: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).
    { "in", strlen("in"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_IN, 1.0f },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4932: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).
    { "mm", strlen("mm"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_MM, 1.0f },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4933: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).
    { "%", strlen("%"), Res_value::TYPE_FRACTION, Res_value::COMPLEX_UNIT_FRACTION, 1.0f/100 },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:4934: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).
    { "%p", strlen("%p"), Res_value::TYPE_FRACTION, Res_value::COMPLEX_UNIT_FRACTION_PARENT, 1.0f/100 },
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ResourceTypes.cpp:6871:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t I = strlen(path);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/StreamingZipInflater.cpp:136:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t StreamingZipInflater::read(void* outBuf, size_t count) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/StreamingZipInflater.cpp:213:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/StreamingZipInflater.cpp:240:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(NULL, absoluteInputPosition);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/StreamingZipInflater.cpp:242:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(NULL, absoluteInputPosition - mOutCurPosition);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/Util.cpp:38: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).
    out->append(buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:110:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            const unsigned long nextSize = reader.read(&nextBuffer, getSize);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:162:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   long read(unsigned char** nextBuffer, long readSize) const {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:182:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   long read(unsigned char** nextBuffer, long readSize) const {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:184:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       return TEMP_FAILURE_RETRY(::read(mFd, mReadBuf, readSize));
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:200:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    long read(unsigned char** nextBuffer, long /*readSize*/) {
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:269:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ic = getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:270:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (ic != 0x1f || getc(fp) != 0x8b)
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:272:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    method = getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:273:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    flags = getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:283:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        (void) getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:288:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:289:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len |= getc(fp) << 8;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:290:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (len-- && getc(fp) != EOF)
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:296:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ic = getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:302:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ic = getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:307:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        (void) getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/ZipUtils.cpp:308:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        (void) getc(fp);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/Asset.h:73:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual ssize_t read(void* buf, size_t count) = 0;
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/Asset.h:261:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual ssize_t read(void* buf, size_t count);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/Asset.h:317:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual ssize_t read(void* buf, size_t count);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/StreamingZipInflater.h:43:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read(void* outBuf, size_t count);
data/android-platform-frameworks-base-8.1.0+r23/libs/androidfw/include/androidfw/StringPiece.h:102:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : data_(str), length_(str != nullptr ? strlen(str) : 0) {}
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:376:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(mWakeupThreadFD, &tmp, sizeof(tmp));
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server.cpp:1231:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep((lrand48() % 100) * 1000);
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:302: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).
        write(fd, buffer, strlen(buffer));
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/common_time_server_api.cpp:378: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).
        write(fd, buffer, strlen(buffer));
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/diag_thread.cpp:251:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            if (read(data_fd_, &cmd, sizeof(cmd)) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/diag_thread.cpp:287:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    write(data_fd_, buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/libs/common_time/diag_thread.cpp:310:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    write(data_fd_, buf, strlen(buf));
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FontRenderer.cpp:596:38:  [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.
    uint8_t* dataBuffer = (uint8_t*) memalign(RS_CPU_ALLOCATION_ALIGNMENT, size);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/FontRenderer.cpp:687:40:  [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.
        uint8_t* outImage = (uint8_t*) memalign(RS_CPU_ALLOCATION_ALIGNMENT, width * height);
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/debug/nullegl.cpp:132:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              EGLSurface read, EGLContext ctx) {
data/android-platform-frameworks-base-8.1.0+r23/libs/hwui/utils/StringUtils.cpp:28:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        std::string s(current, head ? head - current : strlen(current));
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaMetadataRetriever.cpp:59:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(message) > 230) {
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_MediaPlayer.cpp:207:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(message) > 230) {
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_Utils.cpp:51:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t size = mStream->read((void*)data, length);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_Utils.cpp:78:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size_t bytesRead = mStream->read(tempBuffer, sizeToRead);
data/android-platform-frameworks-base-8.1.0+r23/media/jni/android_media_Utils.cpp:88:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (mStreamBuffer.read((void*)data, offset, length)) {
data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPoolThread.cpp:38:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const SoundPoolMsg SoundPoolThread::read() {
data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPoolThread.cpp:84:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        SoundPoolMsg msg = read();
data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/SoundPoolThread.h:55:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const SoundPoolMsg read();
data/android-platform-frameworks-base-8.1.0+r23/media/jni/soundpool/android_media_SoundPool.cpp:196:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/value.cpp:167:55:  [1] (buffer) strlen:
  Does not handle 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 MakePtrValue<char, STRING_VALUE_TYPE>(value, strlen(value) + 1);
data/android-platform-frameworks-base-8.1.0+r23/media/mca/filterfw/native/core/value.cpp:211: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).
  return SetPtrValue<char, STRING_VALUE_TYPE>(value, new_value, strlen(new_value) + 1);
data/android-platform-frameworks-base-8.1.0+r23/media/native/midi/midi.cpp:173:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t readCount = read(port->ufd, readBuffer, sizeof(readBuffer));
data/android-platform-frameworks-base-8.1.0+r23/native/android/asset_manager.cpp:173:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return asset->mAsset->read(buf, (size_t)count);
data/android-platform-frameworks-base-8.1.0+r23/native/android/sensor.cpp:277:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t actual = static_cast<SensorEventQueue*>(queue)->read(events, count);
data/android-platform-frameworks-base-8.1.0+r23/native/webview/loader/loader.cpp:77: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).
  char relro_tmp[strlen(relro) + sizeof(tmpsuffix)];
data/android-platform-frameworks-base-8.1.0+r23/rs/jni/android_renderscript_RenderScript.cpp:806:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(name == nullptr || strlen(name) == 0) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:102:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int plen = strlen(path);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:120: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 n = strlen(token);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptAssets.cpp:406: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).
        typeLen = strlen(dir);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptUtil.cpp:32:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            parts.add(String8(p, strlen(p)));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/AaptUtil.cpp:50: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).
            String8 val(p, strlen(p));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:1313:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                if (localeStr == NULL || strlen(localeStr) == 0) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Command.cpp:2270:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (localeStr == NULL || strlen(localeStr) == 0) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Main.cpp:726: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).
                cp += strlen(cp) - 1;
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp:268:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int excludeExtensionLen = strlen(kExcludeExtension);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp:382: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).
        int pos = pathName.length() - strlen(str);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp:397:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t a = strlen(haystack);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/Package.cpp:398:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t b = strlen(needle);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:4532:55:  [1] (buffer) strlen:
  Does not handle 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 (bundle->getManifestMinSdkVersion() != NULL && strlen(bundle->getManifestMinSdkVersion()) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ResourceTable.cpp:4534:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if (bundle->getMinSdkVersion() != NULL && strlen(bundle->getMinSdkVersion()) > 0) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/StringPool.cpp:482:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy((char*)strings, encStr, encSize+1);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/XMLNode.cpp:609:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read(fd, buf, sizeof(buf));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:49:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = mCDE.read(fp);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:65:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = mLFH.read(fp);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:121: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).
    mCDE.mFileNameLength = strlen(fileName);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:123:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        mCDE.mFileCommentLength = strlen(comment);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:385:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
status_t ZipEntry::LocalFileHeader::read(FILE* fp)
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.cpp:519:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
status_t ZipEntry::CentralDirEntry::read(FILE* fp)
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.h:241:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status_t read(FILE* fp);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt/ZipEntry.h:299:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status_t read(FILE* fp);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale_test.cpp:43:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) !=
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale_test.cpp:70:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) !=
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/Locale_test.cpp:77:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) !=
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceValues.cpp:406:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return std::equal(sorted_a.begin(), sorted_a.end(), sorted_b.begin(),
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceValues.cpp:712:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return std::equal(sorted_a.begin(), sorted_a.end(), sorted_b.begin(),
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceValues.cpp:812:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return std::equal(elements.begin(), elements.end(), other->elements.begin(),
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/ResourceValues.cpp:905:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return std::equal(entries.begin(), entries.end(), other->entries.begin(),
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/StringPool.cpp:361:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(data, encoded.data(), encoded.size());
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:86:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!input->read(reinterpret_cast<char*>(data), length)) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/compile/Png.cpp:1239:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!input->read(reinterpret_cast<char*>(signature), kPngSignatureSize)) {
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/io/FileInputStream.cpp:65:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ssize_t n = TEMP_FAILURE_RETRY(read(fd_, buffer_.get(), buffer_capacity_));
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/jni/ScopedUtfChars.h:69:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strlen(utf_chars_);
data/android-platform-frameworks-base-8.1.0+r23/tools/aapt2/util/Files.cpp:253:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t n = strlen(token_str);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/adb.cpp:91:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t amt = read(fd, &byte, 1);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/adb.cpp:134:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t amt = read(fd, buf+pos, size-pos);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/adb.cpp:187:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        amt = read(fd, scratch, amt);
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/command.cpp:92:9:  [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(*row, "=");
data/android-platform-frameworks-base-8.1.0+r23/tools/bit/command.cpp:136:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t amt = read(fds[0], buf, size);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/formatter.cpp:58:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int const packageLen = strlen(package);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/main.cpp:366:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ssize_t amt = read(pfd[0], buffer + size, maxAllowedSize - size);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.cpp:27:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
const int SPACE_COUNT = strlen(SPACES);
data/android-platform-frameworks-base-8.1.0+r23/tools/incident_report/printer.cpp:87:55:  [1] (buffer) strlen:
  Does not handle 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 size = p != NULL ? p - last + 1 : strlen(last);
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/Main.cpp:219:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(optarg) != SALT_LEN * 2) {
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/Main.cpp:260: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).
        const int opsize = strlen(op);
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/pbkdf2gen.cpp:53:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &salt, SALT_LEN) != SALT_LEN) {
data/android-platform-frameworks-base-8.1.0+r23/tools/obbtool/pbkdf2gen.cpp:62:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (PKCS5_PBKDF2_HMAC_SHA1(argv[1], strlen(argv[1]), salt, SALT_LEN,

ANALYSIS SUMMARY:

Hits = 1021
Lines analyzed = 318038 in approximately 11.28 seconds (28186 lines/second)
Physical Source Lines of Code (SLOC) = 234356
Hits@level = [0] 1244 [1] 261 [2] 634 [3]  26 [4]  88 [5]  12
Hits@level+ = [0+] 2265 [1+] 1021 [2+] 760 [3+] 126 [4+] 100 [5+]  12
Hits/KSLOC@level+ = [0+] 9.66478 [1+] 4.35662 [2+] 3.24293 [3+] 0.537644 [4+] 0.426701 [5+] 0.0512042
Symlinks skipped = 1 (--allowlink overrides but see doc for security issue)
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.