1
0
Fork 0
forked from len0rd/rockbox

[coverity] skin_parser.c load_skin_bitmaps check buffer length for bm_data

Change-Id: Ia4496916bf32de332e054b62f1708b3e2ec8e7d8
This commit is contained in:
William Wilgus 2024-06-02 11:13:03 -04:00
parent 5c7fbe8f1b
commit 2e60316500

View file

@ -2026,7 +2026,7 @@ static bool load_skin_bitmaps(struct wps_data *wps_data, char *bmpdir)
{
char path[MAX_PATH];
int handle;
strcpy(path, img->bm.data);
strmemccpy(path, img->bm.data, sizeof(path));
handle = load_skin_bmp(wps_data, img, bmpdir);
img->buflib_handle = handle;
img->loaded = img->buflib_handle > 0;