bufgetdata: Check that the caller isn't too greedy.
authorNicolas Pennequin <nicolas.pennequin@free.fr>
Sat, 4 Aug 2007 18:26:58 +0000 (20:26 +0200)
committerNicolas Pennequin <nicolas.pennequin@free.fr>
Sat, 4 Aug 2007 18:26:58 +0000 (20:26 +0200)
commitd1be61dc61c4746059b3ef48bce4d942c3382514
treefc1f399dbe86e5867965ced502a3d25793956ea5
parent19cd50a8b1d3d4e64f05a83be9e4aea47bff21b8
bufgetdata: Check that the caller isn't too greedy.

When the buffer wraps and we need to use the guard buffer to provide a complete chunk,
there is a limit to the amount of data we can provide. It's unsafe to assume we can
provide the requested amount of data.
testplugin.c