models.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* which hides all the internal storage and memory filling.
*
*/
int condition;
if (!mem) __coverity_panic__();
if (condition)
return (0);
return (__coverity_alloc__(size));
}
if (!mem) __coverity_panic__();
}
if (!mem) __coverity_panic__();
}
if (!mem) __coverity_panic__();
if (condition)
return (0);
return (__coverity_alloc__(size));
}
char *p = (char *)0;
size_t l;
if (!mem) __coverity_panic__();
if (size > 0) {
if (p && ptr) {
}
} else if (ptr)
return (p);
}
if (!mem) __coverity_panic__();
}
unsigned int strlen(const char*);
void *d;
if (!mem) __coverity_panic__();
if (condition)
return (0);
return (d);
}
unsigned int size;
if (!mem) __coverity_panic__();
if (condition)
return (0);
return (__coverity_alloc__(size));
}
if (!mem) __coverity_panic__();
}