Exploit databaseDownload repository ZIP
GH-cd474985a1d611a2a689e02bc95daae0
satheesh575555/frameworks_base_aosp10_r33_cve-2022-20142
Sources for CVE-2022-20142
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files50
satheesh575555/frameworks_base_aosp10_r33_cve-2022-20142Revision 0b10dce4665c
- ↑..Parent directory
- audioeffect/
- soundpool/
- Android.bp
- MODULE_LICENSE_APACHE2
- NOTICE
- OWNERS
- android_media_AudioPresentation.h
- android_media_BufferingParams.h
- android_media_DataSourceCallback.cpp
- android_media_DataSourceCallback.h
- android_media_ImageReader.cpp
- android_media_ImageWriter.cpp
- android_media_MediaCodec.cpp
- android_media_MediaCodec.h
- android_media_MediaCodecList.cpp
- android_media_MediaCrypto.cpp
- android_media_MediaCrypto.h
- android_media_MediaDataSource.cpp
- android_media_MediaDataSource.h
- android_media_MediaDescrambler.cpp
- android_media_MediaDescrambler.h
- android_media_MediaDrm.cpp
- android_media_MediaDrm.h
- android_media_MediaExtractor.cpp
- android_media_MediaExtractor.h
- android_media_MediaHTTPConnection.cpp
- android_media_MediaHTTPConnection.h
- android_media_MediaMetadataRetriever.cpp
- android_media_MediaMetricsJNI.cpp
- android_media_MediaMetricsJNI.h
- android_media_MediaMuxer.cpp
- android_media_MediaPlayer.cpp
- android_media_MediaPlayer2.cpp
- android_media_MediaProfiles.cpp
- android_media_MediaRecorder.cpp
- android_media_MediaScanner.cpp
- android_media_MediaSync.cpp
- android_media_MediaSync.h
- android_media_PlaybackParams.h
- android_media_ResampleInputStream.cpp
- android_media_Streams.cpp
- android_media_Streams.h
- android_media_SyncParams.cpp
- android_media_SyncParams.h
- android_media_Utils.cpp
- android_media_Utils.h
- android_media_VolumeShaper.h
- android_mtp_MtpDatabase.cpp
- android_mtp_MtpDevice.cpp
- android_mtp_MtpServer.cpp
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
media/jni/android_media_MediaDataSource.h
Text · 2,396 bytes/*
* Copyright 2015, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _ANDROID_MEDIA_MEDIADATASOURCE_H_
#define _ANDROID_MEDIA_MEDIADATASOURCE_H_
#include "jni.h"
#include <media/IDataSource.h>
#include <media/stagefright/foundation/ABase.h>
#include <utils/Errors.h>
#include <utils/Mutex.h>
namespace android {
// The native counterpart to a Java android.media.MediaDataSource. It inherits from
// IDataSource so that it can be accessed remotely.
//
// If the java DataSource returns an error or throws an exception it
// will be considered to be in a broken state, and the only further call this
// will make is to close().
class JMediaDataSource : public BnDataSource {
public:
enum {
kBufferSize = 64 * 1024,
};
JMediaDataSource(JNIEnv *env, jobject source);
virtual ~JMediaDataSource();
virtual sp<IMemory> getIMemory();
virtual ssize_t readAt(off64_t offset, size_t size);
virtual status_t getSize(off64_t* size);
virtual void close();
virtual uint32_t getFlags();
virtual String8 toString();
virtual sp<DecryptHandle> DrmInitialization(const char *mime);
private:
// Protect all member variables with mLock because this object will be
// accessed on different binder worker threads.
Mutex mLock;
// The status of the java DataSource. Set to OK unless an error occurred or
// close() was called.
status_t mJavaObjStatus;
// Only call the java getSize() once so the app can't change the size on us.
bool mSizeIsCached;
off64_t mCachedSize;
sp<IMemory> mMemory;
jobject mMediaDataSourceObj;
jmethodID mReadMethod;
jmethodID mGetSizeMethod;
jmethodID mCloseMethod;
jbyteArray mByteArrayObj;
DISALLOW_EVIL_CONSTRUCTORS(JMediaDataSource);
};
} // namespace android
#endif // _ANDROID_MEDIA_MEDIADATASOURCE_H_