mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 09:56:35 +02:00
24 lines
383 B
C++
24 lines
383 B
C++
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#include <I2NPProtocol.h>
|
|
#include <RouterContext.h>
|
|
|
|
#include "fuzzing.h"
|
|
|
|
|
|
bool
|
|
fuzzing_testinput(const uint8_t * data, size_t size)
|
|
{
|
|
uint8_t clearText[i2p::ECIES_BUILD_REQUEST_RECORD_CLEAR_TEXT_SIZE];
|
|
|
|
|
|
if(size < i2p::TUNNEL_BUILD_RECORD_SIZE)
|
|
return true;
|
|
|
|
i2p::context.DecryptTunnelBuildRecord(data, clearText);
|
|
|
|
return true;
|
|
}
|