summaryrefslogtreecommitdiff
path: root/src/test-rectinsert.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-02-12 20:29:31 -0800
committerVito Caputo <vcaputo@pengaru.com>2021-02-12 20:29:31 -0800
commitf8b78e9271600f67f7eafb09b66e00640f2c002f (patch)
tree306d8ba94957a07cce960c1852605109e723905b /src/test-rectinsert.c
parent64c98021730af488c7fc169d2d4d290cb577e7b3 (diff)
cache: _rmdCacheFileClose should always NULL handles
The existing code would leave the internal handle non-NULL when the underlying close failed. In the event of a transparent close when chapters switch failing, a subsequent explicit close is expected, and the handles must be NULLed out for that explicit close to not blow up because fclose() leaves the handle undefined after errors. It's basically a use after free bug.
Diffstat (limited to 'src/test-rectinsert.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved