Changeset: fa5136351e5c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fa5136351e5c
Modified Files:
monetdb5/mal/mal_function.c
Branch: default
Log Message:
Avoid malicious destroy of buffer
and give stethoscope some time to prepare itself.
diffs (20 lines):
diff --git a/monetdb5/mal/mal_function.c b/monetdb5/mal/mal_function.c
--- a/monetdb5/mal/mal_function.c
+++ b/monetdb5/mal/mal_function.c
@@ -1105,12 +1105,14 @@ showFlowGraph(MalBlkPtr mb, MalStkPtr st
oline = line;
}
free(buf);
- if (idcmp(fname, "stethoscope") != 0)
+ if (idcmp(fname, "stethoscope") != 0) {
mnstr_close(f);
- buffer_destroy(bufstr);
+ buffer_destroy(bufstr);
+ } else sleep(4000); /* delay for stethoscope */
} else if (f != GDKout) {
if (idcmp(fname, "stethoscope") != 0)
mnstr_close(f);
+ else sleep(4000); /* delay for stethoscope */
}
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list