Leave TODO to define a max after which to stop reading
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 25 Mar 2020 21:20:07 +0000 (17:20 -0400)
committerSiraaj 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

index ccfce96..0580430 100644 (file)
@@ -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.