mirror of
https://github.com/boostorg/beast.git
synced 2025-08-05 15:54:46 +02:00
Add test for invalid inflate stream settings
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
committed by
Vinnie Falco
parent
4be185eb2b
commit
5937c06cd0
@@ -413,6 +413,16 @@ public:
|
|||||||
error::invalid_distance);
|
error::invalid_distance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void testInvalidSettings()
|
||||||
|
{
|
||||||
|
except<std::domain_error>(
|
||||||
|
[]()
|
||||||
|
{
|
||||||
|
inflate_stream is;
|
||||||
|
is.reset(7);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
run() override
|
run() override
|
||||||
{
|
{
|
||||||
@@ -421,6 +431,7 @@ public:
|
|||||||
sizeof(inflate_stream) << std::endl;
|
sizeof(inflate_stream) << std::endl;
|
||||||
testInflate();
|
testInflate();
|
||||||
testInflateErrors();
|
testInflateErrors();
|
||||||
|
testInvalidSettings();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user