found memory corruption in the obt xqueue and paths
Dana Jansens danakj@orodu.net
2 files changed,
4 insertions(+),
4 deletions(-)
M
obt/paths.c
→
obt/paths.c
@@ -126,7 +126,7 @@ }
} endgrent(); - qsort(*g, sizeof(gid_t), *n, gid_cmp); + qsort(*g, *n, sizeof(gid_t), gid_cmp); } ObtPaths* obt_paths_new(void)
M
obt/xqueue.c
→
obt/xqueue.c
@@ -78,8 +78,8 @@ g_assert(qnum > 0);
if (qend < qstart) { /* it wraps around to 0 right now */ for (i = 0; i <= qend; ++i) - q[newsz+i] = q[i]; - qend = newsz + qend; + q[qsz+i] = q[i]; + qend = qsz + qend; } qsz = newsz;@@ -113,7 +113,7 @@
return sth; /* return if we read anything */ } -static void pop(gulong p) +static void pop(const gulong p) { /* remove the event */ --qnum;