Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files60
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- backward_references.c
- backward_references.h
- backward_references_hq.c
- backward_references_hq.h
- backward_references_inc.h
- bit_cost.c
- bit_cost.h
- bit_cost_inc.h
- block_encoder_inc.h
- block_splitter.c
- block_splitter.h
- block_splitter_inc.h
- brotli_bit_stream.c
- brotli_bit_stream.h
- cluster.c
- cluster.h
- cluster_inc.h
- command.h
- compress_fragment.c
- compress_fragment.h
- compress_fragment_two_pass.c
- compress_fragment_two_pass.h
- dictionary_hash.c
- dictionary_hash.h
- encode.c
- encoder_dict.c
- encoder_dict.h
- entropy_encode.c
- entropy_encode.h
- entropy_encode_static.h
- fast_log.h
- find_match_length.h
- hash.h
- hash_composite_inc.h
- hash_forgetful_chain_inc.h
- hash_longest_match64_inc.h
- hash_longest_match_inc.h
- hash_longest_match_quickly_inc.h
- hash_rolling_inc.h
- hash_to_binary_tree_inc.h
- histogram.c
- histogram.h
- histogram_inc.h
- literal_cost.c
- literal_cost.h
- memory.c
- memory.h
- metablock.c
- metablock.h
- metablock_inc.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/BrotliCompress/enc/compress_fragment_two_pass.h
Text · 2,407 bytes/* Copyright 2015 Google Inc. All Rights Reserved.
Distributed under MIT license.
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
/* Function for fast encoding of an input fragment, independently from the input
history. This function uses two-pass processing: in the first pass we save
the found backward matches and literal bytes into a buffer, and in the
second pass we emit them into the bit stream using prefix codes built based
on the actual command and literal byte histograms. */
#ifndef BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_
#define BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_
#include "../common/platform.h"
#include <brotli/types.h>
#include "./memory.h"
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
static const size_t kCompressFragmentTwoPassBlockSize = 1 << 17;
/* Compresses "input" string to the "*storage" buffer as one or more complete
meta-blocks, and updates the "*storage_ix" bit position.
If "is_last" is 1, emits an additional empty last meta-block.
REQUIRES: "input_size" is greater than zero, or "is_last" is 1.
REQUIRES: "input_size" is less or equal to maximal metablock size (1 << 24).
REQUIRES: "command_buf" and "literal_buf" point to at least
kCompressFragmentTwoPassBlockSize long arrays.
REQUIRES: All elements in "table[0..table_size-1]" are initialized to zero.
REQUIRES: "table_size" is a power of two
OUTPUT: maximal copy distance <= |input_size|
OUTPUT: maximal copy distance <= BROTLI_MAX_BACKWARD_LIMIT(18) */
BROTLI_INTERNAL void BrotliCompressFragmentTwoPass(MemoryManager* m,
const uint8_t* input,
size_t input_size,
BROTLI_BOOL is_last,
uint32_t* command_buf,
uint8_t* literal_buf,
int* table,
size_t table_size,
size_t* storage_ix,
uint8_t* storage);
#if defined(__cplusplus) || defined(c_plusplus)
} /* extern "C" */
#endif
#endif /* BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_ */