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-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz.cpp
Examining data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz_utils.cpp
Examining data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz_utils.h
Examining data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp
Examining data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c
Examining data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/cmdline.c
Examining data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/cmdline.h
Examining data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/debug.c
Examining data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/debug.h
Examining data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/yuv420sp2rgb.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/app_process/app_main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/backup/backup.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/AudioPlayer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/AudioPlayer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/bootanimation_main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/create.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/idmap.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/idmap.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/inspect.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/scan.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/interrupter/interrupter.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/interrupter/interrupter.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/cmds/screencap/screencap.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/BindTest.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/GraphicsExternGlue.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/GraphicsRegisterGlue.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/AutoDecodeCancel.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/AutoDecodeCancel.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/AvoidXfermode.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/AvoidXfermode.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/BitmapFactory.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/BitmapFactory.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/BitmapRegionDecoder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Camera.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/CanvasProperty.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/ColorFilter.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/DrawFilter.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/FontFamily.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Graphics.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/GraphicsJNI.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/HarfBuzzNGFaceSkia.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/HarfBuzzNGFaceSkia.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Interpolator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/MaskFilter.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Matrix.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Matrix.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/MinikinSkia.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/MinikinUtils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/MinikinUtils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Movie.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/NinePatch.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/NinePatchImpl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/NinePatchPeeker.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/NinePatchPeeker.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Paint.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Paint.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/PaintImpl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Path.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/PathEffect.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/PathMeasure.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Picture.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Picture.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/PorterDuff.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Rasterizer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Region.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Region.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/RtlProperties.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Shader.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/SurfaceTexture.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Typeface.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/TypefaceImpl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/TypefaceImpl.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Utils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Utils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Xfermode.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/YuvToJpegEncoder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/YuvToJpegEncoder.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/pdf/PdfDocument.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/pdf/PdfRenderer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/poly.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/poly_clip.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/util.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_animation_PropertyValuesHolder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_app_NativeActivity.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_app_backup_FullBackup.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_backup_BackupDataInput.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_backup_BackupDataOutput.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_backup_BackupHelperDispatcher.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_backup_FileBackupHelperBase.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_content_res_Configuration.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_content_res_ObbScanner.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteCommon.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteCommon.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteConnection.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteDebug.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteGlobal.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_ddm_DdmHandleNativeHeap.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_emoji_EmojiFactory.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_graphics_Canvas.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_graphics_Picture.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_Camera.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_Radio.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SensorManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SerialPort.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_UsbDevice.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_UsbDeviceConnection.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_UsbRequest.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_CameraMetadata.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_legacy_PerfMeasurement.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_location_ActivityRecognitionHardware.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioErrors.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioFormat.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioRecord.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioSystem.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioTrack.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioTrack.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_DeviceCallback.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_DeviceCallback.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_JetPlayer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_RemoteDisplay.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_ToneGenerator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_TrafficStats.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_nio_utils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_nio_utils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_EGL14.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_EGLExt.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES10.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES10Ext.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES11.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES11Ext.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES20.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES30.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES31.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES31Ext.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_MemoryFile.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_MessageQueue.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_MessageQueue.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Parcel.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Parcel.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_SELinux.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_SystemClock.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_SystemProperties.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Trace.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_UEventObserver.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_server_NetworkManagementSocketTagger.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_server_Watchdog.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_text_AndroidBidi.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_text_AndroidCharacter.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_text_StaticLayout.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_AssetManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_FileObserver.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Log.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Log.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_StringBlock.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_XmlBlock.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_DisplayEventReceiver.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_DisplayListCanvas.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_GraphicBuffer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_GraphicBuffer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_HardwareLayer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_InputChannel.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_InputChannel.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_InputDevice.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_InputDevice.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_InputEventReceiver.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_InputEventSender.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_InputQueue.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_KeyCharacterMap.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_KeyCharacterMap.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_KeyEvent.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_KeyEvent.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_MotionEvent.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_MotionEvent.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_PointerIcon.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_PointerIcon.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_RenderNode.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_RenderNodeAnimator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_Surface.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_SurfaceControl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_SurfaceSession.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_TextureView.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_ThreadedRenderer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_VelocityTracker.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_os_Zygote.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_util_VirtualRefBasePtr.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_google_android_gles_jni_GLImpl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/core_jni_helpers.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/drm/jni/android_drm_DrmManagerClient.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/AndroidRuntime.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/Log.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_app_NativeActivity.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_content_res_Configuration.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_graphics_SurfaceTexture.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_hardware_camera2_CameraMetadata.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_util_AssetManager.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_view_InputQueue.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_view_Surface.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/android_runtime/android_view_SurfaceSession.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/Asset.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/AssetDir.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/AssetManager.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/AttributeFinder.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/BackupHelpers.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ByteBucketArray.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/CursorWindow.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ObbFile.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ResourceTypes.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/StreamingZipInflater.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/TypeWrappers.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ZipFileRO.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ZipUtils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/misc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/private/hwui/DrawGlInfo.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/storage/IMountService.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/storage/IMountServiceListener.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/storage/IMountShutdownObserver.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/include/storage/IObbActionListener.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetDir.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupData.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/CursorWindow.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ObbFile.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/StreamingZipInflater.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/TypeWrappers.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ZipFileRO.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ZipUtils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/misc.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/AttributeFinder_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ByteBucketArray_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/Config_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/Idmap_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ObbFile_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ResTable_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/Split_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TestHelpers.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TestHelpers.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/Theme_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TypeWrappers_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ZipUtils_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/app/R.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/app/app_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/basic/R.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/basic/basic_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/basic/split_de_fr_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/basic/split_hdpi_v4_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/basic/split_xhdpi_v4_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/basic/split_xxhdpi_v4_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/feature/feature_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/lib/R.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/lib/lib_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/overlay/overlay_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/system/R.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/data/system/system_arsc.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/clock_recovery.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/clock_recovery.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_clock.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_clock.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_clock_service.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_clock_service.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_config_service.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_config_service.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server_api.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server_packets.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server_packets.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/diag_thread.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/diag_thread.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/utils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/utils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AmbientShadow.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AmbientShadow.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AnimationContext.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AnimationContext.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Animator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Animator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AnimatorManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AnimatorManager.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AssetAtlas.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/AssetAtlas.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Caches.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Caches.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Canvas.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/CanvasProperty.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/CanvasState.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/CanvasState.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ClipArea.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ClipArea.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DamageAccumulator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DamageAccumulator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Debug.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DeferredDisplayList.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DeferredDisplayList.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DeferredLayerUpdater.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DeferredLayerUpdater.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DisplayList.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DisplayList.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DisplayListCanvas.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DisplayListCanvas.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DisplayListOp.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Dither.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Dither.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Extensions.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Extensions.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FboCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FboCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FloatColor.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FrameInfo.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FrameInfo.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FrameInfoVisualizer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FrameInfoVisualizer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GammaFontRenderer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GammaFontRenderer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Glop.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GlopBuilder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GlopBuilder.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GradientCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GradientCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/IContextFactory.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Image.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Image.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Interpolator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Interpolator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/JankTracker.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/JankTracker.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Layer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Layer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/LayerCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/LayerCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/LayerRenderer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/LayerRenderer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Matrix.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Matrix.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/OpenGLRenderer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/OpenGLRenderer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Outline.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Patch.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Patch.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PatchCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PatchCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PathCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PathCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PathTessellator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PathTessellator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PixelBuffer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PixelBuffer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Program.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Program.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ProgramCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ProgramCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Properties.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Properties.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Rect.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderBuffer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderBufferCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderBufferCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderNode.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderNode.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderProperties.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderProperties.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ResourceCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ResourceCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RevealClip.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ShadowTessellator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/ShadowTessellator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/SkiaCanvas.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/SkiaCanvasProxy.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/SkiaCanvasProxy.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/SkiaShader.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/SkiaShader.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Snapshot.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Snapshot.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/SpotShadow.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/SpotShadow.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TessellationCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TessellationCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TextDropShadowCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TextDropShadowCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Texture.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Texture.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TextureCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TextureCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TreeInfo.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/UvMapper.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Vector.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Vertex.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/VertexBuffer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/font/CacheTexture.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/font/CacheTexture.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/font/CachedGlyphInfo.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/font/Font.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/font/Font.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/font/FontUtil.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/Blend.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/Blend.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/MeshState.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/MeshState.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/PixelBufferState.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/PixelBufferState.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/RenderState.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/RenderState.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/Scissor.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/Scissor.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/Stencil.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/Stencil.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/TextureState.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderstate/TextureState.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/CanvasContext.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/CanvasContext.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/DrawFrameTask.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/DrawFrameTask.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/EglManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/EglManager.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/RenderProxy.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/RenderProxy.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/RenderTask.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/RenderTask.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/RenderThread.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/RenderThread.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/TimeLord.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/TimeLord.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/TestContext.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/TestContext.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/nullegl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/nullgles.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/thread/Barrier.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/thread/Future.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/thread/Signal.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/thread/Task.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/thread/TaskManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/thread/TaskManager.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/thread/TaskProcessor.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/unit_tests/ClipAreaTests.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/unit_tests/DamageAccumulatorTests.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/unit_tests/LinearAllocatorTests.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/unit_tests/main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/Blur.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/Blur.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/GLUtils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/GLUtils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/LinearAllocator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/LinearAllocator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/Macros.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/MathUtils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/PaintUtils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/Pair.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/RingBuffer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/SortedList.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/SortedListImpl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/SortedListImpl.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/Timing.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/TinyHashMap.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/utils/TraceUtils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/input/PointerController.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/input/PointerController.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/input/SpriteController.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/input/SpriteController.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/storage/IMountService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/storage/IMountServiceListener.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/storage/IMountShutdownObserver.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/storage/IObbActionListener.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/linux/usb/f_accessory.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/accessory.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/accessory.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/audio.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/f_accessory.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/hid.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/usb.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_AmrInputStream.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_ImageReader.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_ImageWriter.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaCodec.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaCodec.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaCodecList.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaCrypto.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaCrypto.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaDataSource.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaDataSource.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaDrm.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaDrm.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaExtractor.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaExtractor.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaHTTPConnection.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaHTTPConnection.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaMetadataRetriever.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaMuxer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaPlayer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaProfiles.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaRecorder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaScanner.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaSync.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaSync.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_PlaybackParams.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_ResampleInputStream.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_SyncParams.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_SyncParams.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_Utils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_Utils.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDatabase.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpServer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_Visualizer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/SoundPool.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/SoundPool.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/SoundPoolThread.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/SoundPoolThread.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/android_media_SoundPool.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_gl_environment.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_gl_environment.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_gl_frame.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_gl_frame.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_init.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_buffer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_buffer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_frame.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_frame.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_program.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_program.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_shader_program.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_shader_program.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_util.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_util.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_vertex_frame.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_vertex_frame.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/base/logging.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/base/utilities.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/geometry.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/geometry.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/gl_buffer_interface.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/gl_env.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/gl_env.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/gl_frame.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/gl_frame.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/native_frame.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/native_frame.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/native_program.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/native_program.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/shader_program.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/shader_program.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/statistics.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/statistics.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/time_util.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/time_util.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/value.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/value.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/vertex_frame.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/native/core/vertex_frame.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/base/geometry.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/base/geometry.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/base/time_util.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/base/time_util.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/base/utilities.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/base/vec_types.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/imageproc/brightness.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/imageproc/contrast.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/imageproc/invert.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/media/mca/filterpacks/native/imageproc/to_rgba.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/asset_manager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/configuration.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/input.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/looper.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/native_activity.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/native_window.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/net.c
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/obb.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/sensor.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/storage_manager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/android/trace.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/native/graphics/jni/bitmap.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/packages/PrintSpooler/jni/com_android_printspooler_util_BitmapSerializeUtils.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/packages/services/PacProcessor/jni/com_android_pacprocessor_PacNative.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/packages/services/PacProcessor/jni/jni_init.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/rs/jni/android_renderscript_RenderScript.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_AlarmManagerService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_AssetAtlasService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_ConsumerIrService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_PersistentDataBlockService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_SerialService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_SystemServer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbDeviceManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbHostManager.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbMidiDevice.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_VibratorService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_fingerprint_FingerprintService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_input_InputApplicationHandle.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_input_InputApplicationHandle.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_input_InputManagerService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_input_InputWindowHandle.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_input_InputWindowHandle.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_lights_LightsService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_FlpHardwareProvider.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_power_PowerManagerService.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_power_PowerManagerService.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_tv_TvInputHal.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/onload.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptUtil.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptUtil.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptXml.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptXml.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ApkBuilder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ApkBuilder.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Bundle.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/CacheUpdater.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Command.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ConfigDescription.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/CrunchCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/CrunchCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/DirectoryWalker.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/FileFinder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/FileFinder.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/IndentPrinter.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Main.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/OutputSet.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Package.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceFilter.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceFilter.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceIdCache.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceIdCache.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/SdkConstants.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/SourcePos.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/SourcePos.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/StringPool.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/StringPool.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Symbol.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/WorkQueue.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/WorkQueue.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/XMLNode.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/XMLNode.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/pseudolocalize.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/pseudolocalize.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/AaptConfig_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/AaptGroupEntry_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/CrunchCache_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/FileFinder_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/MockCacheUpdater.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/MockDirectoryWalker.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/MockFileFinder.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/Pseudolocales_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/ResourceFilter_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/ResourceTable_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/tests/TestHelper.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/AppInfo.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BigBuffer.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BigBuffer.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BigBuffer_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BinaryResourceParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BinaryResourceParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BindingXmlPullParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BindingXmlPullParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/BindingXmlPullParser_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Compat_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Debug.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Debug.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Files.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Files.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Flag.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Flag.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/JavaClassGenerator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/JavaClassGenerator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/JavaClassGenerator_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Linker.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Linker.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Linker_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Logger.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Logger.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestMerger.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestMerger.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestMerger_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestParser_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestValidator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ManifestValidator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Maybe.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Maybe_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/MockResolver.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/NameMangler.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/NameMangler_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ProguardRules.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ProguardRules.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResChunkPullParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResChunkPullParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Resolver.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Resource.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Resource.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceParser_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceTable.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceTable.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceTableResolver.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceTableResolver.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceTable_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceTypeExtensions.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceValues.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ResourceValues.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Resource_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ScopedXmlPullParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ScopedXmlPullParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ScopedXmlPullParser_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/SdkConstants.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/SdkConstants.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Source.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/SourceXmlPullParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/SourceXmlPullParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/StringPiece.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/StringPiece_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/StringPool.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/StringPool.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/StringPool_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/TableFlattener.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/TableFlattener.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Util.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Util.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Util_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XliffXmlPullParser.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XliffXmlPullParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XliffXmlPullParser_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlDom.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlDom.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlDom_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlFlattener.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlFlattener.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlFlattener_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlPullParser.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/AST.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/AST.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/Type.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/Type.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl_language.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl_language.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java_binder.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java_rpc.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/options.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/options.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/options_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/search_path.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/search_path.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/obbtool/Main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/obbtool/pbkdf2gen.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Abi.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Abi.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Grouper.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Grouper.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Grouper_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Rule.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Rule.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/RuleGenerator.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/RuleGenerator.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/RuleGenerator_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/Rule_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/SplitDescription.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/SplitDescription.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/SplitSelector.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/SplitSelector.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/SplitSelector_test.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/TestRules.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/split-select/TestRules.h
Examining data/android-framework-23-6.0.1+r72/frameworks/base/tools/validatekeymaps/Main.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AmrCodec.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioCodec.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioCodec.h
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/EchoSuppressor.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/EchoSuppressor.h
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/G711Codec.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/GsmCodec.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/RtpStream.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/rtp_jni.cpp
Examining data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/util.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/include/LocalArray.h
Examining data/android-framework-23-6.0.1+r72/libcore/include/ScopedIcuLocale.h
Examining data/android-framework-23-6.0.1+r72/libcore/include/ScopedJavaUnicodeString.h
Examining data/android-framework-23-6.0.1+r72/libcore/include/ScopedPthreadMutexLock.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/benchmark/native/libcore_io_Memory_bench.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/AsynchronousCloseMonitor.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/AsynchronousCloseMonitor.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/ExecStrings.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/ExecStrings.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/IcuUtilities.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/IcuUtilities.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/JniException.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/JniException.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/NetFd.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/NetworkUtilities.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/NetworkUtilities.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/Portability.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/Register.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/ZipUtilities.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/ZipUtilities.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/android_system_OsConstants.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/canonicalize_path.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/cbigint.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/cbigint.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_io_File.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_io_FileDescriptor.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_io_ObjectStreamClass.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_Character.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_Double.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_Float.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_Math.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_ProcessManager.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_RealToString.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StrictMath.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_System.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_math_NativeBN.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_nio_ByteOrder.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_text_Bidi.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_jar_StrictJarFile.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_regex_Matcher.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_regex_Pattern.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_zip_Adler32.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_zip_CRC32.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_zip_Deflater.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_zip_Inflater.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_AlphabeticIndex.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeCollation.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeDecimalFormat.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeIDN.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeNormalizer.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativePluralRules.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_TimeZoneNames.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_Transliterator.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_AsynchronousCloseMonitor.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Memory.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/readlink.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/readlink.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/sun_misc_Unsafe.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/valueOf.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/valueOf.h
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/test/native/dalvik_system_JniTest.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/test/native/libcore_io_Memory_test.cpp
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/test/resources/blob.c
Examining data/android-framework-23-6.0.1+r72/libcore/luni/src/test/resources/hyts_Foo.c

