aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/keywrap.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-25 21:49:44 +0000
committerlloyd <[email protected]>2012-05-25 21:49:44 +0000
commit65cc04445f8d40497f02a14bd8cb97081790e54b (patch)
tree878a161148545cb590febb9026f02dad25769ea5 /doc/examples/keywrap.cpp
parent29c337b2c7024d1b34aa3b578b5fc38b4d869fb0 (diff)
Two more locking_allocator bugs. In allocate, we did not set
best_fit->first in cases where we had an almost exact match (exact fit but with some alignment bytes at the start), meaning that not only would we lose those bytes forever, but that we might later hand out a range overlapping with what we handed to our current caller. Also, in deallocate, lower_bound on the freelist might return end() (for instance if the freelist is entirely empty). Avoid trying to update the iterator in that case.
Diffstat (limited to 'doc/examples/keywrap.cpp')
0 files changed, 0 insertions, 0 deletions