home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa2a9b4
)
Leave TODO to define a max after which to stop reading
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 25 Mar 2020 21:20:07 +0000
(17:20 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 25 Mar 2020 21:20:07 +0000
(17:20 -0400)
to avoid getting trapped by a rogue writer.
x5/khatus.c
patch
|
blob
|
blame
|
history
diff --git
a/x5/khatus.c
b/x5/khatus.c
index
ccfce96
..
0580430
100644
(file)
--- a/
x5/khatus.c
+++ b/
x5/khatus.c
@@
-391,6
+391,11
@@
fifo_read_one(Fifo *f, struct timespec t, char *buf)
if (f->pos_curr <= f->pos_final)
buf[f->pos_curr++] = c;
/* Drop beyond available range. */
+ /*
+ * TODO Define max after which we stop reading.
+ * To ensure that a rogue large message
+ * doesn't trap us here.
+ */
}
break;
default:
This page took
0.027812 seconds
and
4
git commands to generate.