compile_et: Don't overflow input file buffer
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 4 Mar 2013 16:15:37 +0000 (16:15 +0000)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 25 Dec 2015 19:03:22 +0000 (14:03 -0500)
commit5fd9aed2ba6f43eeb157560724f56cd742fd3c62
tree7295c8f7685198b052931388b13a079e252c2fe8
parent87ce2a6f05e313dad43311fba93224f33b86f54f
compile_et: Don't overflow input file buffer

Don't overlow the buffer that's used for the input filename by
copying in to much with sprintf. Use asprintf to dynamically
allocate a buffer instead.

Link roken for rk_asprintf where needed.

Build compile_et with libtool, to ensure that it is linked statically,
as is needed for build tools such as compile_et.  (This requires
a preceding change to set a buildtool_roken make variable.)

Caught by coverity (#985907)

Change-Id: I207dd2c49bcae3f04fa41c826b08a0a615d5f422
Reviewed-on: http://gerrit.openafs.org/9545
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/comerr/Makefile.in
src/comerr/compile_et.c