Skip to contentSkip to conversation

Fix a memory access violation resulting from improper error propogation.

PATCH Applied [email protected] 2 participants 2 messages Jan 31, 2013 – Feb 1, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix a memory access violation resulting from improper error propogation.

From: Allan Wirth <[email protected]>

Fixes an issue where a variable is used undeclared, which can cause seg faults on some systems if the configuration file is not formatted properly.

src/conf.c +1 -1
index ecaa339..4ba5863 100644
@@ -3530,7 +3530,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t
 				if (err < 0)
 					goto _err;
 			}
-		} else if (config_file_open(root, fi[idx].name) < 0)
+		} else if ((err = config_file_open(root, fi[idx].name)) < 0)
 			goto _err;
 	}
 	*dst = NULL;
Signature · 1 line
1.7.10.4
Applied
#1 lore raw

At Thu, 31 Jan 2013 13:55:33 -0500,

Quoted 8 lines · [email protected] wrote:

From: Allan Wirth <[email protected]>

Fixes an issue where a variable is used undeclared, which can cause seg faults on some systems if the configuration file is not formatted properly.

Thanks, applied now.

Takashi

Quoted 17 lines
src/conf.c +1 -1
index ecaa339..4ba5863 100644
@@ -3530,7 +3530,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t
 				if (err < 0)
 					goto _err;
 			}
-		} else if (config_file_open(root, fi[idx].name) < 0)
+		} else if ((err = config_file_open(root, fi[idx].name)) < 0)
 			goto _err;
 	}
 	*dst = NULL;
Signature · 1 line
1.7.10.4