diff options
| author | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-02 06:51:07 +0000 |
|---|---|---|
| committer | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-02 06:51:07 +0000 |
| commit | a44c9402c20493f0964a1296dd38d313216fbd4d (patch) | |
| tree | 0337a9ba2b8dcf2f4004ac78d76e7c31ef84778a /src/btfrv.cpp | |
| parent | e4f898c4a6b9900553c64b9804889b5fdae3e55f (diff) | |
util: initialise CCriticalSection's diagnostic fields at construction
pszFile/nLine were first written by CRITICAL_BLOCK on entry, so an
instance embedded in a dynamically allocated object (CNode::cs_vSend,
cs_vRecv, cs_inventory) held indeterminate values until its first
lock -- anything reading them for diagnostics dereferenced a wild
pointer.
Diffstat (limited to 'src/btfrv.cpp')
0 files changed, 0 insertions, 0 deletions