CAST 374 ext/fileinfo/libmagic/apprentice.c if ((ml = CAST(struct mlist *, emalloc(sizeof(*ml)))) == NULL) CAST 469 ext/fileinfo/libmagic/apprentice.c if ((ms = CAST(struct magic_set *, ecalloc((size_t)1, CAST 481 ext/fileinfo/libmagic/apprentice.c if ((ms->c.li = CAST(struct level_info *, emalloc(len))) == NULL) CAST 520 ext/fileinfo/libmagic/apprentice.c if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { CAST 796 ext/fileinfo/libmagic/apprentice.c const struct magic_entry *ma = CAST(const struct magic_entry *, a); CAST 797 ext/fileinfo/libmagic/apprentice.c const struct magic_entry *mb = CAST(const struct magic_entry *, b); CAST 933 ext/fileinfo/libmagic/apprentice.c if ((mp = CAST(struct magic_entry *, CAST 1115 ext/fileinfo/libmagic/apprentice.c if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { CAST 1160 ext/fileinfo/libmagic/apprentice.c if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) CAST 1197 ext/fileinfo/libmagic/apprentice.c if ((filearr = CAST(char **, CAST 1542 ext/fileinfo/libmagic/apprentice.c if ((nm = CAST(struct magic *, erealloc(me->mp, CAST 1548 ext/fileinfo/libmagic/apprentice.c me->max_count = CAST(uint32_t, cnt); CAST 1557 ext/fileinfo/libmagic/apprentice.c if ((m = CAST(struct magic *, emalloc(len))) == NULL) { CAST 1568 ext/fileinfo/libmagic/apprentice.c m->lineno = CAST(uint32_t, lineno); CAST 1786 ext/fileinfo/libmagic/apprentice.c m->str_range = CAST(uint32_t, CAST 2484 ext/fileinfo/libmagic/apprentice.c m->vallen = CAST(unsigned char, (p - origp)); CAST 2612 ext/fileinfo/libmagic/apprentice.c if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) { CAST 2653 ext/fileinfo/libmagic/apprentice.c if ((map->p = CAST(void *, emalloc(map->len))) == NULL) { CAST 2706 ext/fileinfo/libmagic/apprentice.c map->magic[0] = CAST(struct magic *, map->p) + 1; CAST 142 ext/fileinfo/libmagic/ascmagic.c if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) { CAST 409 ext/fileinfo/libmagic/cdf.c if ((sat->sat_tab = CAST(cdf_secid_t *, calloc(sat->sat_len, ss))) CAST 423 ext/fileinfo/libmagic/cdf.c if ((msa = CAST(cdf_secid_t *, calloc(1, ss))) == NULL) CAST 612 ext/fileinfo/libmagic/cdf.c dir->dir_tab = CAST(cdf_directory_t *, CAST 617 ext/fileinfo/libmagic/cdf.c if ((buf = CAST(char *, malloc(ss))) == NULL) { CAST 662 ext/fileinfo/libmagic/cdf.c ssat->sat_tab = CAST(cdf_secid_t *, calloc(ssat->sat_len, ss)); CAST 778 ext/fileinfo/libmagic/cdf.c shp = CAST(const cdf_section_header_t *, (const void *) CAST 798 ext/fileinfo/libmagic/cdf.c inp = CAST(cdf_property_info_t *, CAST 802 ext/fileinfo/libmagic/cdf.c inp = CAST(cdf_property_info_t *, CAST 810 ext/fileinfo/libmagic/cdf.c p = CAST(const uint8_t *, (const void *) CAST 813 ext/fileinfo/libmagic/cdf.c e = CAST(const uint8_t *, (const void *) CAST 905 ext/fileinfo/libmagic/cdf.c inp = CAST(cdf_property_info_t *, CAST 963 ext/fileinfo/libmagic/cdf.c CAST(const cdf_summary_info_header_t *, sst->sst_tab); CAST 965 ext/fileinfo/libmagic/cdf.c CAST(const cdf_section_declaration_t *, (const void *) CAST 166 ext/fileinfo/libmagic/compress.c buf = CAST(const char *, buf) + rv; CAST 347 ext/fileinfo/libmagic/compress.c if ((*newch = CAST(unsigned char *, emalloc(HOWMANY + 1))) == NULL) { CAST 354 ext/fileinfo/libmagic/compress.c z.avail_in = CAST(uint32_t, (n - data_start)); CAST 80 ext/fileinfo/libmagic/encoding.c if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) { CAST 85 ext/fileinfo/libmagic/encoding.c if ((nbuf = CAST(unsigned char *, calloc((size_t)1, mlen))) == NULL) { CAST 169 ext/fileinfo/libmagic/funcs.c const unsigned char *ubuf = CAST(const unsigned char *, buf); CAST 356 ext/fileinfo/libmagic/funcs.c if ((ms->o.pbuf = CAST(char *, erealloc(ms->o.pbuf, psize))) == NULL) { CAST 418 ext/fileinfo/libmagic/funcs.c ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? CAST 657 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(char))); CAST 662 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(short))); CAST 668 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(int32_t))); CAST 673 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(int64_t))); CAST 687 ext/fileinfo/libmagic/softmagic.c t = CAST(uint32_t, (ms->offset + strlen(p->s))); CAST 697 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(uint32_t))); CAST 703 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(uint32_t))); CAST 708 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(uint64_t))); CAST 713 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(uint64_t))); CAST 718 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(float))); CAST 723 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->offset + sizeof(double))); CAST 727 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, ms->search.offset); CAST 729 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->search.offset + CAST 734 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, ms->search.offset); CAST 736 ext/fileinfo/libmagic/softmagic.c return CAST(int32_t, (ms->search.offset + m->vallen)); CAST 1087 ext/fileinfo/libmagic/softmagic.c ((b = CAST(const char *, CAST 1088 ext/fileinfo/libmagic/softmagic.c memchr(c = b, '\n', CAST(size_t, (end - b))))) CAST 1089 ext/fileinfo/libmagic/softmagic.c || (b = CAST(const char *, CAST 1090 ext/fileinfo/libmagic/softmagic.c memchr(c, '\r', CAST(size_t, (end - c)))))); CAST 1191 ext/fileinfo/libmagic/softmagic.c const union VALUETYPE *q = CAST(const union VALUETYPE *,