From 21c485187333fb8b7427204045c20c1479b511e0 Mon Sep 17 00:00:00 2001
From: Gary Wong <gtw@flux.utah.edu>
Date: Thu, 3 Apr 2014 16:10:49 -0600
Subject: [PATCH] Increase the limit on certain geni-get response lengths (esp.
 manifests).

The old limit (2K) was big enough that essentially any hand-written
rspec would work fine, but also small enough that pretty much any manifest
for a Flack-generated request rspec would fail.
---
 tmcd/tmcd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tmcd/tmcd.c b/tmcd/tmcd.c
index 40074259a2..7d10b50cf5 100644
--- a/tmcd/tmcd.c
+++ b/tmcd/tmcd.c
@@ -11891,7 +11891,7 @@ static char *getgeniuseremail( tmcdreq_t *reqp ) {
 static char *getgenimanifest( tmcdreq_t *reqp ) {
     
 	MYSQL_RES	*res;
-	char		buf[MYBUFSIZE];
+	char		buf[ MAXTMCDPACKET ];
 
 	res = mydb_query( "SELECT m.manifest FROM `geni-cm`.geni_slivers AS s, "
 			  "`geni-cm`.geni_manifests AS m WHERE "
@@ -12238,7 +12238,7 @@ struct genicommand {
 
 COMMAND_PROTOTYPE(dogenicommands)
 {
-    char buf[ 0x4000 ], *p;
+    char buf[ MAXTMCDPACKET ], *p;
     int i, maxlen, first = 1;
 
     buf[ 0 ] = 0; /* NUL */
@@ -12283,7 +12283,7 @@ COMMAND_PROTOTYPE(dogeniall)
 {
     /* Glob all the other stuff into a JSON structure.  Hey, at least
        it's not XML! */
-    char buf[ 0x4000 ], *p;
+    char buf[ MAXTMCDPACKET ], *p;
     int i, first = 1;
 
     buf[ 0 ] = 0; /* NUL */
-- 
GitLab