INFO: No output directory specified (--dir) INFO: Using directory: "Laue_camera_20250816_074537" INFO: Regenerating c-file: Laue_camera.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./Laue_camera.c Laue_camera.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -DFUNNEL WARNING: The parameter mosaic_AB of YBaCuO_single_crystal is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component test_sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component test_sample -> GPU kernel from component det ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./Laue_camera.c DEBUG: CMD: cppcheck ./Laue_camera.c --check-level=exhaustive --force -DMCDEFAULT_NCOUNT=1000000 -UMC_PORTABLE -DND_BUFFER=10000000 -UNOABSORB_INF_NAN -UOMPI_MPI_H -DSIGABRT -DSIGBREAK -DSIGBUS -DSIGPE -DSIGHUP -DSIGILL -DSIGINT -DSIGKILL -DSIGUSR1 -DSIGUSR2 -DSIGPIPE -DSIGQUIT -DSIGSEGV -DSIGTRAP -DSIGURG -DSIGFPE -DSIGKILL -DSIGTERM -UTEST -UUSE_OPENCL -UWIN32 -UOPENACC -UGCCOFFLOAD -U_MSC_VER -U_MSC_EXTENSIONS -U_WIN32 -UWIN32 -D__unix__ -UDANSE -UFUNNEL -UMC_ANCIENT_COMPATIBILITY -UMC_POL_COMPAT -UNEUTRONICS -Uisnan -Uisinf Checking Laue_camera.c ... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1... Laue_camera.c:7832:5: error: Memory leak: temp_logger_with_data.logger_pointers [memleak] } else { ^ Laue_camera.c:7862:5: error: Memory leak: temp_abs_logger_with_data.abs_logger_pointers [memleak] } else { ^ Laue_camera.c:8493:5: error: Memory leak: temp_history.elements [memleak] } else { ^ Laue_camera.c:14738:5: error: Memory leak: removed_under_2.elements [memleak] }; ^ Laue_camera.c:7723:66: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate = 0;iterate < list->num_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:7722:22: note: Assuming allocation function fails temp = malloc(list->num_elements * sizeof(int)); ^ Laue_camera.c:7722:22: note: Assignment 'temp=malloc(list->num_elements*sizeof(int))', assigned value is 0 temp = malloc(list->num_elements * sizeof(int)); ^ Laue_camera.c:7723:66: note: Null pointer dereference for (iterate = 0;iterate < list->num_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:7726:92: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate = 0;iterate < list->num_elements;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7722:22: note: Assuming allocation function fails temp = malloc(list->num_elements * sizeof(int)); ^ Laue_camera.c:7722:22: note: Assignment 'temp=malloc(list->num_elements*sizeof(int))', assigned value is 0 temp = malloc(list->num_elements * sizeof(int)); ^ Laue_camera.c:7726:92: note: Null pointer dereference for (iterate = 0;iterate < list->num_elements;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7760:60: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:7758:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7758:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7760:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:7764:88: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7758:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7758:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7764:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7778:60: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:7776:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7776:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7778:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:7782:88: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7776:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7776:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Laue_camera.c:7782:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7797:72: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = focus_data_array->elements[iterate]; ^ Laue_camera.c:7795:44: note: Assuming allocation function fails struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ Laue_camera.c:7795:44: note: Assignment 'temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct))', assigned value is 0 struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ Laue_camera.c:7797:72: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = focus_data_array->elements[iterate]; ^ Laue_camera.c:7801:112: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) focus_data_array->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7795:44: note: Assuming allocation function fails struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ Laue_camera.c:7795:44: note: Assignment 'temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct))', assigned value is 0 struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ Laue_camera.c:7801:112: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) focus_data_array->elements[iterate] = temp[iterate]; ^ Laue_camera.c:7884:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_fp [nullPointerOutOfMemory] temp_fp[iterate] = list->conditional_functions[iterate]; ^ Laue_camera.c:7879:49: note: Assuming allocation function fails conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ Laue_camera.c:7879:49: note: Assignment 'temp_fp=malloc(list->num_elements*sizeof(intconditional_function_pointer))', assigned value is 0 conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ Laue_camera.c:7884:7: note: Null pointer dereference temp_fp[iterate] = list->conditional_functions[iterate]; ^ Laue_camera.c:7885:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_du [nullPointerOutOfMemory] temp_du[iterate] = list->p_data_unions[iterate]; ^ Laue_camera.c:7880:50: note: Assuming allocation function fails union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ Laue_camera.c:7880:50: note: Assignment 'temp_du=malloc(list->num_elements*sizeof(union conditional_data_union))', assigned value is 0 union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ Laue_camera.c:7885:7: note: Null pointer dereference temp_du[iterate] = list->p_data_unions[iterate]; ^ Laue_camera.c:7894:46: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_fp [nullPointerOutOfMemory] list->conditional_functions[iterate] = temp_fp[iterate]; ^ Laue_camera.c:7879:49: note: Assuming allocation function fails conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ Laue_camera.c:7879:49: note: Assignment 'temp_fp=malloc(list->num_elements*sizeof(intconditional_function_pointer))', assigned value is 0 conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ Laue_camera.c:7894:46: note: Null pointer dereference list->conditional_functions[iterate] = temp_fp[iterate]; ^ Laue_camera.c:7895:38: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_du [nullPointerOutOfMemory] list->p_data_unions[iterate] = temp_du[iterate]; ^ Laue_camera.c:7880:50: note: Assuming allocation function fails union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ Laue_camera.c:7880:50: note: Assignment 'temp_du=malloc(list->num_elements*sizeof(union conditional_data_union))', assigned value is 0 union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ Laue_camera.c:7895:38: note: Null pointer dereference list->p_data_unions[iterate] = temp_du[iterate]; ^ Laue_camera.c:7988:9: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] temp[iterate] = list->positions[iterate]; ^ Laue_camera.c:7983:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Coords*)); ^ Laue_camera.c:7983:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct Coords*))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Coords*)); ^ Laue_camera.c:7988:9: note: Null pointer dereference temp[iterate] = list->positions[iterate]; ^ Laue_camera.c:7995:36: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] list->positions[iterate] = temp[iterate]; ^ Laue_camera.c:7983:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Coords*)); ^ Laue_camera.c:7983:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct Coords*))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Coords*)); ^ Laue_camera.c:7995:36: note: Null pointer dereference list->positions[iterate] = temp[iterate]; ^ Laue_camera.c:8011:9: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] temp[iterate] = list->rotations[iterate]; ^ Laue_camera.c:8008:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Laue_camera.c:8008:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(double(*)[3][3]))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Laue_camera.c:8011:9: note: Null pointer dereference temp[iterate] = list->rotations[iterate]; ^ Laue_camera.c:8017:36: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] list->rotations[iterate] = temp[iterate]; ^ Laue_camera.c:8008:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Laue_camera.c:8008:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(double(*)[3][3]))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Laue_camera.c:8017:36: note: Null pointer dereference list->rotations[iterate] = temp[iterate]; ^ Laue_camera.c:8032:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8030:56: note: Assuming allocation function fails struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ Laue_camera.c:8030:56: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_process_element_struct))', assigned value is 0 struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ Laue_camera.c:8032:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8036:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8030:56: note: Assuming allocation function fails struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ Laue_camera.c:8030:56: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_process_element_struct))', assigned value is 0 struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ Laue_camera.c:8036:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8051:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8049:55: note: Assuming allocation function fails struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ Laue_camera.c:8049:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_material_element_struct))', assigned value is 0 struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ Laue_camera.c:8051:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8055:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8049:55: note: Assuming allocation function fails struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ Laue_camera.c:8049:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_material_element_struct))', assigned value is 0 struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ Laue_camera.c:8055:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8070:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8068:55: note: Assuming allocation function fails struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ Laue_camera.c:8068:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct))', assigned value is 0 struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ Laue_camera.c:8070:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8074:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8068:55: note: Assuming allocation function fails struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ Laue_camera.c:8068:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct))', assigned value is 0 struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ Laue_camera.c:8074:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8089:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8087:53: note: Assuming allocation function fails struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ Laue_camera.c:8087:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct))', assigned value is 0 struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ Laue_camera.c:8089:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8093:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8087:53: note: Assuming allocation function fails struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ Laue_camera.c:8087:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct))', assigned value is 0 struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ Laue_camera.c:8093:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8108:60: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8106:59: note: Assuming allocation function fails struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ Laue_camera.c:8106:59: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct))', assigned value is 0 struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ Laue_camera.c:8108:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8112:88: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8106:59: note: Assuming allocation function fails struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ Laue_camera.c:8106:59: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct))', assigned value is 0 struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ Laue_camera.c:8112:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8127:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8125:66: note: Assuming allocation function fails struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ Laue_camera.c:8125:66: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct))', assigned value is 0 struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ Laue_camera.c:8127:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8131:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8125:66: note: Assuming allocation function fails struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ Laue_camera.c:8125:66: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct))', assigned value is 0 struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ Laue_camera.c:8131:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8146:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8144:53: note: Assuming allocation function fails struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ Laue_camera.c:8144:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_master_element_struct))', assigned value is 0 struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ Laue_camera.c:8146:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Laue_camera.c:8150:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8144:53: note: Assuming allocation function fails struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ Laue_camera.c:8144:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_master_element_struct))', assigned value is 0 struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ Laue_camera.c:8150:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Laue_camera.c:8169:61: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = loggers->p_logger_volume[iterate]; ^ Laue_camera.c:8167:53: note: Assuming allocation function fails struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ Laue_camera.c:8167:53: note: Assignment 'temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list))', assigned value is 0 struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ Laue_camera.c:8169:61: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = loggers->p_logger_volume[iterate]; ^ Laue_camera.c:8173:99: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) loggers->p_logger_volume[iterate] = temp[iterate]; ^ Laue_camera.c:8167:53: note: Assuming allocation function fails struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ Laue_camera.c:8167:53: note: Assignment 'temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list))', assigned value is 0 struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ Laue_camera.c:8173:99: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) loggers->p_logger_volume[iterate] = temp[iterate]; ^ Laue_camera.c:8220:65: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = abs_loggers->p_abs_logger[iterate]; ^ Laue_camera.c:8218:43: note: Assuming allocation function fails struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ Laue_camera.c:8218:43: note: Assignment 'temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct*))', assigned value is 0 struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ Laue_camera.c:8220:65: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = abs_loggers->p_abs_logger[iterate]; ^ Laue_camera.c:8225:104: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) abs_loggers->p_abs_logger[iterate] = temp[iterate]; ^ Laue_camera.c:8218:43: note: Assuming allocation function fails struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ Laue_camera.c:8218:43: note: Assignment 'temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct*))', assigned value is 0 struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ Laue_camera.c:8225:104: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) abs_loggers->p_abs_logger[iterate] = temp[iterate]; ^ Laue_camera.c:8519:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fprintf(fp,"%d\t N I=%E \t", history->number_of_rays, history->intensity); ^ Laue_camera.c:8683:3: note: Assuming allocation function fails MPI_MASTER( ^ Laue_camera.c:8683:3: note: Assignment 'fp=fopen("union_history.dat","w")', assigned value is 0 MPI_MASTER( ^ Laue_camera.c:8683:3: note: Calling function 'fprintf_total_history', 2nd argument 'fp' value is 0 MPI_MASTER( ^ Laue_camera.c:8519:13: note: Null pointer dereference fprintf(fp,"%d\t N I=%E \t", history->number_of_rays, history->intensity); ^ Laue_camera.c:8683:3: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] MPI_MASTER( ^ Laue_camera.c:8683:3: note: Assuming allocation function fails MPI_MASTER( ^ Laue_camera.c:8683:3: note: Assignment 'fp=fopen("union_history.dat","w")', assigned value is 0 MPI_MASTER( ^ Laue_camera.c:8683:3: note: Null pointer dereference MPI_MASTER( ^ Laue_camera.c:8805:73: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_lines [nullPointerOutOfMemory] for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) temp_lines[iterate] = lines_master->lines[iterate]; ^ Laue_camera.c:8804:24: note: Assuming allocation function fails temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ Laue_camera.c:8804:24: note: Assignment 'temp_lines=malloc(lines_master->number_of_lines*sizeof(struct line_segment))', assigned value is 0 temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ Laue_camera.c:8805:73: note: Null pointer dereference for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) temp_lines[iterate] = lines_master->lines[iterate]; ^ Laue_camera.c:8808:104: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_lines [nullPointerOutOfMemory] for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) lines_master->lines[iterate] = temp_lines[iterate]; ^ Laue_camera.c:8804:24: note: Assuming allocation function fails temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ Laue_camera.c:8804:24: note: Assignment 'temp_lines=malloc(lines_master->number_of_lines*sizeof(struct line_segment))', assigned value is 0 temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ Laue_camera.c:8808:104: note: Null pointer dereference for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) lines_master->lines[iterate] = temp_lines[iterate]; ^ Laue_camera.c:8972:5: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[0] = coords_set(r1[0],r1[1],r1[2]); ^ Laue_camera.c:8971:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8971:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8972:5: note: Null pointer dereference points[0] = coords_set(r1[0],r1[1],r1[2]); ^ Laue_camera.c:8973:5: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[intersection_list.num_elements+1] = coords_set(r2[0],r2[1],r2[2]); ^ Laue_camera.c:8971:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8971:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8973:5: note: Null pointer dereference points[intersection_list.num_elements+1] = coords_set(r2[0],r2[1],r2[2]); ^ Laue_camera.c:8975:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[iterate].x = r1[0] + direction[0]*intersection_list.elements[iterate-1]; ^ Laue_camera.c:8971:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8971:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8975:9: note: Null pointer dereference points[iterate].x = r1[0] + direction[0]*intersection_list.elements[iterate-1]; ^ Laue_camera.c:8976:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[iterate].y = r1[1] + direction[1]*intersection_list.elements[iterate-1]; ^ Laue_camera.c:8971:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8971:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8976:9: note: Null pointer dereference points[iterate].y = r1[1] + direction[1]*intersection_list.elements[iterate-1]; ^ Laue_camera.c:8977:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[iterate].z = r1[2] + direction[2]*intersection_list.elements[iterate-1]; ^ Laue_camera.c:8971:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8971:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8977:9: note: Null pointer dereference points[iterate].z = r1[2] + direction[2]*intersection_list.elements[iterate-1]; ^ Laue_camera.c:8997:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] lines[iterate].point1 = points[iterate]; ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8997:9: note: Null pointer dereference lines[iterate].point1 = points[iterate]; ^ Laue_camera.c:8997:33: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] lines[iterate].point1 = points[iterate]; ^ Laue_camera.c:8971:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8971:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8997:33: note: Null pointer dereference lines[iterate].point1 = points[iterate]; ^ Laue_camera.c:8998:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] lines[iterate].point2 = points[iterate+1]; ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8998:9: note: Null pointer dereference lines[iterate].point2 = points[iterate+1]; ^ Laue_camera.c:8998:33: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] lines[iterate].point2 = points[iterate+1]; ^ Laue_camera.c:8971:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8971:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Laue_camera.c:8998:33: note: Null pointer dereference lines[iterate].point2 = points[iterate+1]; ^ Laue_camera.c:8999:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8999:27: note: Null pointer dereference midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ Laue_camera.c:8999:53: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8999:53: note: Null pointer dereference midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ Laue_camera.c:9000:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:9000:27: note: Null pointer dereference midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ Laue_camera.c:9000:53: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:9000:53: note: Null pointer dereference midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ Laue_camera.c:9001:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:9001:27: note: Null pointer dereference midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ Laue_camera.c:9001:53: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ Laue_camera.c:8986:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:8986:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Laue_camera.c:9001:53: note: Null pointer dereference midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ Laue_camera.c:9213:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_box_storage [nullPointerOutOfMemory] *union_output.p_box_storage = *union_input->p_box_storage; ^ Laue_camera.c:9211:38: note: Assuming allocation function fails union_output.p_box_storage = malloc(sizeof(struct box_storage)); ^ Laue_camera.c:9211:38: note: Assignment 'union_output.p_box_storage=malloc(sizeof(struct box_storage))', assigned value is 0 union_output.p_box_storage = malloc(sizeof(struct box_storage)); ^ Laue_camera.c:9213:16: note: Null pointer dereference *union_output.p_box_storage = *union_input->p_box_storage; ^ Laue_camera.c:9224:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_cylinder_storage [nullPointerOutOfMemory] *union_output.p_cylinder_storage = *union_input->p_cylinder_storage; ^ Laue_camera.c:9222:43: note: Assuming allocation function fails union_output.p_cylinder_storage = malloc(sizeof(struct cylinder_storage)); ^ Laue_camera.c:9222:43: note: Assignment 'union_output.p_cylinder_storage=malloc(sizeof(struct cylinder_storage))', assigned value is 0 union_output.p_cylinder_storage = malloc(sizeof(struct cylinder_storage)); ^ Laue_camera.c:9224:16: note: Null pointer dereference *union_output.p_cylinder_storage = *union_input->p_cylinder_storage; ^ Laue_camera.c:9234:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_sphere_storage [nullPointerOutOfMemory] *union_output.p_sphere_storage = *union_input->p_sphere_storage; ^ Laue_camera.c:9232:41: note: Assuming allocation function fails union_output.p_sphere_storage = malloc(sizeof(struct sphere_storage)); ^ Laue_camera.c:9232:41: note: Assignment 'union_output.p_sphere_storage=malloc(sizeof(struct sphere_storage))', assigned value is 0 union_output.p_sphere_storage = malloc(sizeof(struct sphere_storage)); ^ Laue_camera.c:9234:16: note: Null pointer dereference *union_output.p_sphere_storage = *union_input->p_sphere_storage; ^ Laue_camera.c:9244:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_cone_storage [nullPointerOutOfMemory] *union_output.p_cone_storage = *union_input->p_cone_storage; ^ Laue_camera.c:9242:39: note: Assuming allocation function fails union_output.p_cone_storage = malloc(sizeof(struct cone_storage)); ^ Laue_camera.c:9242:39: note: Assignment 'union_output.p_cone_storage=malloc(sizeof(struct cone_storage))', assigned value is 0 union_output.p_cone_storage = malloc(sizeof(struct cone_storage)); ^ Laue_camera.c:9244:16: note: Null pointer dereference *union_output.p_cone_storage = *union_input->p_cone_storage; ^ Laue_camera.c:9254:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_mesh_storage [nullPointerOutOfMemory] *union_output.p_mesh_storage = *union_input->p_mesh_storage; ^ Laue_camera.c:9252:39: note: Assuming allocation function fails union_output.p_mesh_storage = malloc(sizeof(struct mesh_storage)); ^ Laue_camera.c:9252:39: note: Assignment 'union_output.p_mesh_storage=malloc(sizeof(struct mesh_storage))', assigned value is 0 union_output.p_mesh_storage = malloc(sizeof(struct mesh_storage)); ^ Laue_camera.c:9254:16: note: Null pointer dereference *union_output.p_mesh_storage = *union_input->p_mesh_storage; ^ Laue_camera.c:9312:9: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] rotate(output[point_nr].x,output[point_nr].y,output[point_nr].z,cross_product.x,cross_product.y,cross_product.z,rotate_angle,direction.x,direction.y,direction.z); ^ Laue_camera.c:12623:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12623:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12625:22: note: Calling function 'points_on_circle', 1st argument 'circle_point_array' value is 0 points_on_circle(circle_point_array,cyl_top_point,cyl_direction,radius,number_of_points); ^ Laue_camera.c:9312:9: note: Null pointer dereference rotate(output[point_nr].x,output[point_nr].y,output[point_nr].z,cross_product.x,cross_product.y,cross_product.z,rotate_angle,direction.x,direction.y,direction.z); ^ Laue_camera.c:9313:9: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] output[point_nr] = coords_add(output[point_nr],center); ^ Laue_camera.c:12623:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12623:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12625:22: note: Calling function 'points_on_circle', 1st argument 'circle_point_array' value is 0 points_on_circle(circle_point_array,cyl_top_point,cyl_direction,radius,number_of_points); ^ Laue_camera.c:9313:9: note: Null pointer dereference output[point_nr] = coords_add(output[point_nr],center); ^ Laue_camera.c:9313:39: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] output[point_nr] = coords_add(output[point_nr],center); ^ Laue_camera.c:12623:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12623:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12625:22: note: Calling function 'points_on_circle', 1st argument 'circle_point_array' value is 0 points_on_circle(circle_point_array,cyl_top_point,cyl_direction,radius,number_of_points); ^ Laue_camera.c:9313:39: note: Null pointer dereference output[point_nr] = coords_add(output[point_nr],center); ^ Laue_camera.c:11823:43: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Laue_camera.c:11817:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:11817:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:11823:43: note: Null pointer dereference if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Laue_camera.c:11831:43: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Laue_camera.c:11817:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:11817:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:11823:85: note: Assuming condition is false if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Laue_camera.c:11831:43: note: Null pointer dereference if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Laue_camera.c:12630:46: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Laue_camera.c:12623:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12623:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12630:46: note: Null pointer dereference if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Laue_camera.c:12638:46: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Laue_camera.c:12623:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12623:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Laue_camera.c:12630:91: note: Assuming condition is false if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Laue_camera.c:12638:46: note: Null pointer dereference if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Laue_camera.c:13454:3: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].num_elements = number_of_volumes - 1; ^ Laue_camera.c:13451:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13451:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13454:3: note: Null pointer dereference temporary_children_lists[0].num_elements = number_of_volumes - 1; ^ Laue_camera.c:13455:3: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ Laue_camera.c:13451:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13451:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13455:3: note: Null pointer dereference temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ Laue_camera.c:13455:49: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ Laue_camera.c:13451:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13451:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13455:49: note: Null pointer dereference temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ Laue_camera.c:13459:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].elements[parent-1] = parent; ^ Laue_camera.c:13451:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13451:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13459:7: note: Null pointer dereference temporary_children_lists[0].elements[parent-1] = parent; ^ Laue_camera.c:13468:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13468:3: note: Null pointer dereference true_children_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13469:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0]->num_elements = number_of_volumes - 1; ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13469:3: note: Null pointer dereference true_children_lists[0]->num_elements = number_of_volumes - 1; ^ Laue_camera.c:13470:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13470:3: note: Null pointer dereference true_children_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ Laue_camera.c:13476:7: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0]->elements[parent-1] = parent; ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13476:7: note: Null pointer dereference true_children_lists[0]->elements[parent-1] = parent; ^ Laue_camera.c:13511:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[parent].num_elements=0; ^ Laue_camera.c:13451:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13451:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13511:7: note: Null pointer dereference temporary_children_lists[parent].num_elements=0; ^ Laue_camera.c:13515:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Laue_camera.c:13451:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13451:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13515:7: note: Null pointer dereference MPI_MASTER( ^ Laue_camera.c:13639:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13639:5: note: Null pointer dereference true_children_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13640:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[parent]->num_elements = 0; ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13640:5: note: Null pointer dereference true_children_lists[parent]->num_elements = 0; ^ Laue_camera.c:13641:64: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements,true_temp_list_local,true_children_lists[parent]); ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13641:64: note: Null pointer dereference allocate_list_from_temp(used_elements,true_temp_list_local,true_children_lists[parent]); ^ Laue_camera.c:13643:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15089:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ Laue_camera.c:13643:5: note: Null pointer dereference MPI_MASTER( ^ Laue_camera.c:13652:53: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] for(child=0;childnum_elements = number_of_volumes-1; ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13675:3: note: Null pointer dereference true_overlap_lists[0]->num_elements = number_of_volumes-1; ^ Laue_camera.c:13676:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] true_overlap_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13676:3: note: Null pointer dereference true_overlap_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ Laue_camera.c:13678:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13678:3: note: Null pointer dereference raw_overlap_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13679:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->num_elements = number_of_volumes; ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13679:3: note: Null pointer dereference raw_overlap_lists[0]->num_elements = number_of_volumes; ^ Laue_camera.c:13680:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->elements = malloc(number_of_volumes*sizeof(int)); ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13680:3: note: Null pointer dereference raw_overlap_lists[0]->elements = malloc(number_of_volumes*sizeof(int)); ^ Laue_camera.c:13681:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->elements[0] = 0; // Volume 0 overlaps itself ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13681:3: note: Null pointer dereference raw_overlap_lists[0]->elements[0] = 0; // Volume 0 overlaps itself ^ Laue_camera.c:13685:7: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] true_overlap_lists[0]->elements[parent-1] = parent; ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13685:7: note: Null pointer dereference true_overlap_lists[0]->elements[parent-1] = parent; ^ Laue_camera.c:13686:7: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->elements[parent] = parent; ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13686:7: note: Null pointer dereference raw_overlap_lists[0]->elements[parent] = parent; ^ Laue_camera.c:13690:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13690:3: note: Null pointer dereference MPI_MASTER( ^ Laue_camera.c:13703:7: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] true_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13703:7: note: Null pointer dereference true_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13776:7: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13776:7: note: Null pointer dereference raw_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13777:7: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[parent]->num_elements = 0; ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13777:7: note: Null pointer dereference raw_overlap_lists[parent]->num_elements = 0; ^ Laue_camera.c:13778:61: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements,temp_list_local,raw_overlap_lists[parent]); ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13778:61: note: Null pointer dereference allocate_list_from_temp(used_elements,temp_list_local,raw_overlap_lists[parent]); ^ Laue_camera.c:13781:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Laue_camera.c:13671:35: note: Assuming allocation function fails temporary_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13671:35: note: Assignment 'temporary_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Laue_camera.c:13781:7: note: Null pointer dereference MPI_MASTER( ^ Laue_camera.c:13894:59: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements,temp_list_local,true_overlap_lists[parent]); ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13894:59: note: Null pointer dereference allocate_list_from_temp(used_elements,temp_list_local,true_overlap_lists[parent]); ^ Laue_camera.c:13896:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15097:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ Laue_camera.c:13896:5: note: Null pointer dereference MPI_MASTER( ^ Laue_camera.c:13902:53: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_overlap_lists [nullPointerOutOfMemory] for(child=1;childnum_elements; parent++) { ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15127:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ Laue_camera.c:14451:29: note: Null pointer dereference for (parent = 0; parentnum_elements; parent++) { ^ Laue_camera.c:14453:27: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15127:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ Laue_camera.c:14453:27: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Laue_camera.c:14453:41: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15127:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ Laue_camera.c:14453:41: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Laue_camera.c:14453:84: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15127:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ Laue_camera.c:14453:84: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Laue_camera.c:14462:61: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements, temp_list_local, grandparents_lists[iterate]); ^ Laue_camera.c:15126:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15126:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15127:33: note: Calling function 'generate_grandparents_lists', 1st argument 'grandparents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ Laue_camera.c:14462:61: note: Null pointer dereference allocate_list_from_temp(used_elements, temp_list_local, grandparents_lists[iterate]); ^ Laue_camera.c:14465:5: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Laue_camera.c:15126:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15126:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15127:33: note: Calling function 'generate_grandparents_lists', 1st argument 'grandparents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ Laue_camera.c:14465:5: note: Null pointer dereference MPI_MASTER( ^ Laue_camera.c:14492:30: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] work_list.num_elements = true_overlap_lists[volume_index]->num_elements; ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15145:46: note: Calling function 'generate_destinations_lists_experimental', 1st argument 'true_overlap_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ Laue_camera.c:14492:30: note: Null pointer dereference work_list.num_elements = true_overlap_lists[volume_index]->num_elements; ^ Laue_camera.c:14494:92: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] for (iterate=0;iterateelements[iterate]; ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15145:46: note: Calling function 'generate_destinations_lists_experimental', 1st argument 'true_overlap_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ Laue_camera.c:14494:92: note: Null pointer dereference for (iterate=0;iterateelements[iterate]; ^ Laue_camera.c:14539:28: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15145:66: note: Calling function 'generate_destinations_lists_experimental', 2nd argument 'true_children_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ Laue_camera.c:14539:28: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) ^ Laue_camera.c:14540:50: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] remove_element_in_list_by_value(&work_list,true_children_lists[volume_index]->elements[iterate]); ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15145:66: note: Calling function 'generate_destinations_lists_experimental', 2nd argument 'true_children_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ Laue_camera.c:14540:50: note: Null pointer dereference remove_element_in_list_by_value(&work_list,true_children_lists[volume_index]->elements[iterate]); ^ Laue_camera.c:14545:28: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) ^ Laue_camera.c:15140:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15140:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15145:116: note: Calling function 'generate_destinations_lists_experimental', 4th argument 'true_grandparents_lists_no_masks' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ Laue_camera.c:14545:28: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) ^ Laue_camera.c:14546:50: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] remove_element_in_list_by_value(&work_list,true_grandparents_lists[volume_index]->elements[iterate]); ^ Laue_camera.c:15140:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15140:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15145:116: note: Calling function 'generate_destinations_lists_experimental', 4th argument 'true_grandparents_lists_no_masks' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ Laue_camera.c:14546:50: note: Null pointer dereference remove_element_in_list_by_value(&work_list,true_grandparents_lists[volume_index]->elements[iterate]); ^ Laue_camera.c:14560:24: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists [nullPointerOutOfMemory] if (on_int_list(*true_parents_lists[volume_index],work_list.elements[iterate])){ ^ Laue_camera.c:15119:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15119:41: note: Assignment 'true_parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15145:87: note: Calling function 'generate_destinations_lists_experimental', 3rd argument 'true_parents_lists_no_masks' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ Laue_camera.c:14560:24: note: Null pointer dereference if (on_int_list(*true_parents_lists[volume_index],work_list.elements[iterate])){ ^ Laue_camera.c:14860:34: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] for (parent=0;parentgeometry.children.elements[child]]->num_elements;parent++) { ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15152:36: note: Calling function 'generate_direct_children_lists', 1st argument 'parents_lists' value is 0 generate_direct_children_lists(parents_lists,Volumes,number_of_volumes,verbal); ^ Laue_camera.c:14860:34: note: Null pointer dereference for (parent=0;parentgeometry.children.elements[child]]->num_elements;parent++) { ^ Laue_camera.c:14861:74: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] if (on_int_list(Volumes[volume_index]->geometry.children,parents_lists[Volumes[volume_index]->geometry.children.elements[child]]->elements[parent])) ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15152:36: note: Calling function 'generate_direct_children_lists', 1st argument 'parents_lists' value is 0 generate_direct_children_lists(parents_lists,Volumes,number_of_volumes,verbal); ^ Laue_camera.c:14861:74: note: Null pointer dereference if (on_int_list(Volumes[volume_index]->geometry.children,parents_lists[Volumes[volume_index]->geometry.children.elements[child]]->elements[parent])) ^ Laue_camera.c:15167:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] if (true_overlap_lists[iterate]->num_elements > 0) free(true_overlap_lists[iterate]->elements); ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15167:13: note: Null pointer dereference if (true_overlap_lists[iterate]->num_elements > 0) free(true_overlap_lists[iterate]->elements); ^ Laue_camera.c:15168:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] free(true_overlap_lists[iterate]); ^ Laue_camera.c:15093:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15093:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15168:14: note: Null pointer dereference free(true_overlap_lists[iterate]); ^ Laue_camera.c:15171:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] if (raw_overlap_lists[iterate]->num_elements > 0) free(raw_overlap_lists[iterate]->elements); ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15171:13: note: Null pointer dereference if (raw_overlap_lists[iterate]->num_elements > 0) free(raw_overlap_lists[iterate]->elements); ^ Laue_camera.c:15172:14: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] free(raw_overlap_lists[iterate]); ^ Laue_camera.c:15095:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15095:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15172:14: note: Null pointer dereference free(raw_overlap_lists[iterate]); ^ Laue_camera.c:15175:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] if (parents_lists[iterate]->num_elements > 0) free(parents_lists[iterate]->elements); ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15175:13: note: Null pointer dereference if (parents_lists[iterate]->num_elements > 0) free(parents_lists[iterate]->elements); ^ Laue_camera.c:15176:14: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] free(parents_lists[iterate]); ^ Laue_camera.c:15104:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15104:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15176:14: note: Null pointer dereference free(parents_lists[iterate]); ^ Laue_camera.c:15179:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists_no_masks [nullPointerOutOfMemory] if (parents_lists_no_masks[iterate]->num_elements > 0) free(parents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15109:36: note: Assuming allocation function fails parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15109:36: note: Assignment 'parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15179:13: note: Null pointer dereference if (parents_lists_no_masks[iterate]->num_elements > 0) free(parents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15180:14: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists_no_masks [nullPointerOutOfMemory] free(parents_lists_no_masks[iterate]); ^ Laue_camera.c:15109:36: note: Assuming allocation function fails parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15109:36: note: Assignment 'parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15180:14: note: Null pointer dereference free(parents_lists_no_masks[iterate]); ^ Laue_camera.c:15183:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists [nullPointerOutOfMemory] if (true_parents_lists[iterate]->num_elements > 0) free(true_parents_lists[iterate]->elements); ^ Laue_camera.c:15114:32: note: Assuming allocation function fails true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15114:32: note: Assignment 'true_parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15183:13: note: Null pointer dereference if (true_parents_lists[iterate]->num_elements > 0) free(true_parents_lists[iterate]->elements); ^ Laue_camera.c:15184:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists [nullPointerOutOfMemory] free(true_parents_lists[iterate]); ^ Laue_camera.c:15114:32: note: Assuming allocation function fails true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15114:32: note: Assignment 'true_parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15184:14: note: Null pointer dereference free(true_parents_lists[iterate]); ^ Laue_camera.c:15187:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists_no_masks [nullPointerOutOfMemory] if (true_parents_lists_no_masks[iterate]->num_elements > 0) free(true_parents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15119:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15119:41: note: Assignment 'true_parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15187:13: note: Null pointer dereference if (true_parents_lists_no_masks[iterate]->num_elements > 0) free(true_parents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15188:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists_no_masks [nullPointerOutOfMemory] free(true_parents_lists_no_masks[iterate]); ^ Laue_camera.c:15119:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15119:41: note: Assignment 'true_parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15188:14: note: Null pointer dereference free(true_parents_lists_no_masks[iterate]); ^ Laue_camera.c:15191:13: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] if (grandparents_lists[iterate]->num_elements > 0) free(grandparents_lists[iterate]->elements); ^ Laue_camera.c:15126:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15126:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15191:13: note: Null pointer dereference if (grandparents_lists[iterate]->num_elements > 0) free(grandparents_lists[iterate]->elements); ^ Laue_camera.c:15192:14: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] free(grandparents_lists[iterate]); ^ Laue_camera.c:15126:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15126:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15192:14: note: Null pointer dereference free(grandparents_lists[iterate]); ^ Laue_camera.c:15195:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] if (true_grandparents_lists[iterate]->num_elements > 0) free(true_grandparents_lists[iterate]->elements); ^ Laue_camera.c:15136:37: note: Assuming allocation function fails true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15136:37: note: Assignment 'true_grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15195:13: note: Null pointer dereference if (true_grandparents_lists[iterate]->num_elements > 0) free(true_grandparents_lists[iterate]->elements); ^ Laue_camera.c:15196:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] free(true_grandparents_lists[iterate]); ^ Laue_camera.c:15136:37: note: Assuming allocation function fails true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15136:37: note: Assignment 'true_grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15196:14: note: Null pointer dereference free(true_grandparents_lists[iterate]); ^ Laue_camera.c:15199:13: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists_no_masks [nullPointerOutOfMemory] if (grandparents_lists_no_masks[iterate]->num_elements > 0) free(grandparents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15131:41: note: Assuming allocation function fails grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15131:41: note: Assignment 'grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15199:13: note: Null pointer dereference if (grandparents_lists_no_masks[iterate]->num_elements > 0) free(grandparents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15200:14: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists_no_masks [nullPointerOutOfMemory] free(grandparents_lists_no_masks[iterate]); ^ Laue_camera.c:15131:41: note: Assuming allocation function fails grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15131:41: note: Assignment 'grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15200:14: note: Null pointer dereference free(grandparents_lists_no_masks[iterate]); ^ Laue_camera.c:15203:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists_no_masks [nullPointerOutOfMemory] if (true_grandparents_lists_no_masks[iterate]->num_elements > 0) free(true_grandparents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15140:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15140:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15203:13: note: Null pointer dereference if (true_grandparents_lists_no_masks[iterate]->num_elements > 0) free(true_grandparents_lists_no_masks[iterate]->elements); ^ Laue_camera.c:15204:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists_no_masks [nullPointerOutOfMemory] free(true_grandparents_lists_no_masks[iterate]); ^ Laue_camera.c:15140:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15140:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15204:14: note: Null pointer dereference free(true_grandparents_lists_no_masks[iterate]); ^ Laue_camera.c:15207:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] if (true_children_lists[iterate]->num_elements > 0) free(true_children_lists[iterate]->elements); ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15207:13: note: Null pointer dereference if (true_children_lists[iterate]->num_elements > 0) free(true_children_lists[iterate]->elements); ^ Laue_camera.c:15208:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] free(true_children_lists[iterate]); ^ Laue_camera.c:15087:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15087:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Laue_camera.c:15208:14: note: Null pointer dereference free(true_children_lists[iterate]); ^ Laue_camera.c:15396:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fprintf(fp,"r_old x, r_old y, r_old z, old t, r x, r y, r z, new t, weight change, volume index, neutron id \n"); ^ Laue_camera.c:15395:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","w"); ^ Laue_camera.c:15395:13: note: Assignment 'fp=fopen("Union_absorption.dat","w")', assigned value is 0 fp = fopen("Union_absorption.dat","w"); ^ Laue_camera.c:15396:11: note: Null pointer dereference fprintf(fp,"r_old x, r_old y, r_old z, old t, r x, r y, r z, new t, weight change, volume index, neutron id \n"); ^ Laue_camera.c:15398:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fclose(fp); ^ Laue_camera.c:15395:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","w"); ^ Laue_camera.c:15395:13: note: Assignment 'fp=fopen("Union_absorption.dat","w")', assigned value is 0 fp = fopen("Union_absorption.dat","w"); ^ Laue_camera.c:15398:10: note: Null pointer dereference fclose(fp); ^ Laue_camera.c:15411:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fprintf(fp,"%g, %g, %g, %g, %g, %g, %g, %g, %e, %i, %i \n", ^ Laue_camera.c:15404:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","a"); ^ Laue_camera.c:15404:13: note: Assignment 'fp=fopen("Union_absorption.dat","a")', assigned value is 0 fp = fopen("Union_absorption.dat","a"); ^ Laue_camera.c:15411:13: note: Null pointer dereference fprintf(fp,"%g, %g, %g, %g, %g, %g, %g, %g, %e, %i, %i \n", ^ Laue_camera.c:15419:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fclose(fp); ^ Laue_camera.c:15404:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","a"); ^ Laue_camera.c:15404:13: note: Assignment 'fp=fopen("Union_absorption.dat","a")', assigned value is 0 fp = fopen("Union_absorption.dat","a"); ^ Laue_camera.c:15419:10: note: Null pointer dereference fclose(fp); ^ Laue_camera.c:18933:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].h = h; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18933:7: note: Null pointer dereference list[i].h = h; ^ Laue_camera.c:18934:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].k = k; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18934:7: note: Null pointer dereference list[i].k = k; ^ Laue_camera.c:18935:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].l = l; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18935:7: note: Null pointer dereference list[i].l = l; ^ Laue_camera.c:18936:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].F2 = F2; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18936:7: note: Null pointer dereference list[i].F2 = F2; ^ Laue_camera.c:18939:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_x = h*info->asx + k*info->bsx + l*info->csx; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18939:7: note: Null pointer dereference list[i].tau_x = h*info->asx + k*info->bsx + l*info->csx; ^ Laue_camera.c:18940:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_y = h*info->asy + k*info->bsy + l*info->csy; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18940:7: note: Null pointer dereference list[i].tau_y = h*info->asy + k*info->bsy + l*info->csy; ^ Laue_camera.c:18941:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_z = h*info->asz + k*info->bsz + l*info->csz; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18941:7: note: Null pointer dereference list[i].tau_z = h*info->asz + k*info->bsz + l*info->csz; ^ Laue_camera.c:18942:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18942:7: note: Null pointer dereference list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Laue_camera.c:18942:26: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18942:26: note: Null pointer dereference list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Laue_camera.c:18942:40: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18942:40: note: Null pointer dereference list[i].tau = sqrt(list[i].tau_x*list[i].tau_x + ^ Laue_camera.c:18943:26: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_y*list[i].tau_y + ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18943:26: note: Null pointer dereference list[i].tau_y*list[i].tau_y + ^ Laue_camera.c:18943:40: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_y*list[i].tau_y + ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18943:40: note: Null pointer dereference list[i].tau_y*list[i].tau_y + ^ Laue_camera.c:18944:26: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_z*list[i].tau_z); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18944:26: note: Null pointer dereference list[i].tau_z*list[i].tau_z); ^ Laue_camera.c:18944:40: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].tau_z*list[i].tau_z); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18944:40: note: Null pointer dereference list[i].tau_z*list[i].tau_z); ^ Laue_camera.c:18945:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x = list[i].tau_x/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18945:7: note: Null pointer dereference list[i].u1x = list[i].tau_x/list[i].tau; ^ Laue_camera.c:18945:21: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x = list[i].tau_x/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18945:21: note: Null pointer dereference list[i].u1x = list[i].tau_x/list[i].tau; ^ Laue_camera.c:18945:35: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x = list[i].tau_x/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18945:35: note: Null pointer dereference list[i].u1x = list[i].tau_x/list[i].tau; ^ Laue_camera.c:18946:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1y = list[i].tau_y/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18946:7: note: Null pointer dereference list[i].u1y = list[i].tau_y/list[i].tau; ^ Laue_camera.c:18946:21: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1y = list[i].tau_y/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18946:21: note: Null pointer dereference list[i].u1y = list[i].tau_y/list[i].tau; ^ Laue_camera.c:18946:35: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1y = list[i].tau_y/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18946:35: note: Null pointer dereference list[i].u1y = list[i].tau_y/list[i].tau; ^ Laue_camera.c:18947:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1z = list[i].tau_z/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18947:7: note: Null pointer dereference list[i].u1z = list[i].tau_z/list[i].tau; ^ Laue_camera.c:18947:21: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1z = list[i].tau_z/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18947:21: note: Null pointer dereference list[i].u1z = list[i].tau_z/list[i].tau; ^ Laue_camera.c:18947:35: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1z = list[i].tau_z/list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18947:35: note: Null pointer dereference list[i].u1z = list[i].tau_z/list[i].tau; ^ Laue_camera.c:18948:41: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] sig1 = FWHM2RMS*info->m_delta_d_d*list[i].tau; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18948:41: note: Null pointer dereference sig1 = FWHM2RMS*info->m_delta_d_d*list[i].tau; ^ Laue_camera.c:18952:18: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x, list[i].u1y, list[i].u1z); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18952:18: note: Null pointer dereference list[i].u1x, list[i].u1y, list[i].u1z); ^ Laue_camera.c:18952:31: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x, list[i].u1y, list[i].u1z); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18952:31: note: Null pointer dereference list[i].u1x, list[i].u1y, list[i].u1z); ^ Laue_camera.c:18952:44: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u1x, list[i].u1y, list[i].u1z); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18952:44: note: Null pointer dereference list[i].u1x, list[i].u1y, list[i].u1z); ^ Laue_camera.c:18953:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] vec_prod(b2[0], b2[1], b2[2], ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18953:7: note: Null pointer dereference vec_prod(b2[0], b2[1], b2[2], ^ Laue_camera.c:18960:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u2x = b1[0]; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18960:9: note: Null pointer dereference list[i].u2x = b1[0]; ^ Laue_camera.c:18961:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u2y = b1[1]; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18961:9: note: Null pointer dereference list[i].u2y = b1[1]; ^ Laue_camera.c:18962:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u2z = b1[2]; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18962:9: note: Null pointer dereference list[i].u2z = b1[2]; ^ Laue_camera.c:18963:25: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] sig2 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18963:25: note: Null pointer dereference sig2 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Laue_camera.c:18964:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u3x = b2[0]; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18964:9: note: Null pointer dereference list[i].u3x = b2[0]; ^ Laue_camera.c:18965:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u3y = b2[1]; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18965:9: note: Null pointer dereference list[i].u3y = b2[1]; ^ Laue_camera.c:18966:9: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].u3z = b2[2]; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18966:9: note: Null pointer dereference list[i].u3z = b2[2]; ^ Laue_camera.c:18967:25: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] sig3 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18967:25: note: Null pointer dereference sig3 = FWHM2RMS*list[i].tau*MIN2RAD*SC_mosaic; ^ Laue_camera.c:19085:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].sig123 = sig1*sig2*sig3; ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:19085:7: note: Null pointer dereference list[i].sig123 = sig1*sig2*sig3; ^ Laue_camera.c:19086:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].m1 = 1/(2*sig1*sig1); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:19086:7: note: Null pointer dereference list[i].m1 = 1/(2*sig1*sig1); ^ Laue_camera.c:19087:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].m2 = 1/(2*sig2*sig2); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:19087:7: note: Null pointer dereference list[i].m2 = 1/(2*sig2*sig2); ^ Laue_camera.c:19088:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] list[i].m3 = 1/(2*sig3*sig3); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:19088:7: note: Null pointer dereference list[i].m3 = 1/(2*sig3*sig3); ^ Laue_camera.c:19104:11: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] qsort(list, i, sizeof(struct hkl_data_union), SX_list_compare_union); ^ Laue_camera.c:18916:42: note: Assuming allocation function fails list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:18916:12: note: Assignment 'list=(struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union))', assigned value is 0 list = (struct hkl_data_union*)malloc(size*sizeof(struct hkl_data_union)); ^ Laue_camera.c:19104:11: note: Null pointer dereference qsort(list, i, sizeof(struct hkl_data_union), SX_list_compare_union); ^ Laue_camera.c:9027:12: warning: Uninitialized variable: draw_order.lines [uninitvar] return draw_order; ^ Laue_camera.c:9011:36: note: Assuming condition is false if (draw_order.number_of_lines > 0) { ^ Laue_camera.c:9027:12: note: Uninitialized variable: draw_order.lines return draw_order; ^ Laue_camera.c:12486:66: error: Uninitialized variable: square_center [uninitvar] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Laue_camera.c:13359:25: error: Uninitialized variable: temp_pointer [uninitvar] ListA = temp_pointer; ^ Laue_camera.c:14710:79: warning: Uninitialized variable: logic_list.elements [uninitvar] Volumes[N_volume]->geometry.destinations_list.num_elements = sum_int_list(logic_list); ^ Laue_camera.c:14693:32: note: Assuming condition is false if (logic_list.num_elements>0) logic_list.elements = malloc(logic_list.num_elements*sizeof(int)); ^ Laue_camera.c:14710:79: note: Uninitialized variable: logic_list.elements Volumes[N_volume]->geometry.destinations_list.num_elements = sum_int_list(logic_list); ^ Laue_camera.c:19418:52: error: Uninitialized variable: r [uninitvar] "(r=%g, sum=%g, j=%i, tau_count=%i).\n", r, sum, j , hkl_info->tau_count); ^ Laue_camera.c:12486:66: error: Uninitialized struct member: square_center.x [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Laue_camera.c:12486:66: error: Uninitialized struct member: square_center.y [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Laue_camera.c:12486:66: error: Uninitialized struct member: square_center.z [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Laue_camera.c:19058:14: error: Uninitialized variable: c1 [legacyUninitvar] if ((c1==0) && (c2==0)){ ^ Laue_camera.c:19064:74: error: Uninitialized variable: c2 [legacyUninitvar] sig_tau_c = MIN2RAD*sqrt(c1*SC_mosaic_AB[0]*c1*SC_mosaic_AB[0] + c2*SC_mosaic_AB[1]*c2*SC_mosaic_AB[1]); ^ Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;MULTICORE... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;OFF_LEGACY... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;PROCESS_AF_HB_1D_DETECTOR... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;PROCESS_INCOHERENTPHONON_DETECTOR... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;PROCESS_NCRYSTAL_DETECTOR... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;PROCESS_PHONONSIMPLE_DETECTOR... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;PROCESS_POWDER_DETECTOR... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;PROCESS_TEMPLATE_DETECTOR... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;PROCESS_TEXTURE_DETECTOR... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;SIGKILL;SIGUSR1;SIGUSR2... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_MPI... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_MPI;USE_NEXUS... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_NEXUS... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;Union_trace_verbal_setting... Laue_camera.c:27151:17: error: printf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum] printf("chance to get through this length of absorber: %f \%\n", 100*exp(-Volumes[current_volume]->p_physics->my_a*length_to_boundery)); ^ Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__APPLE__;__GNUC__... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__APPLE__;__unix__... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__FreeBSD__... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__GNUC__... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__GNUC__;__clang__... Checking Laue_camera.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__dest_os... DEBUG: CMD: cppcheck finished INFO: End of linting ./Laue_camera.c