summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2017-03-25 01:58:42 +0200
committerTimothy Arceri <[email protected]>2017-03-25 13:08:37 +1100
commitb9e92334f79bff2497fd718d49fe7c53b5f2074c (patch)
tree57ac33ea2a4cd75d352136aec2a6d9262defff53 /src/mesa/main
parent741432616436d981eb75ebf8b0da8ae5ebbf48d8 (diff)
util/disk_cache: don't deadlock on premature EOF
If we get EOF earlier than expected, the current read loops will deadlock. This may easily happen if the disk cache gets corrupted. Fix it by using a helper function that handles EOF. Steps to reproduce (on a build with asserts disabled): $ glxgears $ find ~/.cache/mesa/ -type f -exec truncate -s 0 '{}' \; $ glxgears # deadlock Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
0 files changed, 0 insertions, 0 deletions