]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sparc64, and possibly other architectures, pads the length of the
authorimp <imp@FreeBSD.org>
Sat, 1 May 2010 07:25:28 +0000 (07:25 +0000)
committerimp <imp@FreeBSD.org>
Sat, 1 May 2010 07:25:28 +0000 (07:25 +0000)
commit354b097e927c5fd63fbe48bd68629779dbd40d1f
tree4e63c151b390858e4f09523918d52baefdeddfbb
parent35842e76ff3f646e76c671a506c359aeeafc3042
sparc64, and possibly other architectures, pads the length of the
section holding the config file to sh_addralign bytes using NULs.
This bogusly triggers an assert.  Break out of the loop when we hit an
NUL within that many bytes of the end.

MFC after: 3 days
usr.sbin/config/main.c