update unbound from upstream
This commit is contained in:
7
external/unbound/smallapp/unbound-anchor.c
vendored
7
external/unbound/smallapp/unbound-anchor.c
vendored
@@ -116,7 +116,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "libunbound/unbound.h"
|
||||
#include "ldns/rrdef.h"
|
||||
#include "sldns/rrdef.h"
|
||||
#include <expat.h>
|
||||
#ifndef HAVE_EXPAT_H
|
||||
#error "need libexpat to parse root-anchors.xml file."
|
||||
@@ -915,7 +915,10 @@ read_data_chunk(SSL* ssl, size_t len)
|
||||
{
|
||||
size_t got = 0;
|
||||
int r;
|
||||
char* data = malloc(len+1);
|
||||
char* data;
|
||||
if(len >= 0xfffffff0)
|
||||
return NULL; /* to protect against integer overflow in malloc*/
|
||||
data = malloc(len+1);
|
||||
if(!data) {
|
||||
if(verb) printf("out of memory\n");
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user