asn1 encoding memory overflow

This commit is contained in:
laurent
2019-12-05 04:56:42 +01:00
committed by Florian Kaltenberger
parent 80cd6940af
commit 7672257b2f
7 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ char *config_check_valptr(paramdef_t *cfgoptions, char **ptr, int length) {
}
if (*ptr == NULL) {
*ptr = malloc(length);
*ptr = malloc(length>40?length:40); // LTS: dummy fix, waiting Francois full fix in 4G branch
if ( *ptr != NULL) {
memset(*ptr,0,length);