Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
166 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files14
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- drawable/
- BitmapCompat.java
- ColorUtils.java
- PaintCompat.java
- PathParser.java
- PathSegment.java
- PathUtils.java
- TypefaceCompat.java
- TypefaceCompatApi21Impl.java
- TypefaceCompatApi24Impl.java
- TypefaceCompatApi26Impl.java
- TypefaceCompatApi28Impl.java
- TypefaceCompatBaseImpl.java
- TypefaceCompatUtil.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
workspace/decomp/HeyRomUpdate/sources/android/support/v4/graphics/TypefaceCompatUtil.java
Java · 4,448 bytespackage android.support.v4.graphics;
import android.content.ContentResolver;
import android.content.Context;
import android.content.res.Resources;
import android.net.Uri;
import android.os.CancellationSignal;
import android.os.ParcelFileDescriptor;
import android.os.Process;
import android.util.Log;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
/* loaded from: classes.dex */
public class TypefaceCompatUtil {
private static final String CACHE_FILE_PREFIX = ".font";
private static final String TAG = "TypefaceCompatUtil";
private TypefaceCompatUtil() {
}
public static File getTempFile(Context context) {
String prefix = CACHE_FILE_PREFIX + Process.myPid() + "-" + Process.myTid() + "-";
for (int i = 0; i < 100; i++) {
File file = new File(context.getCacheDir(), prefix + i);
if (file.createNewFile()) {
return file;
}
}
return null;
}
private static ByteBuffer mmap(File file) {
try {
FileInputStream fis = new FileInputStream(file);
try {
FileChannel channel = fis.getChannel();
long size = channel.size();
MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_ONLY, 0L, size);
fis.close();
return map;
} finally {
}
} catch (IOException e) {
return null;
}
}
public static ByteBuffer mmap(Context context, CancellationSignal cancellationSignal, Uri uri) {
ContentResolver resolver = context.getContentResolver();
try {
ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "r", cancellationSignal);
if (pfd != null) {
try {
FileInputStream fis = new FileInputStream(pfd.getFileDescriptor());
try {
FileChannel channel = fis.getChannel();
long size = channel.size();
MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_ONLY, 0L, size);
fis.close();
if (pfd != null) {
pfd.close();
}
return map;
} finally {
}
} finally {
}
} else {
if (pfd != null) {
pfd.close();
}
return null;
}
} catch (IOException e) {
return null;
}
}
public static ByteBuffer copyToDirectBuffer(Context context, Resources res, int id) {
File tmpFile = getTempFile(context);
ByteBuffer byteBuffer = null;
if (tmpFile == null) {
return null;
}
try {
if (copyToFile(tmpFile, res, id)) {
byteBuffer = mmap(tmpFile);
}
return byteBuffer;
} finally {
tmpFile.delete();
}
}
public static boolean copyToFile(File file, InputStream is) {
FileOutputStream os = null;
try {
os = new FileOutputStream(file, false);
byte[] buffer = new byte[1024];
while (true) {
int readLen = is.read(buffer);
if (readLen != -1) {
os.write(buffer, 0, readLen);
} else {
return true;
}
}
} catch (IOException e) {
Log.e(TAG, "Error copying resource contents to temp file: " + e.getMessage());
return false;
} finally {
closeQuietly(os);
}
}
public static boolean copyToFile(File file, Resources res, int id) {
InputStream is = null;
try {
is = res.openRawResource(id);
return copyToFile(file, is);
} finally {
closeQuietly(is);
}
}
public static void closeQuietly(Closeable c) {
if (c != null) {
try {
c.close();
} catch (IOException e) {
}
}
}
}