Fix up potential overflows in size calculations by replacing instances
authorBen Pfaff <blp@gnu.org>
Wed, 26 Oct 2005 05:06:14 +0000 (05:06 +0000)
committerBen Pfaff <blp@gnu.org>
Wed, 26 Oct 2005 05:06:14 +0000 (05:06 +0000)
commit8cf495e615e4feca5777f3592de98321d4fcdc0b
treede79166661d6241f97b1bcab56b0d70b82e0cc16
parent6ac27d1da3fdebee275343fcf7b6625fc1f1da79
Fix up potential overflows in size calculations by replacing instances
of xmalloc(x * sizeof *y) by xnmalloc(x, sizeof *y) everywhere I could
find them.  Similarly by xrealloc(), malloc().  (Order is important:
xnmalloc(sizeof *y, x) will divide by 0 if x is 0.)
50 files changed:
src/ChangeLog
src/aggregate.c
src/alloc.c
src/alloc.h
src/ascii.c
src/autorecode.c
src/case.c
src/casefile.c
src/cat.c
src/count.c
src/crosstabs.q
src/data-list.c
src/descript.c
src/dictionary.c
src/error.c
src/examine.q
src/factor_stats.c
src/file-type.c
src/flip.c
src/frequencies.q
src/get.c
src/groff-font.c
src/hash.c
src/inpt-pgm.c
src/levene.c
src/list.q
src/matrix-data.c
src/means.q
src/modify-vars.c
src/moments.c
src/oneway.q
src/output.c
src/pfm-write.c
src/plot-chart.c
src/postscript.c
src/q2c.c
src/rank.q
src/recode.c
src/regression.q
src/repeat.c
src/set.q
src/sfm-read.c
src/sfm-write.c
src/sort-prs.c
src/sort.c
src/subclist.c
src/sysfile-info.c
src/t-test.q
src/vars-prs.c
src/vfm.c