diff --git a/src/hover.cpp b/src/hover.cpp index d1dc25d..f5a2cbd 100644 --- a/src/hover.cpp +++ b/src/hover.cpp @@ -171,6 +171,8 @@ struct Sec_Hover_Fn { { TStrSize str_size = read_buf(data + start, cur_field_off); u8 *buf = nullptr; + if (str_size > 1000) // DEBUG + return str8(""); if (str_size > 0) { buf = arena_push_array_nozero(arena, str_size + 1); memcpy(buf, data + start + cur_field_off, str_size); @@ -666,7 +668,7 @@ Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, co } } break; - case Sec_RNTuple_Footer: + case Sec_RNTuple_Footer: { if (!hover.tkey()) { b8 zipped; if (!hover.maybe_rootzip(&zipped)) { @@ -690,6 +692,7 @@ Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, co } } } + } break; case Sec_Page_List: { hover.tkey() || hover.maybe_rootzip() diff --git a/src/root/root_inc.h b/src/root/root_inc.h index fcf9884..55a2098 100644 --- a/src/root/root_inc.h +++ b/src/root/root_inc.h @@ -1,4 +1,4 @@ #include #include #include -#include +#include