Exploit databaseDownload repository ZIP
GH-13794a28e99af8452ce8e4224a1bc216
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138
Sources for CVE-2022-20138
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files54
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138Revision 144017c26d03
- ↑..Parent directory
- fonts/
- pdf/
- text/
- AnimatedImageDrawable.cpp
- Bitmap.cpp
- Bitmap.h
- BitmapFactory.cpp
- BitmapFactory.h
- BitmapRegionDecoder.cpp
- ByteBufferStreamAdaptor.cpp
- ByteBufferStreamAdaptor.h
- Camera.cpp
- CanvasProperty.cpp
- ColorFilter.cpp
- CreateJavaOutputStreamAdaptor.cpp
- CreateJavaOutputStreamAdaptor.h
- FontFamily.cpp
- FontUtils.cpp
- FontUtils.h
- GIFMovie.cpp
- GraphicBuffer.cpp
- GraphicBuffer.h
- Graphics.cpp
- GraphicsJNI.h
- ImageDecoder.cpp
- ImageDecoder.h
- Interpolator.cpp
- MaskFilter.cpp
- Matrix.cpp
- Matrix.h
- Movie.cpp
- Movie.h
- MovieImpl.cpp
- NinePatch.cpp
- NinePatchPeeker.cpp
- NinePatchPeeker.h
- Paint.cpp
- PaintFilter.cpp
- Path.cpp
- PathEffect.cpp
- PathMeasure.cpp
- Picture.cpp
- Picture.h
- Region.cpp
- Region.h
- RtlProperties.h
- Shader.cpp
- SurfaceTexture.cpp
- TEST_MAPPING
- Typeface.cpp
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/jni/android/graphics/ByteBufferStreamAdaptor.h
Text · 1,318 bytes#ifndef _ANDROID_GRAPHICS_BYTE_BUFFER_STREAM_ADAPTOR_H_
#define _ANDROID_GRAPHICS_BYTE_BUFFER_STREAM_ADAPTOR_H_
#include <jni.h>
#include <memory>
class SkStream;
/**
* Create an adaptor for treating a java.nio.ByteBuffer as an SkStream.
*
* This will special case direct ByteBuffers, but not the case where a byte[]
* can be used directly. For that, use CreateByteArrayStreamAdaptor.
*
* @param jbyteBuffer corresponding to the java ByteBuffer. This method will
* add a global ref.
* @param initialPosition returned by ByteBuffer.position(). Decoding starts
* from here.
* @param limit returned by ByteBuffer.limit().
*
* Returns null on failure.
*/
std::unique_ptr<SkStream> CreateByteBufferStreamAdaptor(JNIEnv*, jobject jbyteBuffer,
size_t initialPosition, size_t limit);
/**
* Create an adaptor for treating a Java byte[] as an SkStream.
*
* @param offset into the byte[] of the beginning of the data to use.
* @param length of data to use, starting from offset.
*
* Returns null on failure.
*/
std::unique_ptr<SkStream> CreateByteArrayStreamAdaptor(JNIEnv*, jbyteArray array, size_t offset,
size_t length);
#endif // _ANDROID_GRAPHICS_BYTE_BUFFER_STREAM_ADAPTOR_H_