6d01ac5f9d5e585990537e6146beb591a9170436
max
  Tue Dec 13 14:35:56 2016 -0800
backing out the documentation of the quick BLAT on the position box
again. May lead to more trouble than it's worth for now, refs #16950

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index b792168..fd0000a 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -4075,30 +4075,32 @@
     if (subTrackSetting != NULL)
 	{
 	char *compositeName = firstWordInLine(subTrackSetting);
 	cTdb = hTrackDbForTrack(db, compositeName);
 	freez(&subTrackSetting);
 	}
     }
 return cTdb;
 }
 
 boolean hgParseChromRangeLong(char *db, char *spec, char **retChromName,
 	long *retWinStart, long *retWinEnd)
 /* Parse something of form chrom:start-end into pieces.
  * if db != NULL then check with chromInfo for names */
 {
+if (strlen(spec) > 256)
+    return FALSE;
 boolean haveDb = (db != NULL);
 char *chrom, *start, *end;
 char buf[256];
 long iStart, iEnd;
 
 safecpy(buf, sizeof(buf), spec);
 stripChar(buf, ',');
 chrom = buf;
 start = strchr(chrom, ':');
 
 if (start == NULL)
     {
     /* If just chromosome name cover all of it. */
     if (!haveDb || ((chrom = hgOfficialChromName(db, chrom)) == NULL))
 	return FALSE;