summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-10-02 15:00:55 +0000
committernectar <nectar@FreeBSD.org>2003-10-02 15:00:55 +0000
commit1857c0891b674258c28f179aeb7ac8084e6332af (patch)
tree68412e3bf4d1659ce2d53448d555682b65c6edae /lib
parent5dd11b6b7abea284ab69bc7728805be21c1bf67e (diff)
downloadFreeBSD-src-1857c0891b674258c28f179aeb7ac8084e6332af.zip
FreeBSD-src-1857c0891b674258c28f179aeb7ac8084e6332af.tar.gz
Introduce a uiomove_frombuf helper routine that handles computing and
validating the offset within a given memory buffer before handing the real work off to uiomove(9). Use uiomove_frombuf in procfs to correct several issues with integer arithmetic that could result in underflows/overflows. As a side-effect, the code is significantly simplified. Add additional sanity checks when computing a memory allocation size in pfs_read. Submitted by: rwatson (original uiomove_frombuf -- bugs are mine :-) Reported by: Joost Pol <joost@pine.nl> (integer underflows/overflows)
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud