Lines Matching refs:NULL

136 	char *id = NULL;
138 if ((id = malloc(EI_NIDENT)) == NULL) {
140 return (NULL);
146 return (NULL);
152 return (NULL);
178 char *ident = NULL;
199 "elf.so`gethead: argument 'elf' must not be NULL");
200 return (NULL);
203 if ((hdr = malloc(sizeof (GElf_Ehdr))) == NULL) {
205 return (NULL);
211 return (NULL);
224 if ((hi = malloc(sizeof (hdrinfo_t))) == NULL) {
226 return (NULL);
232 return (NULL);
235 if (!(elf = elf_begin(fd, ELF_C_READ, NULL))) {
238 return (NULL);
244 return (NULL);
310 if (h->s256c != NULL) {
314 if (h->s512c != NULL) {
321 * where "interesting" is indicated by hashsection(). Returns NULL for
327 Elf_Scn *scn = NULL;
329 char *name = NULL;
332 unsigned char *return_ptr = NULL;
342 while ((scn = elf_nextscn(elf, scn)) != NULL) {
382 * information we want from an ELF file. Returns NULL
389 Elf *elf = NULL;
390 Elf_Scn *scn = NULL;
392 Elf_Data *data_dyn = NULL;
393 Elf_Data *data_verneed = NULL, *data_verdef = NULL;
396 char *name = NULL;
401 dyninfo_t *dyn = NULL;
403 liblist_t *deps = NULL;
408 char *buf = NULL, *cp = NULL;
409 GElf_Verneed *ev = NULL;
410 GElf_Vernaux *ea = NULL;
411 liblist_t *vers = NULL;
413 GElf_Verdef *vd = NULL;
414 GElf_Verdaux *va = NULL;
415 liblist_t *verdef = NULL;
419 return (NULL);
422 if (!(elf = elf_begin(fd, ELF_C_READ, NULL))) {
433 while ((scn = elf_nextscn(elf, scn)) != NULL) {
446 if (!(data_dyn = elf_getdata(scn, NULL))) {
460 if (!(data_verdef = elf_getdata(scn, NULL))) {
473 if (!(data_verneed = elf_getdata(scn, NULL))) {
495 if (gelf_getdyn(data_dyn, t, &gd) == NULL) {
506 if (liblist_add(deps, gd.d_un.d_val) == NULL)
540 liblist_t *veraux = NULL;
552 ea = NULL;
557 if (liblist_add(veraux, ea->vna_name) == NULL) {
563 if (liblist_add(vers, ev->vn_file) == NULL) {
573 if (liblist_foreach(deps, setver_liblist_cb, vers, NULL) == -1)
576 vers = NULL;
598 va = NULL;
606 else if (liblist_add(verdef, va->vda_name) == NULL)
613 if ((dyn = malloc(sizeof (dyninfo_t))) == NULL) {
635 return (NULL);
651 * On error, will set Python error and return NULL.
683 hashinfo_t *hashes = NULL;
684 hashcb_data_t hdata = { NULL, NULL, NULL };
691 ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) ||
694 return (NULL);
703 ((hdata.base = mmap(NULL, status.st_size, PROT_READ, MAP_PRIVATE,
711 if (hdata.s256c == NULL) {
720 if (hdata.s512c == NULL) {
727 if ((hashes = calloc(1, sizeof (hashinfo_t))) == NULL) {
741 if (getelfhash(elf, hdata.base, &rawhash[0]) == NULL) {
858 hashes = NULL;