[Ltrace-devel] [PATCH] Fix an uninitialized memory access in parse_lens
Роман Донченко
dpb at corrigendum.ru
Thu Apr 9 22:16:07 UTC 2015
own_lens is only initialized when lens != NULL.
---
read_config_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/read_config_file.c b/read_config_file.c
index 9d3ccd8..6e47955 100644
--- a/read_config_file.c
+++ b/read_config_file.c
@@ -1009,7 +1009,7 @@ parse_lens(struct protolib *plib, struct locus *loc,
ownp, forwardp);
if (info == NULL) {
fail:
- if (own_lens && lens != NULL)
+ if (lens != NULL && own_lens)
lens_destroy(lens);
return NULL;
}
--
1.8.5.6
More information about the Ltrace-devel
mailing list