Michael Shalayeff
2011-07-18 18:53:58 UTC
re
i would like to extend stack smashing protector with an additional
argument for the fail handler -- the function name.
i suppose it's obvious usefulness for debugging purposes.
opinions?
cu
--
paranoic mickey (my employers have changed but, the name has remained)
Index: pftn.c
===================================================================
RCS file: /cvsroot/pcc/cc/ccom/pftn.c,v
retrieving revision 1.332
diff -p -u -r1.332 pftn.c
--- pftn.c 7 Jul 2011 06:50:10 -0000 1.332
+++ pftn.c 18 Jul 2011 18:54:49 -0000
@@ -2856,7 +2856,8 @@ sspend()
p->n_sp = lookup(stack_chk_fail, SNORMAL);
p = clocal(p);
- ecomp(buildtree(UCALL, p, NIL));
+ q = eve(bdty(STRING, stradd("", cftnsp->sname), 0));
+ ecomp(buildtree(CALL, p, q));
plabel(lab);
}
i would like to extend stack smashing protector with an additional
argument for the fail handler -- the function name.
i suppose it's obvious usefulness for debugging purposes.
opinions?
cu
--
paranoic mickey (my employers have changed but, the name has remained)
Index: pftn.c
===================================================================
RCS file: /cvsroot/pcc/cc/ccom/pftn.c,v
retrieving revision 1.332
diff -p -u -r1.332 pftn.c
--- pftn.c 7 Jul 2011 06:50:10 -0000 1.332
+++ pftn.c 18 Jul 2011 18:54:49 -0000
@@ -2856,7 +2856,8 @@ sspend()
p->n_sp = lookup(stack_chk_fail, SNORMAL);
p = clocal(p);
- ecomp(buildtree(UCALL, p, NIL));
+ q = eve(bdty(STRING, stradd("", cftnsp->sname), 0));
+ ecomp(buildtree(CALL, p, q));
plabel(lab);
}