FINAL RESULTS:

data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:50:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod(argv[i], S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/app_process/app_main.cpp:170: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-framework-23-6.0.1+r72/frameworks/base/cmds/app_process/app_main.cpp:173: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/idmap.cpp:213: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/idmap.cpp:214: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/scan.cpp:54: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:832: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:285: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-framework-23-6.0.1+r72/libcore/luni/src/main/native/canonicalize_path.cpp:99:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
            if (!readlink(resolved.c_str(), symlink)) {
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:670:54:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    throwIfMinusOne(env, "chmod", TEMP_FAILURE_RETRY(chmod(path.c_str(), mode)));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:678:54:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1412:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    if (!readlink(path.c_str(), result)) {
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1864:26:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    NATIVE_METHOD(Posix, chmod, "(Ljava/lang/String;I)V"),
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1865:26:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    NATIVE_METHOD(Posix, chown, "(Ljava/lang/String;II)V"),
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1933:26:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    NATIVE_METHOD(Posix, readlink, "(Ljava/lang/String;)Ljava/lang/String;"),
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/readlink.cpp:23:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
bool readlink(const char* path, std::string& result) {
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/readlink.cpp:29:23:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        ssize_t len = readlink(path, &buf[0], buf.size());
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/readlink.h:25:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
bool readlink(const char* path, std::string& result);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:35: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, message, ap);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:87: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(pPath + pathLen, pExtension);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:90: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(pPath + index, pExtension);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:96: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(pPath + pathLen, pExtension);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:567: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(pOutputFileBuff, pInput);
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:82:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(node->buf, buf);
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:86:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(node->buf, buf2);
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/debug.h:15:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, ##msg);                          \
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/debug.h:23:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr,                               \
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/debug.h:34:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, ##msg);   \
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/debug.h:76: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(stdout, ##x);                         \
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/debug.h:84: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(stdout, ##x);                         \
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/AudioPlayer.cpp:105:21:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
                if (sscanf(values, "%s", stringValue) == 1) {
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:294:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            (access(SYSTEM_ENCRYPTED_BOOTANIMATION_FILE, R_OK) == 0) &&
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:297:15:  [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(OEM_BOOTANIMATION_FILE, R_OK) == 0) &&
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:300:15:  [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_BOOTANIMATION_FILE, R_OK) == 0) &&
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:491:18:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        else if (sscanf(l, " %c %d %d %s #%6s", &pathType, &count, &pause, path, color) >= 4) {
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/idmap.cpp:101: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-framework-23-6.0.1+r72/frameworks/base/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, W_OK) == 0;
data/android-framework-23-6.0.1+r72/frameworks/base/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, R_OK) == 0;
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/inspect.cpp:119: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/inspect.cpp:132: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/inspect.cpp:142: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-framework-23-6.0.1+r72/frameworks/base/cmds/screencap/screencap.cpp:101: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:484: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:511: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:540: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:808: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:814: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Graphics.cpp:61: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Graphics.cpp:100: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:231: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:320: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteConnection.cpp:304: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES30.cpp:1563: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES30.cpp:1565: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES31.cpp:2786: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_GLES31.cpp:2793: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:889: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:891: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_AssetManager.cpp:165:17:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execl(AssetManager::IDMAP_BIN, AssetManager::IDMAP_BIN, "--scan",
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:783: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:391:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(text, "%" PRId32, pid);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:191: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:208: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:281: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:285: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:289: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:73: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:469:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    return sprintf(buf, "%d %s=%s\n", len, key, value);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:906: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:965: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1166: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1271: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1351: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1482: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1530: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/OpenGLRenderer.cpp:321: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(buf, BUFFER_SIZE, fmt, ap);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/nullgles.cpp:269:86:  [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.
void* glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) {
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaPlayer.cpp:188: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaRecorder.cpp:324:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(params, "max-filesize=%" PRId64, max_filesize_bytes);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp:50:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!access("/dev/cpuset/tasks", F_OK)) {
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp:95:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!access("/dev/cpuset/tasks", F_OK)) {
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:117:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:128:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort");
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:161:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(ifr4.ifr_name, "%s:%d", name, count);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_tv_TvInputHal.cpp:463: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(audio_address, srcEvent->device_info.audio_address);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2380: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2548: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:2422: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:127: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:132: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:232: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:714: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:721: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:129: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:134: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:153: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, storageName);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:240: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/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*)mFileName, (char*)src.mFileName);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:729: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:81: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-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:751: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.
            if (access(path.data(), F_OK) != 0) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:786:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf(line, "%s %[^; \r\n\t];", type, fullname);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java.cpp:19:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(name, "%s%d", m_base.c_str(), m_index);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/search_path.cpp:49:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (0 == access(f.c_str(), R_OK)) {
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_ProcessManager.cpp:159:5:  [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(commands[0], commands);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:418: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(locale_name_, locale_name);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp:155:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(&result[0], name);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:640:33:  [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 rc = TEMP_FAILURE_RETRY(access(path.c_str(), mode));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:747:24:  [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.
    TEMP_FAILURE_RETRY(execv(path.c_str(), argv.get()));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1860: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.
    NATIVE_METHOD(Posix, access, "(Ljava/lang/String;I)Z"),
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1872:26:  [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.
    NATIVE_METHOD(Posix, execv, "(Ljava/lang/String;[Ljava/lang/String;)V"),
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:270:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(copy, bytes);
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/cmdline.c:79:13:  [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.
        c = getopt_long (argc, argv,
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/app_process/app_main.cpp:154: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-framework-23-6.0.1+r72/frameworks/base/cmds/screencap/screencap.cpp:117: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:1026: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:1054: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_ThreadedRenderer.cpp:53: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_ThreadedRenderer.cpp:100: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:97:28:  [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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:337: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:661: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:55:30:  [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.
        m_external_storage = getenv("EXTERNAL_STORAGE");
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ObbFile_test.cpp:41:33:  [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* externalStorage = getenv("EXTERNAL_STORAGE");
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:1232: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_ProcessManager.cpp:49: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* properties_fd_string = getenv("ANDROID_PROPERTY_WORKSPACE");
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_System.cpp:93:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* library_path = getenv("LD_LIBRARY_PATH");
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:863:34:  [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* dataPathPrefix = getenv("ANDROID_DATA");
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:893: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* systemPathPrefix = getenv("ANDROID_ROOT");
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:924:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    return env->NewStringUTF(getenv(name.c_str()));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1888:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    NATIVE_METHOD(Posix, getenv, "(Ljava/lang/String;)Ljava/lang/String;"),
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:149:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((pIn = fopen(pInput, "rb")) == NULL) {
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:209: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(pSourceImage + y * stride, row_pointers[y], stride);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:247:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((pIn = fopen(pInput, "rb")) == NULL) {
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:337: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).
    if ((pOut = fopen(pOutput, "wb")) == NULL) {
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:423: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).
    if ((pOut = fopen(pOutput, "wb")) == NULL) {
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:22:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZE*2+3];
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:52: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(argv[i], O_RDWR);
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:71: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[BUFSIZE+2];
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:84: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 buf2[(BUFSIZE*2)+3];
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/yuv420sp2rgb.c:202:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char header[1024];
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/yuv420sp2rgb.c:230: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).
    ifd = open(infile, O_RDONLY);
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/yuv420sp2rgb.c:235: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).
    ofd = open(outfile, O_RDWR | O_CREAT, 0664);
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/app_process/app_main.cpp:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/cmds/app_process/app_main.cpp:283: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/AudioPlayer.cpp:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringValue[MAX_LINE_LENGTH];
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/AudioPlayer.cpp:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LINE_LENGTH];
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:111: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:290: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 || !strcmp("trigger_restart_min_framework", decrypt);
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:295: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).
            ((zipFile = ZipFileRO::open(SYSTEM_ENCRYPTED_BOOTANIMATION_FILE)) != NULL)) ||
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:298: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).
            ((zipFile = ZipFileRO::open(OEM_BOOTANIMATION_FILE)) != NULL)) ||
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:301: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).
            ((zipFile = ZipFileRO::open(SYSTEM_BOOTANIMATION_FILE)) != NULL))) {
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:397:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:399: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:415: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:429: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:481: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:482: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[ANIM_ENTRY_NAME_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/bootanimation_main.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/bootanimation_main.cpp:39:27:  [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 noBootAnimation = atoi(value);
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp:85: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-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp:89: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-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp:146: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-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp:199: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/create.cpp:18:45:  [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).
        UniquePtr<ZipFileRO> zip(ZipFileRO::open(zip_path));
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/idmap.cpp:210: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/inspect.cpp:42: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/inspect.cpp:108: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/inspect.cpp:169: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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/scan.cpp:39: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, "w");
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/scan.cpp:124:45:  [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).
        UniquePtr<ZipFileRO> zip(ZipFileRO::open(path));
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/scan.cpp:188: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 overlay_apk_path[PATH_MAX + 1];
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/screencap/screencap.cpp:123: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-framework-23-6.0.1+r72/frameworks/base/cmds/screencap/screencap.cpp:140: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-framework-23-6.0.1+r72/frameworks/base/cmds/screencap/screencap.cpp:200: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 fb = open(fbpath, O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:572:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:573:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:574:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:575:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:576:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:577:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:578:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:579:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:580:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:581:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char jitcodecachesizeOptsBuf[sizeof("-Xjitcodecachesize:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:582:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:583:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:584:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.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 heaptargetutilizationOptsBuf[sizeof("-XX:HeapTargetUtilization=")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:586:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:587:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.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 dex2oatXmxImageFlagsBuf[sizeof("-Xmx")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:589:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:590:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:591:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:592:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:593:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:594:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:595:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:596:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:597:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:598:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:599:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:600:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:601:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/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 voldDecryptBuf[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 profilePeriod[sizeof("-Xprofile-period:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 profileDuration[sizeof("-Xprofile-duration:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 profileInterval[sizeof("-Xprofile-interval:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 profileBackoff[sizeof("-Xprofile-backoff:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 profileTopKThreshold[sizeof("-Xprofile-top-k-threshold:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 profileTopKChangeThreshold[sizeof("-Xprofile-top-k-change-threshold:")-1 +
data/android-framework-23-6.0.1+r72/frameworks/base/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 profileType[sizeof("-Xprofile-type:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 profileMaxStackDepth[sizeof("-Xprofile-max-stack-depth:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 localeOption[sizeof("-Duser.locale=") + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 lockProfThresholdBuf[sizeof("-Xlockprofthreshold:")-1 + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 nativeBridgeLibrary[sizeof("-XX:NativeBridge=") + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 cpuAbiListBuf[sizeof("--cpu-abilist=") + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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 methodTraceFileBuf[sizeof("-Xmethod-trace-file:") + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:623:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/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 fingerprintBuf[sizeof("-Xfingerprint:") + PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:657: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:830: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.cpp:425: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.cpp:1051: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.cpp:1090:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(p->writeInplace(count * sizeof(SkPMColor)),
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.cpp:1137: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.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(abp.pointer(), src, bitmap.getSize());
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Bitmap.cpp:1277: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/BitmapFactory.cpp:352: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/BitmapRegionDecoder.cpp:89: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[100];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/FontFamily.cpp:102: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/NinePatchPeeker.cpp:45: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/NinePatchPeeker.cpp:48: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Paint.cpp:376: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 canonicalChars[ULOC_FULLNAME_CAPACITY];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Paint.cpp:381: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 likelyChars[ULOC_FULLNAME_CAPACITY];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Paint.cpp:411: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 langTag[ULOC_FULLNAME_CAPACITY];
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/util.cpp:141: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/util.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(pDest + 4, pTransformed + 4 * (pIndices[i + 1] - minIndex), 4 * sizeof(float));
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/util.cpp:143: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/util.cpp:764: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(data, ctable->readColors(), ctable->count() * sizeof(SkPMColor));
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android/opengl/util.cpp:765: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(pixels, p, size);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:230: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:235: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:319: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:324: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteConnection.cpp:303: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteConnection.cpp:527: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_Camera.cpp:514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_Camera.cpp:860: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_Camera.cpp:861: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_Camera.cpp:920: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:209: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:303: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:403: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:583: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:608: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:704: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_UsbDeviceConnection.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 buffer[16384];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_UsbDeviceConnection.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(bytes, buffer, length);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_CameraMetadata.cpp:318: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:242: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.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).
    status_t open();
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.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).
status_t JniOutputStream::open() {
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:379: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:446: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:468: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:518: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1217: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1229: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1257: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1576: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1579: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1582: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp:338: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp:339: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioSystem.cpp:572: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioTrack.cpp:580: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:570:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_LocalSocketImpl.cpp:598: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  ipaddr[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char gateway[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    dns1[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    dns2[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    dns3[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    dns4[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:109: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 *dns[5] = {dns1, dns2, dns3, dns4, NULL};
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  server[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vendorInfo[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char domains[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_net_NetUtils.cpp:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mtu[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:226:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:423:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[128];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:426:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tmp, "/proc/%d/smaps", pid);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:427: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(tmp, "r");
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:502:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:507:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[128];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:515:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tmp, "/proc/%d/smaps", pid);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:516: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(tmp, "r");
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:530: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).
                    pss += atoi(c);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:537: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).
                    uss += atoi(c);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:574:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:576: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("/proc/vmallocinfo", "r");
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.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 buffer[1024];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:623: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:698: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("/sys/block/zram0/mem_used_total", O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:727: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(BINDER_STATS, "r");
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:732:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:734:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:757: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:904:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* in = fopen(maps, "r");
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:909:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:974: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(fileName8.string(), O_CREAT | O_WRONLY | O_NOFOLLOW, 0666);  /* -rw-rw-rw- */
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Parcel.cpp:368: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Parcel.cpp:489: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.string(), flags, realMode);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Parcel.cpp:594: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Parcel.cpp:617: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_AssetManager.cpp:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_AssetManager.cpp:214: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_AssetManager.cpp:273: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:686: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:782: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:987:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:991: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:1015: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:1017: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:1031: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:1059:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:1063:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:98: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.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(&buf[1 + sizeof(len)], str, len);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:129: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:130: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:137: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:143: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp: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(&buf[pos], &floatVal, sizeof(floatVal));
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:230: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Log.cpp:61: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 buf2[200];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:129: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:161: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:180:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:196: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:199: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:201: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:202: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:216: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:230: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:376:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:379: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:381: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:389: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:439: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:446:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:552: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:663: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:853: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:864:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:923:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[64];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:927: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(filename, "r");
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:933:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:986: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:989: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:990: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:993: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_DisplayListCanvas.cpp:218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_DisplayListCanvas.cpp:226: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(prop) == 1 ? JNI_TRUE : JNI_FALSE;
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:130: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:139: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:242:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:257: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:531:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:553: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:104: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.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 buffer[384];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:379: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:413:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:426:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char schedPath[35];
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:428:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int schedBoostFile = open(schedPath, O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/include/androidfw/AssetManager.h:154: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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ObbFile.h:131: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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ResourceTypes.h:936: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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ResourceTypes.h:950: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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ResourceTypes.h:1129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ResourceTypes.h:1133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ResourceTypes.h:1237: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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/ResourceTypes.h:1240: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:71: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:72: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, ": %dK\n", (int)size);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:134: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:195: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:471: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:476: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:641: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:648: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:670: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:787: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.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 buf[256]; // 256 chars should be enough for anyone...
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:135: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(newStr, str, len+1);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:422: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(mLocale, kTlPrefix, kTlPrefixLen);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:424: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(mLocale + kTlPrefixLen, locale + kFilPrefixLen,
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:461: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:499: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:604: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:784: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:789:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:1555: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:1885: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.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 filenameBuf[128];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:297: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:309: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:413: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:456:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf + 148, "%06o", sum); // the trailing space is already in place
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:543: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:563: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:564: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:632: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:650: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:777: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:857: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:936: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1072: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1289: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1441: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/CursorWindow.cpp:298: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:215: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:216: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:219: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-framework-23-6.0.1+r72/frameworks/base/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, yDivs, patch.numYDivs * sizeof(int32_t));
data/android-framework-23-6.0.1+r72/frameworks/base/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, colors, patch.numColors * sizeof(uint32_t));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:465: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1579: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1763: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1768: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1768: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1769: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1791: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1800: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1801: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1824: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:1828: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:2596: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:2616:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:2637: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]) const {
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:2655: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:2670: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:3230: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:3668: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:3685: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4167: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4392: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4803:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:5712:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:6586:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/AttributeFinder_test.cpp:28: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(mAttrs, attrs, sizeof(*attrs) * len);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:60: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).
        int fd = ::open(mFilename.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:75: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(mFilename.string(), O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:84: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(mFilename.string(), O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:117: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(mFilename.string(), O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:125: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(mFilename.string(), O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:165: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(mFilename.string(), O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:175: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(mFilename.string(), O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:220: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(mFilename.string(), O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:227: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(mFilename.string(), O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:259: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(mFilename.string(), O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:268: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(mFilename.string(), O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:320: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(mFilename.string(), O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:328: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(mFilename.string(), O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:388: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(mFilename.string(), O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/BackupData_test.cpp:394: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(mFilename.string(), O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:31: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 out[4] = { 1, 1, 1, 1};
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:54: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 out[4] = { 1, 1, 1, 1};
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:70: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 out[4] = { 1, 1, 1, 1};
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:94:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char out[4] = { 1, 1, 1, 1};
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:106: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 out[4] = { 1, 1, 1, 1};
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:126:10:  [2] (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->localeScript, script, 4);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:130:10:  [2] (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->localeVariant, variant, strlen(variant));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:184:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = { 1, 1, 1, 1};
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/Idmap_test.cpp:52: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 targetName[256] = "com.android.test.basic";
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ObbFile_test.cpp:46: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).
        int fd = ::open(mFileName.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ObbFile_test.cpp:68: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_SIZE] = {0x01, 0x10, 0x55, 0xAA, 0xFF, 0x00, 0x5A, 0xA5};
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TypeWrappers_test.cpp:63: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, &t, sizeof(t));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TypeWrappers_test.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(p, offsets, sizeof(offsets));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TypeWrappers_test.cpp:67: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, &e1, sizeof(e1));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TypeWrappers_test.cpp:69: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, &v1, sizeof(v1));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TypeWrappers_test.cpp:71: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, &e2, sizeof(e2));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/TypeWrappers_test.cpp:73: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, &v2, sizeof(v2));
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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 hex[256];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:630: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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:666: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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:760:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:840:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:936: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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:1012:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:1076: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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:1161: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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:1188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:1282:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Caches.cpp:111: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 property[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/DisplayListCanvas.h:274: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Extensions.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 property[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FboCache.cpp:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FboCache.cpp:36: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).
        mMaxSize = atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:104: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).
        mSmallCacheWidth = atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:108: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).
        mSmallCacheHeight = atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:112: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).
        mLargeCacheWidth = atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:116: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).
        mLargeCacheHeight = atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:310: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:339: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FrameInfo.cpp:41: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GammaFontRenderer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GammaFontRenderer.cpp:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GammaFontRenderer.cpp:73:27:  [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).
        mBlackThreshold = atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GammaFontRenderer.cpp:83:27:  [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).
        mWhiteThreshold = atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GlopBuilder.cpp:292: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GlopBuilder.cpp:293: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GlopBuilder.cpp:294: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GlopBuilder.cpp:295: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GradientCache.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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GradientCache.cpp:278: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/GradientCache.h:80: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-framework-23-6.0.1+r72/frameworks/base/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->positions.get(), positions, count * sizeof(float));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/LayerCache.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 property[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Matrix.cpp:266: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/OpenGLRenderer.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 property[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/OpenGLRenderer.cpp:318:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Patch.cpp:144: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PatchCache.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PatchCache.cpp:45: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).
        mMaxSize = KB(atoi(property));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/PathCache.cpp:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Properties.cpp:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Properties.cpp:103:35:  [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).
        debugLevel = (DebugLevel) atoi(property);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Properties.cpp:136: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Properties.cpp:140: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/RenderBufferCache.cpp:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TessellationCache.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(&matrixData, drawTransform->data, 16 * sizeof(float));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TessellationCache.cpp:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char property[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TextDropShadowCache.cpp:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TextureCache.cpp:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/TextureCache.cpp:368: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/EglManager.cpp:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/renderthread/RenderTask.h:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mData[METHOD_INVOKE_PAYLOAD_SIZE];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/main.cpp:318:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        loopCount = atoi(argv[2]);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/main.cpp:326:22:  [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).
        frameCount = atoi(argv[3]);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c:39: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    buffer[16384];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c: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    buffer[16384];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/accessory.c:48:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                input_card = atoi(*argv);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/accessory.c:52: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).
                input_device = atoi(*argv);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/accessory.c:56: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).
                output_card = atoi(*argv);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/accessory.c:60: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).
                output_device = atoi(*argv);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/hid.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/hid.c:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/hid.c:137: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_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/hid.c:162: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 event_buf[512];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/usb.c: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    buffer[16384];
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/usb.c:68: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    buffer[16384];
data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaExtractor.cpp:560: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaExtractor.cpp:575: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaPlayer.cpp:186: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaRecorder.cpp:310:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaRecorder.cpp:311: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaRecorder.cpp:323:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_Utils.cpp:384: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDatabase.cpp:390: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDatabase.cpp:397: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDatabase.cpp:769:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDatabase.cpp:866: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(result, exifdata->data, exifdata->size);
data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDatabase.cpp:1169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpDevice.cpp:104: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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_mtp_MtpServer.cpp:62: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/mtp_usb", O_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:159: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-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:572: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-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:574: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-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:633:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p->data, lpParam, psize);
data/android-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:641: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-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:724:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp:837:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/SoundPool.cpp:64: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-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/SoundPool.cpp:588: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-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/SoundPool.cpp:883: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_frame.cpp:203: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-framework-23-6.0.1+r72/frameworks/base/media/mca/filterfw/jni/jni_native_frame.cpp:255: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp:40: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 dirfd = open(path, O_DIRECTORY, O_RDONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:297: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-framework-23-6.0.1+r72/frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:309: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-framework-23-6.0.1+r72/frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:897:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:1563: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-framework-23-6.0.1+r72/frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:1651: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-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_AlarmManagerService.cpp:101: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(fds, fds_, n_fds * sizeof(fds[0]));
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_AlarmManagerService.cpp:183: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(rtc_dev.string(), O_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_AlarmManagerService.cpp:286: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/alarm", O_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_AlarmManagerService.cpp:303: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(hctosys_path.string(), "re");
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_ConsumerIrService.cpp:43:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    err = module->methods->open(module, CONSUMERIR_TRANSMITTER,
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_PersistentDataBlockService.cpp:81: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-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_PersistentDataBlockService.cpp:91: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_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_SerialService.cpp:41: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(pathStr, O_RDWR | O_NOCTTY);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_SystemServer.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 propBuf[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbDeviceManager.cpp:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbDeviceManager.cpp:61: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(DRIVER_NAME, O_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbDeviceManager.cpp:83: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(DRIVER_NAME, O_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbDeviceManager.cpp:99: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(DRIVER_NAME, O_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbDeviceManager.cpp:111: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(DRIVER_NAME, O_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbMidiDevice.cpp:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbMidiDevice.cpp:48: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_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbMidiDevice.cpp:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_UsbMidiDevice.cpp:85: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_RDWR);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp:51:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fg_cpuset_file = fopen("/dev/cpuset/foreground/tasks", "r+");
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp:55:31:  [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).
            boost_cpuset_fd = open("/dev/cpuset/foreground/boost/tasks", O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp:67: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[17];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp:96:33:  [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).
            boost_cpuset_file = fopen("/dev/cpuset/foreground/boost/tasks", "r+");
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.cpp:100:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fg_cpuset_fd = open("/dev/cpuset/foreground/tasks", O_WRONLY);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_ActivityManagerService.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[17];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:56: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[80];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:75: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[80];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:89: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[80];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:96: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(LAST_RESUME_REASON, "r");
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char reasonline[128];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:59: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).
    int tun = open("/dev/tun", O_RDWR | O_NONBLOCK);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.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 address[65];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:273:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[IFNAMSIZ];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_fingerprint_FingerprintService.cpp:191:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path_name[PATH_MAX] = {0};
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_fingerprint_FingerprintService.cpp:192: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(path_name, pathData, pathSize);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_fingerprint_FingerprintService.cpp:221:54:  [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 (0 != (err = gContext.module->common.methods->open(hw_module, NULL, &device))) {
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp:94:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(mEvent.cec.body, event.cec.body, event.cec.length);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp:301:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    err = module->methods->open(module, HDMI_CEC_HARDWARE_INTERFACE, &device);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp:333:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(message.body, bodyPtr.get(), len);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_lights_LightsService.cpp:55:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    err = module->methods->open(module, name, &device);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_FlpHardwareProvider.cpp:236: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).
  err = module->methods->open(
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:230: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 str[INET_ADDRSTRLEN];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:248: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 str[INET6_ADDRSTRLEN];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:482:32:  [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 = module->methods->open(module, GPS_HARDWARE_MODULE_ID, &device);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:708: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(nmea, sNmeaString, length);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:820: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 buffer[maxLength+1];
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_tv_TvInputHal.cpp:322:35:  [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 = module->common.methods->open(
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_tv_TvInputHal.cpp:457: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(dstEvent, srcEvent, sizeof(tv_input_event_t));
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.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(script, config.localeScript, sizeof(config.localeScript));
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.cpp:378: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.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(((char*)buf)+end, data, size);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.cpp:1168: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.cpp:1170: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.cpp:1223: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.cpp:1280: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:299: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:330: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:575: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:710: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:711: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:742: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:764: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:786: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptConfig.cpp:812: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Command.cpp:578: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Command.cpp:2388: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Command.cpp:2471: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Command.cpp:2558: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1156: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1164: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1167: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1170: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1176: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1178: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1303: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1392: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1459: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Images.cpp:1482: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Main.cpp:330: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:1713: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2696: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2728: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2753: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2808:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2809: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2825:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:2826: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Resource.cpp:3120: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(bundle->getProguardFile(), "w+");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:315: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 numberStr[16];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:316: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(numberStr, "%d", type);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:435: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:436: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:473: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:474: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:1090: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:1091: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:1350: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:1555: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:1570: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:2419: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:3574: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:3575: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:3733: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:4462: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:4464: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/XMLNode.cpp:1065: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:168: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:196: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:387: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:453: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:521: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:611: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:729: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.cpp:648: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.cpp:702: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.cpp:803: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.cpp:1052: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.cpp:1251: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipFile.cpp:1262: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:54: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:85: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:311: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:446: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.c_str());
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:447: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.c_str());
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:478: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.c_str());
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:500: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.c_str());
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:522: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.c_str());
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ConfigDescription.cpp:548: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.c_str());
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.cpp:253: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.cpp:257: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.h:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char language[4];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.h: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 region[4];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.h: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 script[4];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale.h:33:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Main.cpp:742: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).
        if (zipFile->open(source.path.data(), ZipFile::kOpenReadOnly) != android::NO_ERROR) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Main.cpp:817: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).
    if (outApk.open(options.output.path.data(), kOpenFlags) != android::NO_ERROR) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Main.cpp:996: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).
    if (outApk.open(options.output.path.data(), kOpenFlags) != android::NO_ERROR) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Main.cpp:1171: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).
        if (zipFile->open(source.path.data(), ZipFile::kOpenReadOnly) != android::NO_ERROR) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:91: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, length);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:158: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:516: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[pIndex].name, "npTc");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:524: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[oIndex].name, "npOl");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:527: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, &info->outlineInsetsLeft, 4 * sizeof(png_uint_32));
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:530: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[oIndex].data, &outputData, chunkSize);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:536: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[bIndex].name, "npLb");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:538: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[bIndex].data, &info->layoutBoundsLeft, chunkSize);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/SourceXmlPullParser.h:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mBuffer[16384];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/TableFlattener.cpp:548: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(package->name, reinterpret_cast<const uint16_t*>(table.getPackage().data()),
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Util.cpp:326:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, block.buffer.get(), block.size);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlDom.cpp:180:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:176: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:204: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:395: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:461: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:529: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:619: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:737: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:62: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:99: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:329: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:393: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:658: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:712: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:813: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:1062: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:1261: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.cpp:1272: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipFile.h:69: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-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:152: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(rv, text, len);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cwd[MAXPATHLEN];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:643: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).
        to = fopen(fileName.c_str(), "wb");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:645: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).
        to = fopen(options.depFileName.c_str(), "wb");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:769:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(filename.c_str(), "rb");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:777:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:778:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[1024];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:779:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullname[1024];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:884: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).
                method_item->assigned_id = atoi(method_item->id.data);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:1109: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( options.outputFileName.c_str(), 
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java.cpp:18:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java.cpp:87: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).
        to = fopen(filename.c_str(), "wb");
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java_binder.cpp:263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char transactCodeValue[60];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java_binder.cpp:264: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(transactCodeValue, "(android.os.IBinder.FIRST_CALL_TRANSACTION + %d)", index);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java_rpc.cpp: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 str[20];
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/generate_java_rpc.cpp:42: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(str, "%d", n);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.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 value[PROPERTY_VALUE_MAX];
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:893: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(buffer.i8, &output[offset], buffer.size);
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:909: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(&input[offset], buffer.i8, buffer.size);
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:977:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char codecName[16];
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:1070: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).
    gRandom = open("/dev/urandom", O_RDONLY);
data/android-framework-23-6.0.1+r72/libcore/include/LocalArray.h:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mOnStackBuffer[STACK_BYTE_COUNT];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/JniException.cpp:23:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-framework-23-6.0.1+r72/libcore/luni/src/main/native/NetworkUtilities.cpp:39: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(&tmp, &ss, sizeof(sockaddr_in6));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/NetworkUtilities.cpp:44: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(&sin.sin_addr.s_addr, &sin6.sin6_addr.s6_addr[12], 4);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_Character.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 buf[BUFSIZ]; // TODO: is there a more sensible upper bound?
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_ProcessManager.cpp:51:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    properties_fd = atoi(properties_fd_string);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_RealToString.cpp:140: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 (Temp, R, RM_SIZE * sizeof (uint64_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_RealToString.cpp:186: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 (Temp, S, SLength * sizeof (uint64_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_RealToString.cpp:198:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (Temp, R, RLength * sizeof (uint64_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:115: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 (fNoOverflow, f, sizeof (uint64_t) * index);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:129:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (f, fNoOverflow, sizeof (uint64_t) * index);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:295: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 (x, f, sizeof (uint64_t) * length);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:309: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 (x, f, sizeof (uint64_t) * length);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:334: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 (x, f, sizeof (uint64_t) * length);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:349: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 (D, x, DLength * sizeof (uint64_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:356: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 (D, y, DLength * sizeof (uint64_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:506: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 (fNoOverflow, f, sizeof (uint64_t) * index);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:521:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (f, fNoOverflow, sizeof (uint64_t) * index);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:722: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 (x, f, sizeof (uint64_t) * length);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:736: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 (x, f, sizeof (uint64_t) * length);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:761: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 (x, f, sizeof (uint64_t) * length);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:776: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 (D, x, DLength * sizeof (uint64_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:783: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 (D, y, DLength * sizeof (uint64_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_System.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 path[PATH_MAX];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_math_NativeBN.cpp:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char message[256];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_jar_StrictJarFile.cpp:128: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-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char maximizedLocaleID[ULOC_FULLNAME_CAPACITY];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:441:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_name_[ULOC_FULLNAME_CAPACITY];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:706:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char versionString[U_MAX_VERSION_STRING_LENGTH];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:831: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).
    ScopedFd fd(open(path.c_str(), O_RDONLY));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char replacementBytes[MAX_REPLACEMENT_LENGTH];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp:154: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(&result[0], "x-");
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp:279: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 invalidBytes[32] = {'\0'};
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp:413: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(callbackContext->replacementBytes, replacementBytes.get(), replacementBytes.size());
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp:515:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char replacementBytes[MAX_REPLACEMENT_LENGTH];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeDecimalFormat.cpp:251: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(ints.get(), &data[0], data.size() * sizeof(int32_t));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeDecimalFormat.cpp:377:40:  [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).
    NATIVE_METHOD(NativeDecimalFormat, open, "(Ljava/lang/String;Ljava/lang/String;CCLjava/lang/String;CLjava/lang/String;Ljava/lang/String;Ljava/lang/String;CLjava/lang/String;CLjava/lang/String;CC)J"),
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Memory.cpp:237: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, byteCount);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:933:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[NI_MAXHOST]; // NI_MAXHOST is longer than INET6_ADDRSTRLEN.
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1088:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[IF_NAMESIZE];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1241:62:  [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 = throwIfMinusOne(env, "open", TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1633: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(&req64.gr_group, &req.gr_group, sizeof(req.gr_group));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1674: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(&req64.gsr_group, &req.gsr_group, sizeof(req.gsr_group));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1675: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(&req64.gsr_source, &req.gsr_source, sizeof(req.gsr_source));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1768:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFSIZ];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1925: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).
    NATIVE_METHOD(Posix, open, "(Ljava/lang/String;II)Ljava/io/FileDescriptor;"),
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:79: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(newArray, array, capacity * sizeof(jstring));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:333: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(newBucket, existingBucket, size * sizeof(InternedString*));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:1273: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(destinationString, sourceString, stringLength + 1);
data/android-framework-23-6.0.1+r72/libcore/luni/src/test/native/libcore_io_Memory_test.cpp:49: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(src_aligned, src_buf, sizeof(T) * NUM_ELEMENTS);
data/android-framework-23-6.0.1+r72/libcore/luni/src/test/native/libcore_io_Memory_test.cpp:91: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(reinterpret_cast<void*>(src_aligned), &value, sizeof(T));
data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz.cpp:53:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cerr << std::setw(8) << read << " bytes of base64 data read\n";
data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz.cpp:56:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read <= 0) {
data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz.cpp:61:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cerr << std::setw(8) << read << " bytes of compressed data decoded\n";
data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz.cpp:65:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read <= 0) {
data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz.cpp:70:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cerr << std::setw(8) << read << " bytes of data inflated\n";
data/android-framework-23-6.0.1+r72/development/tools/btsnooz/btsnooz.cpp:84:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cerr << std::setw(8) << read << " btsnoop packets written\n";
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:67: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 pathLen = strlen(pPath);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:68: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 extensionLen = strlen(pExtension);
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:122:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((a = fgetc(pIn)) == EOF) {
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:125:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((b = fgetc(pIn)) == EOF) {
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:565: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 buffSize = strlen(pInput) + strlen(kDefaultExtension) + 1;
data/android-framework-23-6.0.1+r72/development/tools/etc1tool/etc1tool.cpp:565: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).
        size_t buffSize = strlen(pInput) + strlen(kDefaultExtension) + 1;
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:74:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                amt = read(fd, buf, amt2);
data/android-framework-23-6.0.1+r72/development/tools/line_endings/line_endings.c:94: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).
                ssize_t amt2 = strlen(root->buf);
data/android-framework-23-6.0.1+r72/development/tools/yuv420sp2rgb/cmdline.c:97:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(optarg) >= 2 && optarg[0] == '0' && optarg[1] == 'x') { \
data/android-framework-23-6.0.1+r72/frameworks/base/cmds/app_process/app_main.cpp:134: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:384: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-framework-23-6.0.1+r72/frameworks/base/cmds/bootanimation/BootAnimation.cpp:652: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-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp:98: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-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp:116: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-framework-23-6.0.1+r72/frameworks/base/cmds/hid/jni/com_android_commands_hid_Device.cpp:160: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/cmds/idmap/scan.cpp:156: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/cmds/screencap/screencap.cpp:145: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:485: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:512: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:541: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-framework-23-6.0.1+r72/frameworks/base/core/jni/AndroidRuntime.cpp:988: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:26: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:150: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android/graphics/Utils.cpp:104: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_app_NativeActivity.cpp:101: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:321: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_CursorWindow.cpp:326: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteConnection.cpp:301: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_database_SQLiteConnection.cpp:739: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SensorManager.cpp:232: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:616: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_SoundTrigger.cpp:621: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_UsbDeviceConnection.cpp:93: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_CameraMetadata.cpp:458: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_CameraMetadata.cpp:729: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_CameraMetadata.cpp:729: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_CameraMetadata.cpp:790: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).
    size_t keyLength = strlen(key);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_CameraMetadata.cpp:817: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).
            size_t strLength = strlen(str);
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:383: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:409: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:472: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:495: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:615: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1027: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1221: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1233: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_hardware_camera2_DngCreator.cpp:1259: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioRecord.cpp:254: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioRecord.cpp:480: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioRecord.cpp:515: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_media_AudioTrack.cpp:286: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_EGL14.cpp:1088: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_opengl_EGL14.cpp:1092: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:258: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:269: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:630: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_os_Debug.cpp:700:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read(fd, buffer, sizeof(buffer)-1);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_AssetManager.cpp:425: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_AssetManager.cpp:451: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Binder.cpp:1006: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:93: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_EventLog.cpp:126: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Log.cpp:60:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(chars)+sizeof(LOG_NAMESPACE)) > PROPERTY_KEY_MAX) {
data/android-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:204: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:392: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:447: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:488: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:488: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:495: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:557: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:865: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_util_Process.cpp:997: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-framework-23-6.0.1+r72/frameworks/base/core/jni/android_view_GraphicBuffer.cpp:242:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        parcel->read(*buffer);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:141: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:217: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp:341: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:267: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:466: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-framework-23-6.0.1+r72/frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:473: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/Asset.h:70: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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/Asset.h:238: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-framework-23-6.0.1+r72/frameworks/base/include/androidfw/Asset.h:294: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:442: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:760: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/Asset.cpp:769: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:103:9:  [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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:133: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(str);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:416:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            const size_t newLocaleLen = strlen(locale);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:1403: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/AssetManager.cpp:1409: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupData.cpp:241: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupData.cpp:274: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupData.cpp:352: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupData.cpp:374: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:93: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:108: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:120: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:252: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:322: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:462: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:462: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:618: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:619: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:621: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:656: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:686: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:839: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:878: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/BackupHelpers.cpp:1198: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:2721: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4653: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4654: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4655: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4656: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4657: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4658: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4659: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4660: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:4661: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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/ResourceTypes.cpp:6482: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/androidfw/tests/ConfigLocale_test.cpp:130:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         memcpy(out->localeVariant, variant, strlen(variant));
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/common_time/common_time_server.cpp:1232: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/Extensions.cpp:113:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        String8 s(current, head ? head - current : strlen(current));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:594: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/FontRenderer.cpp:698: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-framework-23-6.0.1+r72/frameworks/base/libs/hwui/tests/nullegl.cpp:128: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-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c:63: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).
        ret = usb_device_bulk_transfer(sDevice, endpoint, line, strlen(line), 1000);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c:79:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/hid.c:109:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(fd, buffer, sizeof(buffer));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/hid.c:167:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int count = read(inotify_fd, event_buf, sizeof(event_buf));
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/usb.c:72:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ret = usb_device_bulk_transfer(current_device, write_ep, line, strlen(line), 1000);
data/android-framework-23-6.0.1+r72/frameworks/base/libs/usb/tests/accessorytest/usb.c:80:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/media/jni/android_media_MediaPlayer.cpp:182: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/media/jni/soundpool/android_media_SoundPool.cpp:187: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/native/android/sensor.cpp:148: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-framework-23-6.0.1+r72/frameworks/base/packages/PrintSpooler/jni/com_android_printspooler_util_BitmapSerializeUtils.cpp:52:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t readByteCount = read(fd, readBuffer, remainingBytes);
data/android-framework-23-6.0.1+r72/frameworks/base/packages/PrintSpooler/jni/com_android_printspooler_util_BitmapSerializeUtils.cpp:86:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read) {
data/android-framework-23-6.0.1+r72/frameworks/base/packages/PrintSpooler/jni/com_android_printspooler_util_BitmapSerializeUtils.cpp:118:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read) {
data/android-framework-23-6.0.1+r72/frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:735: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-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_AlarmManagerService.cpp:227:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t err = read(fds[alarm_idx], &unused, sizeof(unused));
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_am_BatteryStatsService.cpp:120: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).
            const size_t abortPrefixLen = strlen("Abort:");
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:99:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(name, ifr4.ifr_name, IFNAMSIZ);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:106:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifr4.ifr_name, name, IFNAMSIZ);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifr4.ifr_name, name, IFNAMSIZ);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:194:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifr4.ifr_name, name, IFNAMSIZ);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_connectivity_Vpn.cpp:207:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifr4.ifr_name, name, IFNAMSIZ);
data/android-framework-23-6.0.1+r72/frameworks/base/services/core/jni/com_android_server_tv_TvInputHal.cpp:462: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* audio_address = new char[strlen(srcEvent->device_info.audio_address) + 1];
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/AaptAssets.cpp:403: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Command.cpp:1086: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Command.cpp:1986: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/Main.cpp:690: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:4461: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ResourceTable.cpp:4463: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/StringPool.cpp:486: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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:48: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:64: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:120: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:122: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:384: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.cpp:518: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.h:240: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt/ZipEntry.h:298: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Files.cpp:155: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).
        size_t n = strlen(tokenStr);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale_test.cpp:38: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).
    if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale_test.cpp:60: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).
    if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Locale_test.cpp:65: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).
    if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != 0) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:83:17:  [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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/Png.cpp:1200:16:  [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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/SourceXmlPullParser.cpp:50:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        mIn.read(mBuffer, sizeof(mBuffer) / sizeof(*mBuffer));
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/StringPiece.h:96:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        mData(str), mLength(str != nullptr ? strlen(str) : 0) {
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/StringPool.cpp:330:13:  [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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/XmlDom.cpp:182:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in->read(buffer, sizeof(buffer) / sizeof(buffer[0]));
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:50: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:66: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:122: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:124: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:151: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).
        mCDE.mFileNameLength = strlen(storageName);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:392: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.cpp:526: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.h:243: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-framework-23-6.0.1+r72/frameworks/base/tools/aapt2/ZipEntry.h:301: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-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:209: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).
    len = p ? p-name->data : strlen(name->data);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:291: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).
    char* p = str + strlen(str) - 1;
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/aidl.cpp:714: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).
    len = p ? p-name.data : strlen(name.data);
data/android-framework-23-6.0.1+r72/frameworks/base/tools/aidl/options.cpp:58: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(s);
data/android-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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-framework-23-6.0.1+r72/frameworks/base/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,
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:195:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(gRandom, &mSequence, sizeof(mSequence));
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:196:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(gRandom, &mTimestamp, sizeof(mTimestamp));
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:197:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(gRandom, &mSsrc, sizeof(mSsrc));
data/android-framework-23-6.0.1+r72/frameworks/opt/net/voip/src/jni/rtp/AudioGroup.cpp:870:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        record->read(&one, sizeof(one));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/NetworkUtilities.cpp:67: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).
        addressLength = strlen(sun.sun_path);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_ProcessManager.cpp:175:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ssize_t count = TEMP_FAILURE_RETRY(read(statusIn, &child_errno, sizeof(int)));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:155:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((unprocessedDigits = strlen (s)) > 0)
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_lang_StringToReal.cpp:547:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((unprocessedDigits = strlen (s)) > 0)
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/java_util_zip_Inflater.cpp:79:44:  [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, dst, len))) > 0) {
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_ICU.cpp:419: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).
    locale_name_length_ = strlen(locale_name_);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp:153:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  std::unique_ptr<char[]> result(new char[2 + strlen(name) + 1]);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:446:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(req.ifr_name, interfaceName.c_str(), sizeof(req.ifr_name));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1402:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return IO_FAILURE_RETRY(env, ssize_t, read, javaFd, bytes.get() + byteOffset, byteCount);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/libcore_io_Posix.cpp:1810:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    return umask(mask);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:265: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).
    char* copy = new char[strlen(bytes) + 1];
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:521: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).
        ::LocalArray<1024> qName(strlen(mPrefix) + 1 + strlen(mLocalName) + 1);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:521: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).
        ::LocalArray<1024> qName(strlen(mPrefix) + 1 + strlen(mLocalName) + 1);
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:551: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).
        return strlen(mPrefix) == prefixLength
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:688:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bufferAndInvoke(commentMethod, data, comment, strlen(comment));
data/android-framework-23-6.0.1+r72/libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:1253:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int length = strlen(source[i]);

ANALYSIS SUMMARY:

Hits = 1238
Lines analyzed = 289052 in approximately 9.78 seconds (29565 lines/second)
Physical Source Lines of Code (SLOC) = 214452
Hits@level = [0] 1370 [1] 287 [2] 807 [3]  24 [4] 102 [5]  18
Hits@level+ = [0+] 2608 [1+] 1238 [2+] 951 [3+] 144 [4+] 120 [5+]  18
Hits/KSLOC@level+ = [0+] 12.1612 [1+] 5.77285 [2+] 4.43456 [3+] 0.671479 [4+] 0.559566 [5+] 0.0839349
Dot directories skipped = 5 (--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.