4bb9e8caea515342ba98d3871da76cd4ec69916f chmalee Fri May 1 14:10:00 2026 -0700 Initial myVariants implementation: a form on hgTracks where users can enter item details in one of three ways: hgvs/item search, simple bed form, advanced bed form where additional non-bed fields can dynamically created. Allows changing the color of items, writing descriptions, and editing the items after creation. Show overlaps with hardcoded tracks when hgc page is open (not in the hgc dialog). Next commit has implementation of sharing these tracks with other users diff --git src/lib/jsonParse.c src/lib/jsonParse.c index b695a2f67db..430b169ab6a 100644 --- src/lib/jsonParse.c +++ src/lib/jsonParse.c @@ -157,31 +157,36 @@ (*posPtr)++; } static char *getStringLm(char *str, int *posPtr, struct lm *lm) { // read a double-quote delimited string; we handle backslash escaping. // returns allocated string. boolean escapeMode = FALSE; int i; struct dyString *ds = dyStringNew(1024); getSpecificChar('"', str, posPtr); for(i = 0;; i++) { char c = str[*posPtr + i]; if(!c) - errAbort("Premature end of string (missing trailing double-quote); string position '%d'", *posPtr); + { + char cpy[i+1]; + strncpy(str, cpy, i); + cpy[i] = '\0'; + errAbort("Premature end of string (missing trailing double-quote); string position '%d', string: '%s'", *posPtr, cpy); + } else if(escapeMode) { // We support escape sequences listed in http://www.json.org, // except for Unicode which we cannot support in C-strings switch(c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break;