Files
OrcaSlicer-KX/src/slic3r/GUI
Joshua Wise ab64ae8c63 slic3r: address sanitizer cleanup in ImGuiWrapper::load_svg
ImGuiWrapper::load_svg previously could load an image that was not of the
aspect ratio specified by the target_width and target_height, and as a
result, could create an output vector that was smaller (or differently
shaped!) than the target_width and target_height.  GCC's Address Sanitizer
flagged this because init_font was reading over the end of the allocated
buffer, but this also meant that images with incorrect aspect ratios might
get rendered to the font canvas incorrectly.

To solve this, we pass the generated width and height out from load_svg, and
use it when copying images later.
2023-02-01 16:24:44 +08:00
..
2022-12-15 04:38:15 -05:00
2022-07-15 23:42:08 +08:00
2022-07-15 23:42:08 +08:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-07-15 23:42:08 +08:00
2023-01-10 19:08:26 +08:00
2023-01-10 19:08:26 +08:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-07-15 23:42:08 +08:00
2022-07-15 23:42:08 +08:00
2022-12-16 22:51:07 -05:00
2023-01-10 19:08:26 +08:00
2022-07-15 23:42:08 +08:00
2022-07-15 23:42:08 +08:00
2022-12-15 04:38:15 -05:00
2022-08-05 16:11:42 +08:00
2023-01-10 19:08:26 +08:00
2022-12-15 04:33:48 -05:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:33:48 -05:00
2022-12-15 04:38:15 -05:00
2022-07-15 23:42:08 +08:00
2022-07-15 23:42:08 +08:00
2022-12-15 04:38:15 -05:00
2023-01-10 19:08:26 +08:00
2022-12-15 04:38:15 -05:00
2022-07-15 23:42:08 +08:00
2022-12-15 04:38:15 -05:00
2022-10-20 19:34:37 +08:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-12-17 03:21:09 -05:00
2023-02-01 16:24:44 +08:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2022-07-15 23:42:08 +08:00