File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ Other Changes:
94
94
always lead to menu closure. Fixes using items that are not MenuItem() or BeginItem() at the root
95
95
level of a popup with a child menu opened.
96
96
- Stack Tool: Added option to copy item path to clipboard. (#4631)
97
+ - Settings: Fixed out-of-bounds read when .ini file on disk is empty. (#5351) [@quantum5]
97
98
- DrawList: Fixed PathArcTo() emitting terminating vertices too close to arc vertices. (#4993) [@thedmd]
98
99
- DrawList: Fixed texture-based anti-aliasing path with RGBA textures (#5132, #3245) [@cfillion]
99
100
- DrawList: Fixed divide-by-zero or glitches with Radius/Rounding values close to zero. (#5249, #5293, #3491)
Original file line number Diff line number Diff line change @@ -11652,7 +11652,8 @@ void ImGui::LoadIniSettingsFromDisk(const char* ini_filename)
11652
11652
char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size);
11653
11653
if (!file_data)
11654
11654
return;
11655
- LoadIniSettingsFromMemory(file_data, (size_t)file_data_size);
11655
+ if (file_data_size > 0)
11656
+ LoadIniSettingsFromMemory(file_data, (size_t)file_data_size);
11656
11657
IM_FREE(file_data);
11657
11658
}
11658
11659
You can’t perform that action at this time.
0 commit comments