Fix warnings

This commit is contained in:
momo5502
2024-09-24 20:17:38 +02:00
parent 0d2cccee50
commit 136ff118d4
7 changed files with 21 additions and 32 deletions

View File

@@ -4,8 +4,7 @@
#define THE_SIZE 30
extern "C" __declspec(noinline)
__declspec(dllexport)
extern "C" __declspec(noinline) __declspec(dllexport)
void vulnerable(const uint8_t* data, const size_t size)
{
if (size < 10)
@@ -38,11 +37,6 @@ void vulnerable(const uint8_t* data, const size_t size)
return;
}
if (data[0] != 'H' || data[1] != 'u')
{
return;
}
if (size < 100)
{
return;