path: root/src/prog.h
authorSergey Poznyakoff <>2016-02-21 15:54:38 (GMT)
committer Sergey Poznyakoff <>2016-02-21 15:54:38 (GMT)
commita9bd91de478ab29fa7bac2093479a1ccee1bbd87 (patch) (side-by-side diff)
treea637b7c5a9de5905e6cc134ff3d29862ca2a83d0 /src/prog.h
parent910b8cf881052050c0edade38d0f9de8cdacf3c6 (diff)
Fix dereferencing of freed memory.
Improper dereferencing occurred when trying to access master prog of a redirector. * src/prog.h (prog) <r.comp>: New member. * src/progman.c (destroy_prog) <TYPE_COMPONENT>: Clear master pointers in both redirectors. <TYPE_REDIRECTOR>: Check if master is NULL. (register_redir): Initialize r.comp.
Diffstat (limited to 'src/prog.h') (more/less context) (ignore whitespace changes)
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prog.h b/src/prog.h
index 4e86596..3358885 100644
--- a/src/prog.h
+++ b/src/prog.h
@@ -71,6 +71,7 @@ struct prog
char *tag;
+ struct component *comp;
struct prog *master;
} r;

Return to:

Send suggestions and report system problems to the System administrator.