summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2009-11-12 00:52:14 +0000
committerattilio <attilio@FreeBSD.org>2009-11-12 00:52:14 +0000
commit4369e1fa0a7fa3b6fba2df3af213614064685f8d (patch)
tree128437233ac9580060be5ff19683b8f84473bf73 /lib
parent01da2349df43dda915c9e7cdd794dff6385b3751 (diff)
downloadFreeBSD-src-4369e1fa0a7fa3b6fba2df3af213614064685f8d.zip
FreeBSD-src-4369e1fa0a7fa3b6fba2df3af213614064685f8d.tar.gz
The building the dev nameunit string, in devclass_add_device() is based
on the assumption that the unit linked with the device is invariant but that can change when calling devclass_alloc_unit() (because -1 is passed or, more simply, because the unit choosen is beyond the table limits). This results in a completely bogus string building. Fix this by reserving the necessary room for all the possible characters printable by a positive integer (we do not allow for negative unit number). Reported by: Sandvine Incorporated Reviewed by: emaste Sponsored by: Sandvine Incorporated MFC: 1 week
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud