]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Add file buffer pool support to fgetln()
authorGuillem Jover <guillem@hadrons.org>
Sun, 25 Nov 2012 21:09:43 +0000 (22:09 +0100)
committerGuillem Jover <guillem@hadrons.org>
Mon, 27 May 2013 00:12:51 +0000 (02:12 +0200)
commitcb7bc0d85ea9ec5eb8e9c922c2ad0ea7498620e9
treea9baa5f5c1878df83aa91ec3c3cd1e1a03889cd6
parent1be0bdb2c98be6ce1126fd2b400060198c78a8e3
Add file buffer pool support to fgetln()

This avoids buffer overwrites during concurrent or intermixed calls to
fgetln() when using more than one different stream (currently 32), which
the original interface supports natively by using an internal buffer
from the FILE structure. Although this workaround is rudimentary, it
should cover most of the theoretically problematic cases.
COPYING
src/fgetln.c