suricata
|
#include "suricata.h"
#include "suricata-common.h"
#include "app-layer-htp.h"
#include "util-file-decompression.h"
#include "util-file-swf-decompression.h"
#include "util-misc.h"
#include "util-print.h"
#include "util-validate.h"
#include "rust.h"
#include <zlib.h>
Go to the source code of this file.
Macros | |
#define | MAX_SWF_DECOMPRESSED_LEN 50000000 |
Functions | |
uint32_t | FileGetSwfDecompressedLen (const uint8_t *buffer, const uint32_t buffer_len) |
uint8_t | FileGetSwfVersion (const uint8_t *buffer, const uint32_t buffer_len) |
int | FileSwfZlibDecompression (DetectEngineThreadCtx *det_ctx, uint8_t *compressed_data, uint32_t compressed_data_len, uint8_t *decompressed_data, uint32_t decompressed_data_len) |
int | FileSwfLzmaDecompression (DetectEngineThreadCtx *det_ctx, uint8_t *compressed_data, uint32_t compressed_data_len, uint8_t *decompressed_data, uint32_t decompressed_data_len) |
Definition in file util-file-swf-decompression.c.
#define MAX_SWF_DECOMPRESSED_LEN 50000000 |
Definition at line 41 of file util-file-swf-decompression.c.
uint32_t FileGetSwfDecompressedLen | ( | const uint8_t * | buffer, |
const uint32_t | buffer_len | ||
) |
Definition at line 45 of file util-file-swf-decompression.c.
References len, MAX_SWF_DECOMPRESSED_LEN, and MIN.
Referenced by FileSwfDecompression().
uint8_t FileGetSwfVersion | ( | const uint8_t * | buffer, |
const uint32_t | buffer_len | ||
) |
Definition at line 70 of file util-file-swf-decompression.c.
Referenced by FileSwfDecompression().
int FileSwfLzmaDecompression | ( | DetectEngineThreadCtx * | det_ctx, |
uint8_t * | compressed_data, | ||
uint32_t | compressed_data_len, | ||
uint8_t * | decompressed_data, | ||
uint32_t | decompressed_data_len | ||
) |
Definition at line 138 of file util-file-swf-decompression.c.
References DEBUG_VALIDATE_BUG_ON, DetectEngineSetEvent(), FILE_DECODER_EVENT_LZMA_DECODER_ERROR, FILE_DECODER_EVENT_LZMA_HEADER_TOO_SHORT_ERROR, FILE_DECODER_EVENT_LZMA_IO_ERROR, FILE_DECODER_EVENT_LZMA_MEMLIMIT_ERROR, FILE_DECODER_EVENT_LZMA_UNKNOWN_ERROR, FILE_DECODER_EVENT_LZMA_XZ_ERROR, and MAX_SWF_DECOMPRESSED_LEN.
Referenced by FileSwfDecompression().
int FileSwfZlibDecompression | ( | DetectEngineThreadCtx * | det_ctx, |
uint8_t * | compressed_data, | ||
uint32_t | compressed_data_len, | ||
uint8_t * | decompressed_data, | ||
uint32_t | decompressed_data_len | ||
) |
Definition at line 83 of file util-file-swf-decompression.c.
References DetectEngineSetEvent(), FILE_DECODER_EVENT_Z_BUF_ERROR, FILE_DECODER_EVENT_Z_DATA_ERROR, FILE_DECODER_EVENT_Z_STREAM_ERROR, and FILE_DECODER_EVENT_Z_UNKNOWN_ERROR.
Referenced by FileSwfDecompression().