Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

166 sources

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

Repository files31

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

workspace/decomp/HeyRomUpdate/sources/org/apache/commons/compress/utils/ChecksumVerifyingInputStream.java

Java · 1,602 bytes
package org.apache.commons.compress.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.zip.CheckedInputStream;
import java.util.zip.Checksum;

/* loaded from: classes.dex */
public class ChecksumVerifyingInputStream extends CheckedInputStream {
    private final long expected;
    private long remaining;

    public ChecksumVerifyingInputStream(Checksum checksum, InputStream in, long size, long expectedChecksum) {
        super(in, checksum);
        this.expected = expectedChecksum;
        this.remaining = size;
    }

    public long getBytesRemaining() {
        return this.remaining;
    }

    @Override // java.util.zip.CheckedInputStream, java.io.FilterInputStream, java.io.InputStream
    public int read() throws IOException {
        if (this.remaining <= 0) {
            return -1;
        }
        int data = super.read();
        if (data >= 0) {
            this.remaining--;
        }
        verify();
        return data;
    }

    @Override // java.util.zip.CheckedInputStream, java.io.FilterInputStream, java.io.InputStream
    public int read(byte[] b, int off, int len) throws IOException {
        if (len == 0) {
            return 0;
        }
        int readCount = super.read(b, off, len);
        if (readCount >= 0) {
            this.remaining -= readCount;
        }
        verify();
        return readCount;
    }

    private void verify() throws IOException {
        if (this.remaining <= 0 && this.expected != getChecksum().getValue()) {
            throw new IOException("Checksum verification failed");
        }
    }
}