From 983f2f1e284c1a70f9bd84b033f85db139199a96 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Sun, 7 Apr 2024 09:10:41 +0000 Subject: [PATCH] fix cursor crash --- 3party/libelfin/dwarf/cursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3party/libelfin/dwarf/cursor.cc b/3party/libelfin/dwarf/cursor.cc index e06c084..31aa553 100644 --- a/3party/libelfin/dwarf/cursor.cc +++ b/3party/libelfin/dwarf/cursor.cc @@ -88,7 +88,7 @@ cursor::offset() void cursor::string(std::string &out) { - size_t size; + size_t size = 0; const char *p = this->cstr(&size); // out.resize(size); // memmove(&out.front(), p, size);