summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-08-05 18:14:01 +0000
committerjhb <jhb@FreeBSD.org>2015-08-05 18:14:01 +0000
commit59e4fce94f13614783df7909d79d03d912a6ed53 (patch)
tree2d33d92664418fd6bf47d7fe345d494d0471b77f /gnu
parentb62aca35b9a9c7ec66ca358ddb923a71913dd30c (diff)
downloadFreeBSD-src-59e4fce94f13614783df7909d79d03d912a6ed53.zip
FreeBSD-src-59e4fce94f13614783df7909d79d03d912a6ed53.tar.gz
Rework get_string() to make it more robust when fetching strings of unknown
length. In particular, instead of blinding fetching 1k blocks, do an initial fetch up to the end of the current page followed by page-sized fetches up to the maximum size. Previously if the 1k buffer crossed a page boundary and the second page was not valid, the entire operation would fail.
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud