[alsa-devel] [PATCH - my module 1/1] Fix a memory access violation resulting from improper error propogation.
From: Allan Wirth allan@allanwirth.com
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.
Signed-off-by: Allan Wirth allan@allanwirth.com
diff --git a/src/conf.c b/src/conf.c index ecaa339..4ba5863 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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;
At Thu, 31 Jan 2013 13:55:33 -0500, allan@allanwirth.com wrote:
From: Allan Wirth allan@allanwirth.com
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.
Signed-off-by: Allan Wirth allan@allanwirth.com
Thanks, applied now.
Takashi
diff --git a/src/conf.c b/src/conf.c index ecaa339..4ba5863 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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)
} *dst = NULL;} else if ((err = config_file_open(root, fi[idx].name)) < 0) goto _err;
-- 1.7.10.4
participants (2)
-
allanï¼ allanwirth.com
-
Takashi Iwai