Lines Matching refs:CAST

104 -	if ((ml = CAST(struct mlist *, malloc(sizeof(*ml)))) == NULL)
105 + if ((ml = CAST(struct mlist *, emalloc(sizeof(*ml)))) == NULL)
160 - if ((ms = CAST(struct magic_set *, calloc((size_t)1,
161 + if ((ms = CAST(struct magic_set *, ecalloc((size_t)1,
169 - if ((ms->c.li = CAST(struct level_info *, malloc(len))) == NULL)
170 + if ((ms->c.li = CAST(struct level_info *, emalloc(len))) == NULL)
215 - if ((mlist = CAST(struct mlist *, calloc(1, sizeof(*mlist)))) == NULL) {
216 + if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) {
285 if ((mp = CAST(struct magic_entry *,
352 - if ((*ma = CAST(struct magic *, malloc(slen))) == NULL) {
353 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) {
389 - if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) {
390 + if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) {
442 if ((filearr = CAST(char **,
495 - if ((nm = CAST(struct magic *, realloc(me->mp,
496 + if ((nm = CAST(struct magic *, erealloc(me->mp,
504 - if ((m = CAST(struct magic *, malloc(len))) == NULL) {
505 + if ((m = CAST(struct magic *, emalloc(len))) == NULL) {
575 - if ((map = CAST(struct magic_map *, calloc(1, sizeof(*map)))) == NULL) {
579 + if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) {
635 - if ((map->p = CAST(void *, malloc(map->len))) == NULL) {
637 + if ((map->p = CAST(void *, emalloc(map->len))) == NULL) {
651 - ptr = CAST(uint32_t *, map->p);
697 map->magic[0] = CAST(struct magic *, map->p) + 1;
850 - if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) {
851 + if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) {
1014 CAST(const cdf_summary_info_header_t *, sst->sst_tab);
1278 - if ((*newch = CAST(unsigned char *, malloc(HOWMANY + 1))) == NULL) {
1279 + if ((*newch = CAST(unsigned char *, emalloc(HOWMANY + 1))) == NULL) {
2120 - if ((pbuf = CAST(char *, realloc(ms->o.pbuf, psize))) == NULL) {
2121 + if ((ms->o.pbuf = CAST(char *, erealloc(ms->o.pbuf, psize))) == NULL) {
2132 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ?
2428 - if ((buf = CAST(unsigned char *, malloc(HOWMANY + SLOP))) == NULL)
3099 ((b = CAST(const char *,