bos: Improve string safety 65/14765/7
authorMichael Meffie <mmeffie@sinenomine.net>
Wed, 23 Jun 2021 01:13:44 +0000 (21:13 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 30 Sep 2021 05:22:42 +0000 (01:22 -0400)
commita79d3ab92d6d49f0ff866749e0261f1fdbdc4fcd
tree79e5f2562964005614f5f12f29c44cbdf4fb0f7e
parent5c829c9c560735b3666667151f4c4e00ffba5947
bos: Improve string safety

To avoid potential string overflows and allow for larger strings in the
future, convert to safe string functions and remove fixed length stack
allocated strings in the bos client.

Add string truncation checks to the date format helper function.

Change-Id: Icf73b970d2c5d22fc6d3c8201498eff74e104812
Reviewed-on: https://gerrit.openafs.org/14765
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/bozo/bos.c