mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
mg_dns_parse_name() recursion protection
This commit is contained in:
1 parent
30d4a1ad0f
commit
85c5577955
3 files changed
+9
-4
No files matched your search
@@ -864,7 +864,10 @@ static void test_str(void) {
|
||||
|
||||
static void test_dns(void) {
|
||||
struct mg_dns_message dm;
|
||||
char *data = mg_file_read("data.txt");
|
||||
ASSERT(mg_dns_parse(NULL, 0, &dm) == 0);
|
||||
ASSERT(mg_dns_parse((uint8_t *) data, strlen(data), &dm) == 0);
|
||||
free(data);
|
||||
}
|
||||
|
||||
static void test_util(void) {
|
||||
|
||||
Reference in new issue
Block a user