cmac-aes256: Correct size of local rk[] array. 20131224030506/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 24 Dec 2013 03:24:42 +0000 (19:24 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 24 Dec 2013 03:24:42 +0000 (19:24 -0800)
commit3db5de939481ba0c80695c94a7060945399858a3
tree55fc0d601eb8b8d5e94ac73ecbbdbf54b2685318
parent78bc244668060f41a9363423c3a0fa44ceeb4555
cmac-aes256: Correct size of local rk[] array.

This array was undersized, yielding undefined behavior.  It happened to
work OK when compiled -O2 with GCC 4.7.x for x86, and fail with compiled
-O0 in the same environment.  This fixes the problem.

Reported by John Darrington.
src/libpspp/cmac-aes256.c