You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit introducing this issue: 46d7520
Issue: offset points outside of the buffer (backwards because it's casted to signed short without checks)
Code:
ImGui::SetNextWindowSize(ImVec2(400, 400), ImGuiCond_Once);
if (ImGui::Begin("NameOffset"))
{
if (ImGui::BeginTabBar("tabbar", ImGuiTabBarFlags_TabListPopupButton))
{
// ... or long tab names, total characters should be > 32767for (auto i = 0; i != 2048; ++i)
{
ImGui::PushID(i);
if (ImGui::BeginTabItem("ABCDEFGHIJKLMNOPQRSTUVWXYZ"))
ImGui::EndTabItem();
ImGui::PopID();
}
ImGui::EndTabBar();
}
ImGui::End();
}
I don't know why it was changed to S16 but changing it to S32 fixes this as expected
This is how it looks like in the latest commit on master:
Was trying to test a file parser. loaded all files at once, forgot to not render them and it crashed in BeginTabItem
I wouldn't normally use this amount of tabs, but S16 is very limiting imo
Commit introducing this issue: 46d7520
Issue: offset points outside of the buffer (backwards because it's casted to signed short without checks)
Code:
I don't know why it was changed to S16 but changing it to S32 fixes this as expected
This is how it looks like in the latest commit on master:
imgui/imgui_internal.h
Lines 1956 to 1971 in 04fd507
imgui/imgui_widgets.cpp
Lines 7767 to 7769 in 04fd507
imgui/imgui_internal.h
Lines 2010 to 2014 in 04fd507
The text was updated successfully, but these errors were encountered: