ref: 5e2478ccbb7927256f72cb749cf1a8d97dbbd4e9
parent: 9c2fb9602ddf3238364ec39cbf3f665c98d10e91
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Fri Sep 20 12:02:10 EDT 2013
acid: handle buffer overflow with ridiculous long symbol names (thanks mischief) go seems to accidently creates ridiculous long symbol names causing acid to crash.
--- a/sys/src/cmd/acid/util.c
+++ b/sys/src/cmd/acid/util.c
@@ -71,6 +71,12 @@
if(s->name[0] == '.')
continue;
+ if(strlen(s->name) >= sizeof(buf)-6){+ if(!quiet)
+ print("Symbol name too long: %s\n", s->name);+ continue;
+ }
+
v = s->value;
tl = al(TLIST);
*tail = tl;
--
⑨