Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files44

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

workspace/decomp/HeyRomUpdate/sources/org/apache/commons/compress/harmony/unpack200/bytecode/LocalVariableTableAttribute.java

Java · 5,394 bytes
package org.apache.commons.compress.harmony.unpack200.bytecode;

import java.io.DataOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.compress.harmony.pack200.Pack200Exception;

/* loaded from: classes.dex */
public class LocalVariableTableAttribute extends BCIRenumberedAttribute {
    private static CPUTF8 attributeName;
    private int codeLength;
    private int[] descriptorIndexes;
    private final CPUTF8[] descriptors;
    private final int[] indexes;
    private final int[] lengths;
    private final int localVariableTableLength;
    private int[] nameIndexes;
    private final CPUTF8[] names;
    private final int[] startPcs;

    public static void setAttributeName(CPUTF8 cpUTF8Value) {
        attributeName = cpUTF8Value;
    }

    public LocalVariableTableAttribute(int localVariableTableLength, int[] startPcs, int[] lengths, CPUTF8[] names, CPUTF8[] descriptors, int[] indexes) {
        super(attributeName);
        this.localVariableTableLength = localVariableTableLength;
        this.startPcs = startPcs;
        this.lengths = lengths;
        this.names = names;
        this.descriptors = descriptors;
        this.indexes = indexes;
    }

    @Override // org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute, org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
    protected int getLength() {
        return (this.localVariableTableLength * 10) + 2;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // org.apache.commons.compress.harmony.unpack200.bytecode.Attribute, org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
    public ClassFileEntry[] getNestedClassFileEntries() {
        List<CPUTF8> nestedEntries = new ArrayList<>();
        nestedEntries.add(getAttributeName());
        for (int i = 0; i < this.localVariableTableLength; i++) {
            nestedEntries.add(this.names[i]);
            nestedEntries.add(this.descriptors[i]);
        }
        return (ClassFileEntry[]) nestedEntries.toArray(ClassFileEntry.NONE);
    }

    @Override // org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
    protected int[] getStartPCs() {
        return this.startPcs;
    }

    @Override // org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute
    public void renumber(List<Integer> byteCodeOffsets) throws Pack200Exception {
        int revisedLength;
        int[] iArr = this.startPcs;
        int[] unrenumberedStartPcs = Arrays.copyOf(iArr, iArr.length);
        super.renumber(byteCodeOffsets);
        int maxSize = this.codeLength;
        int index = 0;
        while (true) {
            int[] iArr2 = this.lengths;
            if (index < iArr2.length) {
                int startPc = this.startPcs[index];
                int encodedLength = iArr2[index];
                int indexOfStartPC = unrenumberedStartPcs[index];
                int stopIndex = indexOfStartPC + encodedLength;
                if (stopIndex < 0) {
                    throw new Pack200Exception("Error renumbering bytecode indexes");
                }
                if (stopIndex == byteCodeOffsets.size()) {
                    revisedLength = maxSize - startPc;
                } else {
                    int stopValue = byteCodeOffsets.get(stopIndex).intValue();
                    revisedLength = stopValue - startPc;
                }
                this.lengths[index] = revisedLength;
                index++;
            } else {
                return;
            }
        }
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // org.apache.commons.compress.harmony.unpack200.bytecode.Attribute, org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
    public void resolve(ClassConstantPool pool) {
        super.resolve(pool);
        int i = this.localVariableTableLength;
        this.nameIndexes = new int[i];
        this.descriptorIndexes = new int[i];
        for (int i2 = 0; i2 < this.localVariableTableLength; i2++) {
            this.names[i2].resolve(pool);
            this.descriptors[i2].resolve(pool);
            this.nameIndexes[i2] = pool.indexOf(this.names[i2]);
            this.descriptorIndexes[i2] = pool.indexOf(this.descriptors[i2]);
        }
    }

    public void setCodeLength(int length) {
        this.codeLength = length;
    }

    @Override // org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute, org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
    public String toString() {
        return "LocalVariableTable: " + this.localVariableTableLength + " variables";
    }

    @Override // org.apache.commons.compress.harmony.unpack200.bytecode.BCIRenumberedAttribute, org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
    protected void writeBody(DataOutputStream dos) throws IOException {
        dos.writeShort(this.localVariableTableLength);
        for (int i = 0; i < this.localVariableTableLength; i++) {
            dos.writeShort(this.startPcs[i]);
            dos.writeShort(this.lengths[i]);
            dos.writeShort(this.nameIndexes[i]);
            dos.writeShort(this.descriptorIndexes[i]);
            dos.writeShort(this.indexes[i]);
        }
    }
}