Commit 3f42b6a799fce4de25913819415e93a54f1608d7

Daniel Mendler 2019-03-03T23:24:15

test/opponent.c: add todo comments

diff --git a/demo/opponent.c b/demo/opponent.c
index 7842a80..a9d555a 100644
--- a/demo/opponent.c
+++ b/demo/opponent.c
@@ -1,8 +1,9 @@
 #include "shared.h"
 
+/* TODO: Duplicate ndraw in test.c */
 static void ndraw(mp_int *a, const char *name)
 {
-   char buf[16000];
+   char buf[16000]; /* TODO: buffer might overflow! */
 
    printf("%s: ", name);
    mp_toradix(a, buf, 10);
diff --git a/demo/test.c b/demo/test.c
index aed8756..d62b7f3 100644
--- a/demo/test.c
+++ b/demo/test.c
@@ -1,8 +1,9 @@
 #include "shared.h"
 
+/* TODO: Duplicate ndraw in opponent.c */
 static void ndraw(mp_int *a, const char *name)
 {
-   char buf[16000];
+   char buf[16000]; /* TODO: buffer might overflow! */
 
    printf("%s: ", name);
    mp_toradix(a, buf, 10);