BR 2817225: don't overrun a permts buffer with a maximum label
authorH. Peter Anvin <hpa@zytor.com>
Mon, 6 Jul 2009 05:15:57 +0000 (22:15 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 6 Jul 2009 05:15:57 +0000 (22:15 -0700)
commit565be91fb729611e8056face229d37d25bba360b
treedd0aa00fadc522e34c058942813ac3d72a51d7fa
parent5cc5589b734a26d6c971c26a330371aedfe35f2c
BR 2817225: don't overrun a permts buffer with a maximum label

BR 677841 was fixed backwards, with a reverse condition.  Correct the
direction of the fix, and add an assert for the overflow condition.

Note: the bug was non-manifest in previous build, so this is not a
security issue.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
labels.c