=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== brandy-1.20.1/docs/history-170- string being evaluated contained a reference to a function brandy-1.20.1/docs/history:171: that had not been called before. 'EVAL(EVAL(a$))' now works brandy-1.20.1/docs/history-172- as well. ############################################## brandy-1.20.1/src/miscprocs.h-40-extern void store_float(int32, float64); brandy-1.20.1/src/miscprocs.h:41:extern byte *alignaddr(byte *); brandy-1.20.1/src/miscprocs.h-42-extern char *skip_blanks(char *); ############################################## brandy-1.20.1/src/editor.c-188-static void adjust_heaplimits(void) { brandy-1.20.1/src/editor.c:189: basicvars.lomem = basicvars.vartop = alignaddr(basicvars.top+ENDMARKSIZE); brandy-1.20.1/src/editor.c-190- basicvars.stacklimit.bytesp = basicvars.vartop+STACKBUFFER; ############################################## brandy-1.20.1/src/miscprocs.c-90-*/ brandy-1.20.1/src/miscprocs.c:91:byte *alignaddr(byte *addr) { brandy-1.20.1/src/miscprocs.c-92- int32 offset = addr-basicvars.offbase; ############################################## brandy-1.20.1/src/commands.c-175- boolean found; brandy-1.20.1/src/commands.c:176: p = CAST(get_srcaddr(basicvars.current), char *); /* Get the argument of the LVAR command if one is supplied */ brandy-1.20.1/src/commands.c-177- basicvars.current+=1+OFFSIZE; ############################################## brandy-1.20.1/src/commands.c-221- boolean more; brandy-1.20.1/src/commands.c:222: p = tp = get_srcaddr(basicvars.current); /* Get address of string to search for */ brandy-1.20.1/src/commands.c-223- basicvars.current+=1+OFFSIZE; ############################################## brandy-1.20.1/src/mainstate.c-75- char *p; brandy-1.20.1/src/mainstate.c:76: p = CAST(get_srcaddr(basicvars.current), char *); /* Get the address of the command text */ brandy-1.20.1/src/mainstate.c-77- emulate_oscli(p, FALSE); /* Run command but do not capture output */ ############################################## brandy-1.20.1/src/mainstate.c-329- } brandy-1.20.1/src/mainstate.c:330: tp = get_srcaddr(basicvars.current); /* Find name of PROC or FN */ brandy-1.20.1/src/mainstate.c-331- if (*tp == TOKEN_PROC) error(ERR_CRASH); /* Have run into a procedure */ ############################################## brandy-1.20.1/src/mainstate.c-341- if (*tp == ')') { /* Could mark an array or the end of the parameters */ brandy-1.20.1/src/mainstate.c:342: base = get_srcaddr(base); brandy-1.20.1/src/mainstate.c-343- if (*(skip_name(base)-1) == '(') tp++; /* Got 'name()' - Found an array */ ############################################## brandy-1.20.1/src/mainstate.c-437- else { /* Found dynamic variable or array name */ brandy-1.20.1/src/mainstate.c:438: base = get_srcaddr(basicvars.current); /* Point 'base' at start of array name */ brandy-1.20.1/src/mainstate.c-439- ep = skip_name(base); /* Point ep at byte after name */ ############################################## brandy-1.20.1/src/mainstate.c-1537- byte *ep; brandy-1.20.1/src/mainstate.c:1538: base = get_srcaddr(basicvars.current); /* Find the start of the procedure name */ brandy-1.20.1/src/mainstate.c-1539- ep = skip_name(base); ############################################## brandy-1.20.1/src/mainstate.c-1718- tp = basicvars.current; brandy-1.20.1/src/mainstate.c:1719: base = get_srcaddr(tp); /* Point at name of procedure */ brandy-1.20.1/src/mainstate.c-1720- if (*base != TOKEN_PROC) error(ERR_NOTAPROC); /* Ensure a procedure is being called */ ############################################## brandy-1.20.1/src/mainstate.c-1784-*/ brandy-1.20.1/src/mainstate.c:1785: basicvars.datacur = get_srcaddr(FIND_EXEC(dp)); brandy-1.20.1/src/mainstate.c-1786-} ############################################## brandy-1.20.1/src/mainstate.c-2049-*/ brandy-1.20.1/src/mainstate.c:2050: basicvars.datacur = get_srcaddr(FIND_EXEC(dest))-1; brandy-1.20.1/src/mainstate.c-2051- } ############################################## brandy-1.20.1/src/emulate.c-212- osword_parms.y_msb = y>>BYTESHIFT; brandy-1.20.1/src/emulate.c:213: (void) _kernel_osword(CONTROL_MOUSE, TOINTADDR(&osword_parms)); brandy-1.20.1/src/emulate.c-214-} ############################################## brandy-1.20.1/src/emulate.c-223- osword_parms.ymult = ymult; brandy-1.20.1/src/emulate.c:224: (void) _kernel_osword(CONTROL_MOUSE, TOINTADDR(&osword_parms)); brandy-1.20.1/src/emulate.c-225-} ############################################## brandy-1.20.1/src/emulate.c-236- osword_parms.blue = blue; brandy-1.20.1/src/emulate.c:237: (void) _kernel_osword(WRITE_PALETTE, TOINTADDR(&osword_parms)); brandy-1.20.1/src/emulate.c-238-} ############################################## brandy-1.20.1/src/emulate.c-259- osword_parms.top_msb = top>>BYTESHIFT; brandy-1.20.1/src/emulate.c:260: (void) _kernel_osword(CONTROL_MOUSE, TOINTADDR(&osword_parms)); brandy-1.20.1/src/emulate.c-261-} ############################################## brandy-1.20.1/src/functions.c-581- byte *base, *ep; brandy-1.20.1/src/functions.c:582: base = get_srcaddr(basicvars.current); /* Find address of array's name */ brandy-1.20.1/src/functions.c-583- ep = skip_name(base); ############################################## brandy-1.20.1/src/functions.c-1489- if (*basicvars.current != TOKEN_XVAR) error(ERR_SYNTAX); /* 'TO' is not followed by a variable name */ brandy-1.20.1/src/functions.c:1490: p = get_srcaddr(basicvars.current); /* Find the address of the variable */ brandy-1.20.1/src/functions.c-1491- if (*p != 'P') error(ERR_SYNTAX); /* But it does not start with the letter 'P' */ ############################################## brandy-1.20.1/src/evaluate.c-790- boolean isarray; brandy-1.20.1/src/evaluate.c:791: base = get_srcaddr(basicvars.current); /* Point 'base' at the start of the variable's name */ brandy-1.20.1/src/evaluate.c-792- np = skip_name(base); ############################################## brandy-1.20.1/src/evaluate.c-856- basicstring descriptor; brandy-1.20.1/src/evaluate.c:857: descriptor.stringaddr = TOSTRING(get_srcaddr(basicvars.current)); brandy-1.20.1/src/evaluate.c-858- descriptor.stringlen = GET_SIZE(basicvars.current+1+OFFSIZE); ############################################## brandy-1.20.1/src/evaluate.c-871- char *cp; brandy-1.20.1/src/evaluate.c:872: string = get_srcaddr(basicvars.current); brandy-1.20.1/src/evaluate.c-873- length = GET_SIZE(basicvars.current+1+OFFSIZE); ############################################## brandy-1.20.1/src/evaluate.c-1086- boolean gotparms; brandy-1.20.1/src/evaluate.c:1087: base = get_srcaddr(basicvars.current); /* Point 'base' at start of function's name */ brandy-1.20.1/src/evaluate.c-1088- if (*base != TOKEN_FN) error(ERR_NOTAFN); /* Ensure a function is being called */ ############################################## brandy-1.20.1/src/iostate.c-229- length =GET_SIZE(basicvars.current+1+OFFSIZE); brandy-1.20.1/src/iostate.c:230: if (length>0) emulate_vdustr(TOSTRING(get_srcaddr(basicvars.current)), length); brandy-1.20.1/src/iostate.c-231- basicvars.current = skip_token(basicvars.current); ############################################## brandy-1.20.1/src/iostate.c-233- case TOKEN_QSTRINGCON: /* Prompt string with '""' in it */ brandy-1.20.1/src/iostate.c:234: cp = TOSTRING(get_srcaddr(basicvars.current)); brandy-1.20.1/src/iostate.c-235- length = GET_SIZE(basicvars.current+1+OFFSIZE); ############################################## brandy-1.20.1/src/tokens.h-360-extern void set_address(byte *, void *); brandy-1.20.1/src/tokens.h:361:extern byte *get_srcaddr(byte *); brandy-1.20.1/src/tokens.h-362-extern void save_lineno(byte *, int32); ############################################## brandy-1.20.1/src/tokens.h-384-#define GET_LINENO(p) (*(p+OFFLINE) | (*(p+OFFLINE+1)<<BYTESHIFT)) brandy-1.20.1/src/tokens.h:385:#define GET_SRCADDR(p) (p-(*(p+1)+(*(p+2)<<BYTESHIFT)) brandy-1.20.1/src/tokens.h-386-#define AT_PROGEND(p) (*(p+OFFLINE+1)==ENDMARKER) ############################################## brandy-1.20.1/src/variables.c-590- while (*tp==TOKEN_XVAR) { brandy-1.20.1/src/variables.c:591: base = get_srcaddr(tp); brandy-1.20.1/src/variables.c-592- ep = skip_name(base); /* Find byte after name */ ############################################## brandy-1.20.1/src/variables.c-624- if (*basicvars.current!=TOKEN_XVAR) error(ERR_SYNTAX); /* Array name wanted */ brandy-1.20.1/src/variables.c:625: base = get_srcaddr(basicvars.current); brandy-1.20.1/src/variables.c-626- ep = skip_name(base); /* Find byte after name */ ############################################## brandy-1.20.1/src/variables.c-658- char pfname[MAXNAMELEN]; brandy-1.20.1/src/variables.c:659: base = get_srcaddr(tp+1); /* Find address of PROC/FN name */ brandy-1.20.1/src/variables.c-660- ep = skip_name(base); /* Find byte after name */ ############################################## brandy-1.20.1/src/variables.c-762- char *cp; brandy-1.20.1/src/variables.c:763: base = get_srcaddr(pp); /* Point at start of name (includes 'PROC' or 'FN' token) */ brandy-1.20.1/src/variables.c-764- ep = skip_name(base); ############################################## brandy-1.20.1/src/lvalue.c-85- boolean isarray = 0; brandy-1.20.1/src/lvalue.c:86: base = get_srcaddr(basicvars.current); /* Point 'base' at start of variable name */ brandy-1.20.1/src/lvalue.c-87- tp = skip_name(base); /* Find to end of name */ ############################################## brandy-1.20.1/src/riscos.c-408- osword_parms.y_msb = y >> BYTESHIFT; brandy-1.20.1/src/riscos.c:409: (void) _kernel_osword(CONTROL_MOUSE, TOINTADDR(&osword_parms)); brandy-1.20.1/src/riscos.c-410-} ############################################## brandy-1.20.1/src/common.h-71-#define TOSTRING(x) ((char *)(x)) brandy-1.20.1/src/common.h:72:#define TOINTADDR(x) ((int32 *)(x)) brandy-1.20.1/src/common.h-73- ############################################## brandy-1.20.1/src/tokens.c-1748-*/ brandy-1.20.1/src/tokens.c:1749:byte *get_srcaddr(byte *p) { brandy-1.20.1/src/tokens.c-1750- return p-(*(p+1)+(*(p+2)<<BYTESHIFT));