mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
RGUI: Fix ASAN misaligned address runtime error
This commit is contained in:
parent
6f0268ca30
commit
fc4b3f4d96
@ -2397,7 +2397,7 @@ static void blit_line_regular_shadow(unsigned fb_width, int x, int y,
|
|||||||
*frame_buf_ptr = shadow_color;
|
*frame_buf_ptr = shadow_color;
|
||||||
frame_buf_ptr += fb_width - 1;
|
frame_buf_ptr += fb_width - 1;
|
||||||
/* Small performance hack... */
|
/* Small performance hack... */
|
||||||
*(uint32_t *)frame_buf_ptr = shadow_colour_32;
|
memcpy(frame_buf_ptr, &shadow_colour_32, sizeof(uint32_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2501,7 +2501,7 @@ static void blit_line_extended_shadow(unsigned fb_width, int x, int y,
|
|||||||
*frame_buf_ptr = shadow_color;
|
*frame_buf_ptr = shadow_color;
|
||||||
frame_buf_ptr += fb_width - 1;
|
frame_buf_ptr += fb_width - 1;
|
||||||
/* Small performance hack... */
|
/* Small performance hack... */
|
||||||
*(uint32_t *)frame_buf_ptr = shadow_colour_32;
|
memcpy(frame_buf_ptr, &shadow_colour_32, sizeof(uint32_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2605,7 +2605,7 @@ static void blit_symbol_shadow(unsigned fb_width, int x, int y,
|
|||||||
*frame_buf_ptr = shadow_color;
|
*frame_buf_ptr = shadow_color;
|
||||||
frame_buf_ptr += fb_width - 1;
|
frame_buf_ptr += fb_width - 1;
|
||||||
/* Small performance hack... */
|
/* Small performance hack... */
|
||||||
*(uint32_t *)frame_buf_ptr = shadow_colour_32;
|
memcpy(frame_buf_ptr, &shadow_colour_32, sizeof(uint32_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user