This patch fixes a segmentation fault in
app_icd__read_icd_config, the bug is present on all
platforms but
only triggered on ppc(64) and amd64
/* iterrate over our modules & see if the module string
is in the module_mask */
for (mod = APP_ICD; mod <= ICD_MAX_MODULES; ++mod) {
if (icd_module_strings[mod] != NULL &&
icd_instr(varlist->value, icd_module_strings[mod],
icd_delimiter) )
iterates over icd_module_strings but won't stop on the
last element (which is "NULL") resulting in a
segmentation fault
attached patch moves to != NULL check into the for
statement, aborting the loop if the last element in the
array has been reached
thanks to Danny van Dyk (Kugelfang) for finding this
patch to fix segfault in app_icd__read_icd_config