Up to [local] / src / usr.bin / yacc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_4_3_BASE
Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 3 21:14:58 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.27: +13 -4 lines
Diff to previous 1.27 (colored)
move back to using malloc() instead of calloc(), because the yacc skeleton really should only call malloc/realloc/free, no other external APIs at all. theefore, add a pre-check for the overflow case, thus protecting realloc too; tested mblamer, ok millert, help from kettenis